--- In [EMAIL PROTECTED], "mockey_a" <[EMAIL PROTECTED]> wrote:
> Hi.
> --- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> > OK. Now I think I pinned down the reason. It's not the modifier keys
> > but the command "keytrap.sendkeys()" or "win.sendkeys()".
>
> It's correct that it seems to have something to do with these
> commands. I tried it with win.debug instead and it works as expected
> then.
> BTW I'm a bit stunned that win.sendkeys works at all because
> according to the keytrap-readme it shouldn't. It says that you should
> use keytrap.sendkeys instead. I remember I also tried it some time
> ago and win.sendkeys didn't work at all then. Maybe Russell has
> changed something...
>
> > In retrospect, it's a reasonable behavior for "sending keys"
> command,
> > otherwise it would send unwanted keys too.
>
> Why that? Doesn't make any sense to me.
> Why does it work without modifier key?
> And why does it work perfectly with the App-key as the modifier then?
> Strange...
Hi, Mockey:
Actually I found out that the command seemed to trigger immediately
at the press of the keys. So, I'm completely lost again. :)
Try the following command with or without visible notepad:
glob6=162,0,0,2,49,0,,,keytrap.sendkeys("{to =notepad}OK"),1,1,0
where the modifier key is "left ctrl" in my keyboard.
This behavior seemed to apply to (left & right) "Ctrl, Alt, Shift,
& Win" modifier keys only. Other modifier keys seem to work
immediately at the key presses, as expected.
And I found out another weird thing related with "ctrl, alt, shift".
(Notice the absence of "Win" key, at least in my case here)
glob6=162,0,0,2,49,2,,,keytrap.sendkeys("{148}"),1,1,0
It worked only at OnKeyUp, not OnKeyDown.
But, if you replace the command with "win.sendkeys("{148}")",
then it worked both OnKeyUp and OnKeyDown.
With other OnKey options, 0 or 1, there were no problems at all.
No problems with other modifier keys either, as far as I can tell.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/