| View previous topic :: View next topic |
| Author |
Message |
JJF
Joined: 08 Jan 2008 Posts: 29
|
Posted: Mon Jun 16, 2008 10:44 am Post subject: Is it possible to Assign several keys at one assignment? |
|
|
Hi Guys ,
Is it possible to Assign all those hotkeys as a group ?
Something like:
#[1-4]::
{
qty:= (the Key pressed)
gosub Do_it
winRestore, %t% ;Restoring the last window on the cycle
return
}
Thanks,
James
| Code: | PgUp::
gosub Do_it
winRestore, %t% ;Restoring the last window on the cycle
return
#1::
qty:=1
gosub PgUp
return
#2::
qty:=2
gosub PgUp
return
#3::
qty:=3
gosub PgUp
return
#4::
qty:=4
gosub PgUp
return |
|
|
| Back to top |
|
 |
canta
Joined: 30 May 2006 Posts: 49
|
Posted: Mon Jun 16, 2008 11:30 am Post subject: |
|
|
Is this what you mean? | Code: | #1::
#2::
#3::
#4::
qty:=1
gosub PgUp
return |
|
|
| Back to top |
|
 |
heresy
Joined: 11 Mar 2008 Posts: 291
|
Posted: Mon Jun 16, 2008 11:46 am Post subject: |
|
|
Correction
| Code: | #1::
#2::
#3::
#4::
qty:=SubStr(A_ThisHotKey,2,1)
gosub PgUp
return |
_________________ Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com |
|
| Back to top |
|
 |
|