Detect scroll activity (when LC is not frontmost)
Richmond Mathewson
richmondmathewson at gmail.com
Sat Dec 24 14:39:57 EST 2016
In a perfect world . . . .
There would be a cross-platform solution that did not depend of external
code snippets or components
of operating systems.
A little bird just sang "poll a key" in my ear, but I dismissed it as it
made me think of the executioner
on Tower Hill having to finally hack off the Duke of Monmouth's head
with his pocket knife as his
axe had gone blunt.
Richmond.
On 12/24/16 7:41 pm, Mike Bonner wrote:
> nvm, found the answer. Now going afk long enough to see if I can pick up an
> "idle" msg"
>
>
> On Sat, Dec 24, 2016 at 10:24 AM, Mike Bonner <bonnmike at gmail.com> wrote:
>
>> While digging around for answers I came across something interesting..
>>
>> From windows vista and onward there is a program quser.exe located in
>> \windows\system32 that returns the current user state. From the command
>> line it shows
>> mike console 1 Active none 12/16/2016
>> 5:56 PM
>>
>> I was going to test and see if it would show idle after a period of
>> inactivity (using a looping lc shell call) but heres the interesting
>> thing.. Lc can't see it. At all. Trying a shell call returns " is not
>> recognized as an internal or external command, operable program, or batch
>> file.
>>
>> I can change to the directory in shell and "dir" and there it is. I can
>> run it from shell.
>>
>> If I do a shell call shell("dir quser.exe") on that directory it says
>> "Directory of c:\windows\system" file not found.
>> If I get the files, it isn't there.
>>
>> So my question is this.. What the heck is going on? Its not a hidden or
>> system file, as far as I can tell its just a file sitting there like
>> normal. Why can't lc see it? (why can't the LC shell see it for that
>> matter)
>>
>> On Sat, Dec 24, 2016 at 9:49 AM, Richmond Mathewson <
>> richmondmathewson at gmail.com> wrote:
>>
>>> Sorry: late to the party!
>>>
>>> A rawKeyDown message IS recieved even IF the mouse is NOT in the LiveCode
>>> window, BUT
>>> the LiveCode window MUST be the front window.
>>>
>>> A rawKeyDown message won't be recieved IF the mouse is NOT in the
>>> LiveCode windows if
>>> it comes from a mouse button, scrollwheel or track ball.
>>>
>>> The micro trackball on the top of my Macintosh mouse sends these
>>> rawKeydowns:
>>>
>>> Left: 65310 . . . . . . Left Arrow Key: 65361
>>>
>>> Right: 65311 . . . . . . Right Arrow Key: 65363
>>>
>>> Forward: 65308 . . . . . . Up Arrow Key: 65362
>>>
>>> Back: 65309 . . . . . .Down Arrow Key 65364
>>>
>>> Richmond.
>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list