full justification in a text field

2022-02-10 Thread Curt Ford via use-livecode
Peter, that works really well. Looks like it does require a monospaced 
font (I tried it with Monaco, looks good), so I'm not sure if my current 
client will want this approach, but it's nice to have a relatively 
simple native solution. Thanks so much!


Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


full justification in a text field

2022-02-09 Thread Curt Ford via use-livecode
This seems like an awfully basic question, but is it possible to have 
text with full justification in a field?


I've looked at using WordLib, but this client's text has lots of fussy 
formatting (background colors, different colors for individual 
characters) that didn't come through well.


Thanks for any ideas,

Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Livecode and interactive video

2022-01-21 Thread Curt Ford via use-livecode
I can't help with a LiveCode implementation, but if web delivery is an 
option, I've had good results using the free H5P technology for videos 
that include embedded quizzes of various kinds; I think it does image 
hotspots and branching as well.


https://h5p.org

-Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


video formats for Windows in LC 9.6.5? *solved*

2022-01-21 Thread Curt Ford via use-livecode
Thanks Klaus, Curry, Paul – just changing the suffix didn't help, but 
fortunately, converting the videos to divX format (.avi) with a free 
converter seems to have done the trick.


The target audience is creative/theater types so the simplest solution 
is best here, but that's helpful to know about LAV Filters and the 
situation in general.


Thanks!

Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


video formats for Windows in LC 9.6.5?

2022-01-21 Thread Curt Ford via use-livecode
A client has asked me to update a project from a few years ago that 
includes a few videos. In the previous version we used clips in MP4 
format with the suffix .m4v;  the codecs (judging from Get Info on a 
Mac) are H.264, AAC. These worked well on both platforms before.


With LiveCode 9.6.5 on Windows, the .m4v videos are not showing – 
there's just a blank space above the control bar. I'm seeing this in 
Windows 11, and clients have confirmed the same on their end with 
Windows 7 and 10. The .m4v videos do play OK on my system in Windows 
Media Player, and I am able to play an .avi video in LiveCode on my system.


Are there any tips for using H.264 videos on Windows with 9.6.5?

Thanks!

-Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Symantec quarantining LiveCode standalone on client's machine

2019-07-02 Thread Curt Ford via use-livecode

Guess it's time to finally look into this.

I just visited https://comodosslstore.com but am not sure of the 
differences between Comodo code signing, Microsoft Authenticode, etc...


Any suggestions on best practices with LiveCode/Inno Setup are appreciated!

--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Symantec quarantining LiveCode standalone on client's machine

2019-07-02 Thread Curt Ford via use-livecode
A client has reported that a small utility I've made for him is being 
blocked by Symantec on his Windows machine. We haven't had this issue 
before with an earlier version of the same utility, but now he gets this 
report:


"Threat type: Insight Network Threat. There are many indications that 
this file is untrustworthy and therefore not safe



f_003294 Threat name: WS.Reputation.1

Locate

Very Few Users

Fewer than 5 users in the Symantec Community have used this file.

Very New

This file was released less than 1 week  ago.

Medium

This file risk is medium."

Would code signing it somehow help? Any suggestions?

Thanks!

Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Using community to update text of a project distributed with Indy license?

2019-06-18 Thread Curt Ford via use-livecode

Dear Heather,

Thanks for the clarification. This is the answer I'd basically expected, 
but it'll be easier for me to steer the client in a different direction 
with the official word from you at LiveCode, so this is helpful.


(They had originally suggested using Splashtop to try and make the 
updates on my machine remotely, but I *really* don't want to go there...!)


all best

Curt


--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Using community to update text of a project distributed with Indy license?

2019-06-17 Thread Curt Ford via use-livecode
A client needs to make minor updates to the text in a number of modules 
I've created over several years. To eliminate the back-and-forth of 
corrections and proofs, he's asked about making the changes himself in 
LiveCode. (He's never used LiveCode and doesn't have a copy.)


The question has arisen whether this would be possible if he downloads 
the free community version of LiveCode, opens the files I've created 
with my licensed copy of LiveCode, updates the texts, then sends me the 
files to package them up.


Another option was for the client to use the community version to create 
the text in text fields in a 'dummy' stack, from which I'd copy the 
updated text into the existing modules of my copy with the Indy license.


I've looked at the FAQ at

https://livecode.com/docs/9-0-4/faq/faq/#what-are-the-system-requirements-for-livecode

but I'm not quite clear on whether this would be allowed under the terms 
of the license or not.


Even if it's not, I'm not sure they'll want to get into this once they 
see what's involved, but I told them I'd look into it.


--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


how to load a local file into the browser widget?

2019-05-25 Thread Curt Ford via use-livecode

Thanks, hh, that does it! :)

*answer*file"Choose an html file"

*put*urlEncode(textEncode(it, "UTF-8")) intotPathWithCyrillic

*set*theurlofwidget"Browser"totPathWithCyrillic


Occasional accents & punctuation in the file names are not causing 
problems either (so far). But then the spaces..


*replace*" "with"%20"intPathWithCyrillic

didn't work since the urlEncode was inserting "+" where it found a space.

So replacing "+" with "%20" fixes that. Final version:

*answer*file"Choose an html file"

*put*urlEncode(textEncode(it, "UTF-8")) intotPathWithCyrillic

*replace*"+"with"%20"intPathWithCyrillic

*set*theurlofwidget"Browser"totPathWithCyrillic

Thanks everyone!

Curt



You could try to use (for example):

urlEncode(textEncode("брать","UTF-8"))



--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode

Thanks Klaus, those are great tips!

While I'm at it... some of the folders in the file path will be in 
Russian, which is breaking my current handler. Is there a way to run 
them through some unicode-type function to make them work in a file path?


I can run those items of the file path through a quick transliteration 
function to change брать into brat' etc., but thought it's worth checking...


Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode

Ah, thanks, Tore, that was it! Using two slashes in the handler

*put*"file://"& thedefaultFolder& slash& "Future.html"intotFile

produced the filePath with three slashes,

file:///Users/cford/Desktop/BrowserTryout/Future.html

which is now working fine. :)


--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode

You must make sure that the filePath to the html file you would like to see 
does not contain any invalid characters like spaces, which you will find is OK 
by the file system but not with the browser.

I had wondered about this; I renamed the file to "Browsertryout" and moved it to the 
desktop (so there were no spaces in the filePath, which is now 
"file://Users/cford/Desktop/Browsertryout.app/Contents/MacOS/Future.html"), but I'm still 
getting the same result (a blank widget).

Curt

--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode
Is there a trick to getting a local html file to display in the browser 
widget? I'm using this in a test button (in 9.0.4, on a Mac):


*on*mouseUp

*# set the defaultFolder to the folder containing the stackfile*

*set*theitemDelimitertoslash*
get*theeffectivefilenameofthisstack*
set*thedefaultFoldertoitem1to-2 ofit*
answer*"defaultFolder is"&& thedefaultFolder

*if* thereisafile"Future.html"*then**
answer*"OK, it's there"*
else**
answer*"not found!"*
end* *if*

*put*"file:/"& thedefaultFolder& slash& "Future.html"intotFile*
set*theURLofwidget"Browser"totFile*
answer*"the URL is"&& theURLofwidget"Browser"

*end*mouseUp

The .html file is in the same folder with the stack file, and in the 
standalone I've copied it into the bundle & the stack seems to find it, 
but nothing displays in the widget, both in IDE and the standalone. 
Loading a remote location works fine with


*put*"https://nytimes.com"intotFile

*set*theURLofwidget"Browser"totFile

Is there something else to keep in mind when displaying a local file?

Curt


--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


players misplaced & not functional on Windows 10

2019-03-16 Thread Curt Ford via use-livecode

Those grey player bars look like you are using Quicktime for Windows vs
DirectShow? What version of LiveCode are you using?


Hm, these modules were done in LiveCode 7 or 8, I'd need to check. I dragged 
out Player objects for these sounds.

Since they still run fine on my machine (and no other complaints have come in), 
I'd assumed that they didn't need to be updated for the transition from 
QuickTime to DirectShow. Do I need to rework these?

The customer did say he'd updated QuickTime on his PC.

thanks!

Curt

--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


players misplaced & not functional on Windows 10

2019-03-15 Thread Curt Ford via use-livecode
I've done a series of modules for a client that involve lots of sound 
files in scrolling groups. To make layout consistent across platforms I 
have a handler that sets the location of the sounds above certain 
paragraphs.


One user on Windows 10 is reporting that the sounds don't play; the 
layout also looks strange: there's an outline of where the sound players 
should be, but the actual grey bars are misplaced, and much smaller than 
they should be.


Here's a screenshot sent in by the client's customer:

https://imgur.com/a/ktDPghI

Here's what the page looks like on my machine, both in standalone and in 
development:


https://imgur.com/a/AWzJk6k

Nobody else has reported this kind of problem. Any ideas?

thanks,

Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


problem with revZipOpenArchive in a Mac app bundle?

2018-12-18 Thread Curt Ford via use-livecode
I'm working on updating a client's project for 64bit compatibility on 
the Mac side.


The project is a menu app that downloads and unzips a number of modules 
from a server. The previous version, done in LiveCode 7, saved & 
unzipped the modules in the app bundle, at 
/Contents/Resources/_MacOS/Modules (that last item is a folder created 
by the app).


This wasn't working when I opened it in LiveCode 9, so I tweaked the 
code to use


specialFolderPath("resources") & slash & "Modules/"

The folder is created and downloaded zip files are saved there as 
expected, but there seems to be a problem extracting it.


I'm trying to follow the steps at 
http://lessons.livecode.com/m/2592/l/126625-zip-tool . It gets as far as 
starting the listZipContents handler, then gives a blank window 
"Execution Error" with a close button. Immediately after 
revZipOpenArchive I have "answer the result" which never shows, so it 
seems to be a problem with revZipOpenArchive?


I'm just feeling my way here... any thoughts on what's going wrong? In 
case it matters: each zipped file is a folder that contains a LiveCode 
stack and a subfolder "media" containing some mp3 files.


My clumsy debugging code:
-- lists the content of an archive pArchive
on listZipContents pArchive
   if the controlKey is down then
  answer "starting listZipContents, pArchive is" && pArchive
   end if
   --IT SEEMS TO FAIL HERE
   revZipOpenArchive pArchive, "read"
   if the controlKey is down then
  answer the result
   end if
   if the controlKey is down then
  answer "just did revZipOpenArchive"
   end if
  local tZipContents
  put revZipEnumerateItems(pArchive) into tZipContents
  put tZipContents into field "FileList"
  if the controlKey is down then
 answer "about to do revZipCloseArchive"
  end if
  revZipCloseArchive pArchive
  if the controlKey is down then
 answer "just did revZipCloseArchive"
  end if
end listZipContents

-Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


updating to 64bit for Macs: standalones vs stacks opened by a standalone

2018-11-14 Thread Curt Ford via use-livecode
A few years ago I did a project for a client that involved a standalone 
that was basically just a menu of modules. When you clicked on an item, 
it downloaded the module, which was a Livecode stack (not standalone); 
after downloading, clicking on an item in the menu app would open the 
downloaded module.


I'm now updating Mac versions of other projects for 64bit compatibility, 
and I'm wondering how to approach this one. I'm assuming the standalone 
menu app will need to be repackaged with LC 9; is the same true of the 
downloaded stacks (which were done in LC 7)? Or is the engine in the 
standalone the only thing that needs to be 64bit?


Curt
--
Sent from Postbox 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode