Hi.
--- In [EMAIL PROTECTED], C�neyt <[EMAIL PROTECTED]> wrote:
> How can I mimick Win-Key behaviour with Keytrap 1.9, that is:
> - if pressed+depressed => start menu,
> - if pressed with anotherkey => do something else but do NOT show
> start menu

It doesn't seem to be possible right now with keytrap to have a key 
as a "standalone" hot-key and as a modifier-key at the same time.
One workaround might be to use keytrap for win-key alone and PowerPro 
for the combinations as Alex suggested.

Another (rather awkward) workaround would be something like this:
Entries for keytrap.ini:

winkey=0,0,0,91,91,1,,,[EMAIL PROTECTED],1,0,0
winy=91,0,0,44,89,0,,,[EMAIL PROTECTED],1,1,0

First of all EAT has to be 0 for the win-key alone. Otherwise it 
won't work as modifier. On PureLS the StartMenu shouldn't show, so 
that shouldn't matter, I guess.

Now the script "winkey.powerpro" that is something like this:

@win
static WINasMOD
if (not WINasMOD)
  win.debug("showmenu here")
quit

@mod
win.debug(time)
static WINasMOD = 1
if (event.exists(winTimer))
  event.destroy(winTimer)
static winTimer = event.create(3, 1, "." ++ scriptname ++ "@reset")
quit

@reset
WINasMOD = 0
quit

The command @win is only run when WINasMOD is 0, The var is set to 1 
when run @mod. The problem is resetting the var to 0 which is done by 
a 3-second-timer. Rather awkward, as I said...

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/
 

Reply via email to