Hi.
--- In [EMAIL PROTECTED], "Russel" <[EMAIL PROTECTED]> wrote:
> > Mockey's suggestion may work but it's awkward, as he says.
I found a better solution now...:-)
in keytrap.ini:
;set the key NOT to be eaten on keydown:
winkey1=0,0,0,91,91,0,,,,1,0,0
;set the key to be eaten on keyup and run a script:
winkey2=0,0,0,91,91,1,,,.winkey,1,1,0
;use the key as a modifier and run a script
;with a command as parameter:
winkey3=91,0,0,44,89,0,,,[EMAIL PROTECTED]("win.debug(time)"),1,1,0
the script winkey.powerpro:
static WINisMOD
if (not WINisMOD) do
win.debug("win key alone!")
else
WINisMOD = 0
endif
keytrap.resetKeys
if (visiblewindow("c=#32768"))
win.keys("{toany c=#32768}{Esc}")
quit
@mod
static WINisMOD = 1
do(arg(1))
quit
The only problem is that when the keyup of the win-key gets eaten it
stays down for the system. When I send a keyup then, the startmenu
gets shown. The same for keytrap.resetKeys(91). keytrap.resetKeys
does work without startmenu but it pops up the app-menu on my system.
I close that with Esc. Well, not perfect, but it works...
Mockey
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/