Externals, Livecode and MacOS : problems

2016-12-25 Thread Ludovic THEBAULT
hello, I need to compile an « old » and big stack (created six years ago). I am under MacOS X 10.11 With Livecode 8.12 : the standalone is created without errors and work on MacOS X 10.11 but crash on 10.6 (because of the external tsnet, bug 19035

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
If I remember what I read, yes it was only 10.12 so yeah, Its most likely fixed by 10.12.2 Merry Christmas! On Sun, Dec 25, 2016 at 10:25 PM, Terry Vogelaar wrote: > Thank you, Mike, for this! This is what I was searching for indeed. And > you're right; I want to detect activity, not just scrol

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Terry Vogelaar
Thank you, Mike, for this! This is what I was searching for indeed. And you're right; I want to detect activity, not just scrolling. Scrolling was the only activity I could not catch yet, hence the subject line. But this does exactly what I want. Fortunately I can not replicate the issue with 1

Copy Folders on Mobile

2016-12-25 Thread Sannyasin Brahmanathaswami
Is there an easy way to copy a whole folder (plus sub-folders and files) recursively from specialFolderPath("resources") # or "engine" same thing… (right?) to specialFolderPath("documents") # writeable on mobile? We are getting some pecular behavior on Android where setting the browser widg

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Iphonelagi
Hi AppleScript is the way to go with a shell execute command every x seconds or so Found this to get you started http://hints.macworld.com/article.php?story=20040330161158532 Lagi Sent from my iPhone > On 24 Dec 2016, at 19:39, Richmond Mathewson > wrote: > > In a perfect world . . . . >

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
And, likewise: I hope everyone can find their moment of peace and tranquility, whatever their views on religion. Richmond. On 12/25/16 7:19 pm, Mike Bonner wrote: Really headed next door now but.. This is from the original poster.. "I’m working on a productivi

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
Aha! On 12/25/16 7:19 pm, Mike Bonner wrote: Really headed next door now but.. This is from the original poster.. "I’m working on a productivity & RSI prevention app. So I want to notice activity while my project is not the frontmost application." On Sun, Dec 25, 2016 at 10:08 AM, Mike Bonner

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
Really headed next door now but.. This is from the original poster.. "I’m working on a productivity & RSI prevention app. So I want to notice activity while my project is not the frontmost application." On Sun, Dec 25, 2016 at 10:08 AM, Mike Bonner wrote: > And on that note, heading to see the f

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
And on that note, heading to see the family. Merry (insert your own acceptable season greeting or general wish for happiness here.) On Sun, Dec 25, 2016 at 10:08 AM, Mike Bonner wrote: > Actually, the question boils down to "is the user active." not "what key > is pressed, was a screen scrolle

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
Actually, the question boils down to "is the user active." not "what key is pressed, was a screen scrolled(using what device) , or what button was clicked." I could be wrong. /shrug The only recent issue that needed to be solved is that scroll is an activity too, and there was no easy way to get

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
Aha. On 12/25/16 6:42 pm, Mike Bonner wrote: Using my script, the numbers will change every 2 seconds. If you do nothing and watch the numbers, the digits to the left of the decimal should increase by approximately 2 each cycle. If you type, scroll, whatever, the number should shrink (possibly

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
Aha: thanks. On 12/25/16 6:39 pm, Mike Bonner wrote: The script does an end run of the whole situation. The os itself is keeping track of the idle time between user events. All the script does is grab the current value. And since only HID (human interface devices) are tracked, any mouse/keyboa

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
Using my script, the numbers will change every 2 seconds. If you do nothing and watch the numbers, the digits to the left of the decimal should increase by approximately 2 each cycle. If you type, scroll, whatever, the number should shrink (possibly even a 0 to the left of the decimal) What versi

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
I have just tried this: 1. When the stack is frontMost it puts a large digit number (5-8 after the decimal point) into the field at all sorts of intervals. There is no obvious connexion between any of these numbers and the keys I am currently bashing on to type this message, nor when I use

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
The script does an end run of the whole situation. The os itself is keeping track of the idle time between user events. All the script does is grab the current value. And since only HID (human interface devices) are tracked, any mouse/keyboard activity in any app of the system will reset the time

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Richmond Mathewson
Does that mean that if, say, I have a stack running your script in the stackScript and I'm scrolling a window in Firefox that that scrolling will register in the LC stack? The reason I am asking that question is because I don't quite understand how one effect a mouseUp while one is scrolling w

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
I have an answer.. Heres a sample script: local sRunning on mouseUp if sRunning is empty then put false into sRunning put not sRunning into sRunning loopit end mouseUp command loopit if sRunning then put the last word of (shell("ioreg -c IOHIDSystem |grep Idle")) into tIdle put tIdle / 1

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Paul Dupuis
On 12/25/2016 10:05 AM, Terry Vogelaar wrote: > So it starts to become clear that it might not be possible to do what I want. > Although I hope to be wrong about that. I think it is very unlikely you can do this in LC - without externals or LCB widgets from "infinite Livecode". The active mouse

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Mike Bonner
Hmm. Theres probably a way to do it on mac. If I get lucky I'll let you know. On Sun, Dec 25, 2016 at 8:05 AM, Terry Vogelaar wrote: > A lot of responses to my question; thank you all for that. I use the > digest, so sometimes it takes a while before I respond. > > Richard's suggestion to keep

Re: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Terry Vogelaar
A lot of responses to my question; thank you all for that. I use the digest, so sometimes it takes a while before I respond. Richard's suggestion to keep the LC window in front is not what I want. It needs to run in the background because it is for a productivity & RSI-prevention app. The whole