Hi.
--- In [email protected], Cüneyt <[EMAIL PROTECTED]> wrote:
> Can someone show me some Keytrap entries which define a Win-key-
only
> action and Win+SOMEKEY (such as Win+N) actions?
I once wrote a script which does this, after some experimenting. I
don't recall exactly ATM, what it does and why, cause it's a long
time ago, but it works for me. Have a look. Script is called
keys.powerpro:
;;; functions for redefining the Win-key,
;;; can be used as modifier-key and also alone
@Win
static WinMod
;;; using Shift to avoid the Win-Menu onkeyup:
keytrap.sendkeys(42, 160, 0)
if (not WinMod) do
win.debug("win key alone!")
else
WinMod = 0
endif
;;; resetting the Win-key (stays pressed otherwise):
keytrap.resetKeys(91)
;;; resetting the Shift-key:
keytrap.sendkeys(42, 160, 1)
quit
;;; Win-key as modifier:
@WinMod
static WinMod = 1
do(arg(1))
quit
Then I have the following entries in keytrap.ini:
winkey1=0,0,0,91,91,0,,,,1,0,0,0,1,0
winkey2=0,0,0,91,91,1,,,[EMAIL PROTECTED],1,1,0,0,1,0
winkey3=91,0,0,44,89,0,,,[EMAIL PROTECTED]("win.debug(time)"),1,1,0,0,0,0
winkey1 blocks the Win-actions.
winkey2 is the action for Win-key alone (can be changed in the
script)
winkey3 is a test-action for Win + y
Maybe you can improve this for your own needs...
Mockey
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
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/