AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Took up Ali's invitation to give amending the LC Dictionary via GitHub a go. With regard to - do as The OS X explanation of 'the result' is quite straight forward and easy to demonstrate. On OS X systems any result returned by the script language is placed in the > result. do "6 / 2" as

Re: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
​​ > Regex has been around a long time > and lots of smart computer science types has > spent time coming up with ways to optimize its performance for pattern > matching. That's was true, it's still true and will always be true! and here are some benchmarks done in a late rainy sunday

Re: Can Handler Know What Params It Should Have

2016-02-03 Thread Bernard Devlin
Hi Hermann Even with the "LC handler" it's not quite giving me what I'd like. It's still providing data from params(), rather than, for example, returning mouseUp pNumberOfMouseButtonClicked. I was hoping that a handler could provide information about itself at compile time, rather than simply

Re: Can Handler Know What Params It Should Have

2016-02-03 Thread Bernard Devlin
Hi Pierre I think we might be talking about different things. For a few minutes, I thought you were saying that "get function someFunctionName()" would return the "signature" of that function (in Java the "signature" of a handler is "name param1 paramN"). But in LC it appears we can't ask the

Re: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Mike Kerner
yay! On Wed, Feb 3, 2016 at 8:34 AM, Peter TB Brett wrote: > On 03/02/2016 11:31, Kevin Miller wrote: > >> You might also be interested to know that the whole issue with background >> apps/suspend/resume will be much improved in LC 8. All this time working >> on the

Re: Can Handler Know What Params It Should Have

2016-02-03 Thread Mark Waddingham
On 2016-02-02 17:05, Bernard Devlin wrote: I know the params can be called to find out what parameters were passed to the handler when it is called. However, I'm wondering if a handler has a way of knowing what parameters it had at the time it was defined. There isn't currently a way to get

Re: AW: Re: Regex help needed...

2016-02-03 Thread Bernard Devlin
Hi Mark, There's huge differences in how regex implementations perform in different languages. For example: http://raid6.com.au/~onlyjob/posts/arena/ Perl outperforms everything in that test. I've never assumed that LC's "perl compatiable regex library" is going to perform at the speed which

Release 6.7.9 RC 1 / 7.1.2 RC 1

2016-02-03 Thread panagiotis merakos
Dear List Members, We are pleased to announce the release of LiveCode 6.7.9 RC 1 and 7.1.2 RC 1. *Release Contents* - 31 bugs are fixed in LiveCode 6.7.9 RC 1 - 35 bugs are fixed in LiveCode 7.1.2 RC 1 (in addition to the 31 bugs fixed in 6.7.9 RC 1, which are also fixed in 7.1.2 RC 1).

Re: AW: Re: Regex help needed...

2016-02-03 Thread Ali Lloyd
On Wed, Feb 3, 2016 at 11:53 AM Bernard Devlin wrote: > One of the things we had in LC5 which was phenomenally fast, was searching > through the styledText of a field. That fast way of searching particular > text structures got lost in the migration to LC8. Could you expand

AW: How to create a hyperlink within a text field?

2016-02-03 Thread Tiemo Hollmann TB
Alternativly I also tried to work with lineOffset and setting the vScoll of the field. The lineOffset gives me the number of the found textline, but not the visible line number of a scrolling field with word wrap, which can be resized. In such a field the "effective" line number can vary,

Re: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Mark Waddingham
On 2016-02-03 00:18, Scott Rossi wrote: Actually, openStack seems to work the same -- not sent after resuming from being backgrounded. So several options to be had :-) Yes - this should work for your purposes (if I understand your intent correctly!). At the moment... If 'exits on

Re: AW: Re: Regex help needed...

2016-02-03 Thread Peter TB Brett
On 03/02/2016 11:53, Bernard Devlin wrote: Perl outperforms everything in that test. I've never assumed that LC's "perl compatiable regex library" is going to perform at the speed which actual Perl performs. I've always assumed that being "perl compatible" just meant that all

How to create a hyperlink within a text field?

2016-02-03 Thread Tiemo Hollmann TB
Hello, just not to invent the wheel again. I have a long text field with a table of contents at the beginning and headlines for chapters and I would like to make the table of content clickable as hyperlinks, so that the user is forwarded to the wanted chapter in the same field. I can set the

Re: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Kevin Miller
You might also be interested to know that the whole issue with background apps/suspend/resume will be much improved in LC 8. All this time working on the various architecture projects is letting us address all kinds of longstanding issues! There will still be some work to do on the part of the

Re: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Mike Kerner
yay! On Wed, Feb 3, 2016 at 6:31 AM, Kevin Miller wrote: > You might also be interested to know that the whole issue with background > apps/suspend/resume will be much improved in LC 8. All this time working > on the various architecture projects is letting us address all

Launching a PDF file stored within a desktop app

2016-02-03 Thread Charles Szasz
Has anyone come up with a script to launch a PDF that is a file within a desktop app? I was thinking of including a PDF Help file within an app. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Yes, that was the answer. Somehow I overlooked it. As a little starter for those who need it here is a little script. Without the wait command, the mouse movement is not visible. on mouseUp get the topleft of this stack add 10 to item 1 of it add 30 to item 2 of it put 1 into x

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread Roger Eller
Only within an embedded browser, but it works. ~Roger On Wed, Feb 3, 2016 at 4:05 PM, Charles Szasz wrote: > Has anyone come up with a script to launch a PDF that is a file within a > desktop app? I was thinking of including a PDF Help file within an app. > > Sent from my iPad

Re: Moving the mouse pointer by script

2016-02-03 Thread Scott Rossi
As Klaus said, screenMouseLoc is what you need. In my case, I'd like to know how not only how to move the mouse, but to drag an object via script as well. Obviously one can set the loc of the object, but is there way to trick LiveCode into thinking the mouse is down so that the standard actions

Re: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
If I can find the code, somewhere around here I have an external that sends clicks. For my use I had it send a down and up, was using it as part of a remote control system. (so that I could run my computer, from my android device) If I can locate the code, it shouldn't be too hard to separate

Re: AW: Re: Regex help needed...

2016-02-03 Thread Peter Haworth
Hi Thierry, I might have missed it but did you publish your Regex2 to the list? Pete On Wed, Feb 3, 2016 at 12:07 PM Richard Gaskin wrote: > Thierry Douez write: > > >> Regex has been around a long time > >> and lots of smart computer science types has > >> spent

Re: AppleScript vs VBScript

2016-02-03 Thread Trevor DeVore
On Wed, Feb 3, 2016 at 10:25 AM, Kay C Lan wrote: > > I see in the last script how you've declared in VBScript, but I > believe this below script is also your script and is not declared, > you simple check LC's own 'the result'. > > (line wraps are probably all over

Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Looking up lots of sites and messages, I could not find a way moving (dragging) the mouse pointer using a script. Or am I just blind? This is for an animation sequence... instead of the user dragging an object, the object is dragged using the mouse without user interaction - so the pointer is

access user's videos on iOS

2016-02-03 Thread Ben Rubinstein
We an use mobilePickMedia to access the user's audio library, and then play a selected audio file. Is there any mechanism to access the user's video library, on iOS (in particular) or Android? TIA Ben ___ use-livecode mailing list

Re: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Ben Rubinstein
On 03/02/2016 13:34, Peter TB Brett wrote: You can track progress of the mobile suspend and resume feature here: http://quality.livecode.com/show_bug.cgi?id=16829 This is good news! Is there any reason not to track progress here http://quality.livecode.com/show_bug.cgi?id=11845 ? Or should

Re: AW: How to create a hyperlink within a text field?

2016-02-03 Thread Mark Waddingham
On 2016-02-03 14:39, Tiemo Hollmann TB wrote: Alternativly I also tried to work with lineOffset and setting the vScoll of the field. The lineOffset gives me the number of the found textline, but not the visible line number of a scrolling field with word wrap, which can be resized. In such a

Re: AppleScript vs VBScript

2016-02-03 Thread Trevor DeVore
On Wed, Feb 3, 2016 at 5:08 AM, Kay C Lan wrote: > > Searching the List for VBScript examples I see nowhere where a global > 'result' variable is defined but a simple test if LC's 'the result' > contains "error". > Here is a VBScript I have used in the past that sets

Re: Moving the mouse pointer by script

2016-02-03 Thread Klaus major-k
Hi Roland, > Am 03.02.2016 um 15:55 schrieb Roland Huettmann : > > Looking up lots of sites and messages, I could not find a way moving > (dragging) the mouse pointer using a script. > > Or am I just blind? > > This is for an animation sequence... instead of the

Re: AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Ah, just the person I was hoping would answer. I see in the last script how you've declared in VBScript, but I believe this below script is also your script and is not declared, you simple check LC's own 'the result'. (line wraps are probably all over the place) ## put the

Re: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
nope, can't find it. If you have a handle on LCB you could try using com.livecode.foreign in lcb to set up a mousedown and mouseup. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
As did I. What happened when you set the linesize to 0? On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay wrote: > > > On Feb 1, 2016, at 11:53 AM, Howard Bornstein > wrote: > > > > If you set the line size to 0, the outer glow disappears. > > For what

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread Charles Szasz
Roger, How well does printing does the printing work on Windows and Mac? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Terry Judd
Hi Howard - the outerglow (and innerglow) of an object display fine for me on both a field and an (and this bit is important) *opaque* graphic object when their borderWidth and lineSize properties are respectively set to 0. Terry... On 4/02/2016 11:26 am, "use-livecode on behalf of Howard

export variables to launched process?

2016-02-03 Thread Richard Gaskin
I've successfully exported variables to a process run with shell, e.g.: put shell("export somevar='Hello!'; ./test.sh") ...where test.sh simply echoes somevar to verify that it got it. Now I have a process I need to read and write to, but I don't know how to export variables to it -

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Devin Asay
Howard, I'll bet it's what Terry said. I remember being surprised once when effects didn't work on a transparent graphic. Devin Sent from my iPhone > On Feb 3, 2016, at 6:21 PM, Terry Judd wrote: > > Hi Howard - the outerglow (and innerglow) of an object display

Re: AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Thanks Mark, that is certainly much clearer than what the Dictionary says. I've found this nice short example on the List but before I add it to the Dictionary I would appreciate if someone could confirm it works in the latest version of Windows. The poster made a snide comment that it may or may

Re: How to create a hyperlink within a text field?

2016-02-03 Thread Kay C Lan
On Thu, Feb 4, 2016 at 12:58 AM, Peter Brigham wrote: > Two ways to do it. The first and simplest is to lock the screen and do 2 > finds in succession, as you suggested. It's not that simple. If your chapter is called 'Opinions' or 'LiveCode' or something else that may

Re: Moving the mouse pointer by script

2016-02-03 Thread BNig
Hi Scott, just looked at it and if I understand what you want to do then the drag command does it. make a small graphic "g1" place it into the center of a card make a button "bDrag" and place it in the topLeft cornder another button in the lower half of the card script of that button

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread Roger Eller
I have only used the browser method for viewing a PDF in a Windows exe. It should print though, just as it would from a browser. On Feb 3, 2016 6:28 PM, "Charles Szasz" wrote: > Roger, > > How well does printing does the printing work on Windows and Mac? > > Sent from my iPad >

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Randy Hengst
When the graphic or button is transparent and show name is selected, you should see the outerGlow effect around the name of the control. be well, randy www.classroomFocusedSoftware.com > On Feb 3, 2016, at 7:19 PM, Terry Judd wrote: > > Hi Howard - the outerglow

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
Yes this is true and understood. However, I've been working with Brahmanathswami to find a solution for a transparent object because, as he says, "Any inner glow or outer glow leaves a sharp edge on the object no matter what we do." (with an opaque object) He was looking for a way to feather

Re: How to create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
Two ways to do it. The first and simplest is to lock the screen and do 2 finds in succession, as you suggested. The second is to get the lineoffsets of the link text and scroll to the second occurrence of it. Once you find the line offset of the actual chapter heading, use "the formattedheight of

Re: AppleScript vs VBScript

2016-02-03 Thread Mark Waddingham
On 2016-02-03 16:25, Kay C Lan wrote: So again this leave me wonder as to the real situation with Windows? Can it be like OS X where you simply check LC's 'the result' ? On Windows how do you know when you NEED to declare in VBScript and when you don't ? My AppleScript and VBScript are a

Re: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Peter TB Brett
On 03/02/2016 14:37, Ben Rubinstein wrote: On 03/02/2016 13:34, Peter TB Brett wrote: You can track progress of the mobile suspend and resume feature here: http://quality.livecode.com/show_bug.cgi?id=16829 This is good news! Is there any reason not to track progress here

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread Paul Hibbert
Charles, Check out: launch url or… launch [documentPath with] applicationPath in the dictionary example script… on mouseUp put the effective fileName of this stack into tPdf set the itemDel to slash delete item -1 of tPdf put "/Support/Instructions.pdf" after tPdf launch tPdf

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Scott Rossi
I'm guessing you guys want the final result to be rectangular and not oval-shaped. That's too bad because you could use a radial gradient using a single color (i.e. white to white) in a graphic with the inner color set to 100% transparent -- this makes a near-perfect mask but only in oval shape.

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
> > You can achieve a feather effect using multiple objects stacked on top of > each other, but then you have to ask is that worth doing. If you have to > do anything with the set of objects, such as move it around or scale it, > then the effect is probably too much trouble, especially on mobile.

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
On Wed, Feb 3, 2016 at 9:45 PM, Terry Judd wrote: > OK, what about thisŠ > > Transparent (non opaque) graphic object with a 1 pixel linesize. Apply an > outer glow - this will display equally on either side of the border. Then > alter the border colour to match the

Re: How to create a hyperlink within a text field?

2016-02-03 Thread J. Landman Gay
A little trick: Create or import a transparent 1x1 pixel image. Hide it. Make each line in the table of contents into linked text. The html of each line looks like this: Chapter one In the body text of the field, place a marker character before the chapter heading. I'm using "#", like

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Scott Rossi
The way one *should* be able to do this is using the innerGlow effect. However, by itself, using the basic setting is not strong enough, and the spread effect is backwards (increases outward, rather than inward -- bug) so that's useless. You can achieve a feather effect using multiple objects

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Terry Judd
OK, what about thisŠ Transparent (non opaque) graphic object with a 1 pixel linesize. Apply an outer glow - this will display equally on either side of the border. Then alter the border colour to match the glow where it adjoins the border. The border Œdisappears¹ but it may or may not simulate

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread AndyP
you could start by embedding the pdf in your app in a custom property and spit it out as required. see this post with links to examples. http://runtime-revolution.278305.n4.nabble.com/Ann-Save-and-Deploy-files-to-and-from-Custom-Properties-td4700387.html

Re: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
There's huge differences in how regex implementations perform in different > languages. For example: http://raid6.com.au/~onlyjob/posts/arena/ > ​Last year, I did some experiments: I had a 100 lines of LiveCode with a bunch of really big Regex. It took 120 seconds on my Macbook to run. I tried

Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Peter TB Brett
On 03/02/2016 11:31, Kevin Miller wrote: You might also be interested to know that the whole issue with background apps/suspend/resume will be much improved in LC 8. All this time working on the various architecture projects is letting us address all kinds of longstanding issues! There will

Re: AW: How to create a hyperlink within a text field?

2016-02-03 Thread [-hh]
Hi, Bernd and I had once a long thread in the forum about selecting text where we found *the selectedLoc* to be very useful. Means here: [1] When writing the chapters mark their offset in your text in a separate list, one line per mark [or as metadata of each link]. [2] Then walk once through

[ANN]SoCal LUG meeting Thurs., Feb 4

2016-02-03 Thread Richard Gaskin
The next meeting of the SoCal LiveCode User Group is tomorrow, Feb 4, at 7PM in Pasadena. Details in the forum: http://forums.livecode.com/viewtopic.php?f=50=26469 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: How to create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
A third alternative: split off the chapter title list into another field -- a list field -- and then you can just do a simple find in your text field when the user clicks in the chapter list field. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Wed, Feb 3, 2016

Re: access user's videos on iOS

2016-02-03 Thread Monte Goulding
Take a look at mergMP Sent from my iPhone > On 4 Feb 2016, at 1:38 AM, Ben Rubinstein wrote: > > We an use mobilePickMedia to access the user's audio library, and then play a > selected audio file. > > Is there any mechanism to access the user's video library, on iOS (in

Re: AW: Re: Regex help needed...

2016-02-03 Thread Richard Gaskin
Thierry Douez write: Regex has been around a long time and lots of smart computer science types has spent time coming up with ways to optimize its performance for pattern matching. That's was true, it's still true and will always be true! It's true that there are almost always ways to