G
Guest
Guest
Archived from groups: comp.sys.ibm.pc.games.action,comp.sys.ibm.pc.games.flight-sim,comp.sys.ibm.pc.games.rpg,comp.sys.ibm.pc.games.space-sim,comp.sys.ibm.pc.games.strategic (More info?)
Make a keyboard hotkey (spacebar, capslock, etc) that will switch between
multiple joytokey configs in (real-time).
so a 4 button joystick can now have 8 or 12
'virtual' buttons, just by holding down (spacebar or Lshift, etc)!
I posted the macro/script for this on www.autohotkey.com script forum.
Below is info on autohotkey.
http://www.autohotkey.com
This free hotkey/macro/scripting program (open-source) is truly excellent.
It can create hotkeys using --ANY-- keyboard, mouse or joystick
buttons (WinXP).
Hotkey examples:
spacebar + [a-z]
spacebar + joybutton [1-32]
spacebar + mousebutton [1-5]
capslock + [a-z]
capslock + joybutton [1-32]
capslock + mousebutton [1-5]
'a' + [b-z]
'a' + mousebutton [1-5]
'a' + joybutton [1-32]
Lshift + joybutton [1-32]
Lshift + mousebutton [1-5]
Lshift + [a-z]
Also, any -Single- key on the keyboard can be made a hotkey! No prefix key
or combination keys required.
So the letter 'k' or even a comma ',' could become hotkeys.
Macros can perform different commands when:
1. the hotkey is first pressed down
2. while the hotkey is held down (auto-repeat feature)
3. when the hotkey is released.
Excellent!
The macro/scripts that you assign to a hotkey are easy to script, and
powerful.
Examples:
-'Hold' down any key/button, using a toggle hotkey.
-Create many 'virtual' joystick/mouse buttons
-Move/click the mouse using hotkeys.
-Respond to pixel colors
-Create PopUp menus (toolbars)
-Control any program, while its in the background.
-Compile the script into an *.exe file.
-Auto Respond to popup windows.
------------------------------------------------------------------------------
------------------------------------------------
Its a very flexible program and is free, open-source GNU.
http://www.autohotkey.com
Note: Game compatibility and hotkey combinations are currently limited under
win98.
Below are working hotkeys scripts:
+w::send, {enter} ; uppercase W , sends enter
;------------- space + middle mouse , sends pagedown
space & mbutton::send, {pgdn}
;------------- space+h moves mouse cursor and clicks up
space & h::
mousemove, 345, 66
mouseclick, right, , , , , U
return
;--------------- pressing 'w' will toggle the left mouse button drag mode
space & w::
GetKeyState, updown, Lbutton, L
if updown = d
mouseclick, left, , , , , u
if updown = u
mouseclick, left, , , , , d
return
;;--------------space + mouse button #5, sends whatsup (text)
space & xbutton2::
Run, Notepad.exe
winactivate, Untitled - Notepad
winwaitactive, Untitled - Notepad
send, whatsup
return
;--------------Joystick POV hat, remap if Lshift down
Lshift::
getkeystate, state, JoyPOV
ifequal, state, 0, Send, {up}
ifequal, state, 9000, send, {right}
ifequal, state, 18000, send, {down}
ifequal, state, 27000, send, {left}
sleep, 200
return
;;------------- force Lshift and ctrl key into UP state
capslock & g::
send, {ctrl up}
send, {Lshift up}
return
$space::send {space} ;spacebar send itself
Make a keyboard hotkey (spacebar, capslock, etc) that will switch between
multiple joytokey configs in (real-time).
so a 4 button joystick can now have 8 or 12
'virtual' buttons, just by holding down (spacebar or Lshift, etc)!
I posted the macro/script for this on www.autohotkey.com script forum.
Below is info on autohotkey.
http://www.autohotkey.com
This free hotkey/macro/scripting program (open-source) is truly excellent.
It can create hotkeys using --ANY-- keyboard, mouse or joystick
buttons (WinXP).
Hotkey examples:
spacebar + [a-z]
spacebar + joybutton [1-32]
spacebar + mousebutton [1-5]
capslock + [a-z]
capslock + joybutton [1-32]
capslock + mousebutton [1-5]
'a' + [b-z]
'a' + mousebutton [1-5]
'a' + joybutton [1-32]
Lshift + joybutton [1-32]
Lshift + mousebutton [1-5]
Lshift + [a-z]
Also, any -Single- key on the keyboard can be made a hotkey! No prefix key
or combination keys required.
So the letter 'k' or even a comma ',' could become hotkeys.
Macros can perform different commands when:
1. the hotkey is first pressed down
2. while the hotkey is held down (auto-repeat feature)
3. when the hotkey is released.
Excellent!
The macro/scripts that you assign to a hotkey are easy to script, and
powerful.
Examples:
-'Hold' down any key/button, using a toggle hotkey.
-Create many 'virtual' joystick/mouse buttons
-Move/click the mouse using hotkeys.
-Respond to pixel colors
-Create PopUp menus (toolbars)
-Control any program, while its in the background.
-Compile the script into an *.exe file.
-Auto Respond to popup windows.
------------------------------------------------------------------------------
------------------------------------------------
Its a very flexible program and is free, open-source GNU.
http://www.autohotkey.com
Note: Game compatibility and hotkey combinations are currently limited under
win98.
Below are working hotkeys scripts:
+w::send, {enter} ; uppercase W , sends enter
;------------- space + middle mouse , sends pagedown
space & mbutton::send, {pgdn}
;------------- space+h moves mouse cursor and clicks up
space & h::
mousemove, 345, 66
mouseclick, right, , , , , U
return
;--------------- pressing 'w' will toggle the left mouse button drag mode
space & w::
GetKeyState, updown, Lbutton, L
if updown = d
mouseclick, left, , , , , u
if updown = u
mouseclick, left, , , , , d
return
;;--------------space + mouse button #5, sends whatsup (text)
space & xbutton2::
Run, Notepad.exe
winactivate, Untitled - Notepad
winwaitactive, Untitled - Notepad
send, whatsup
return
;--------------Joystick POV hat, remap if Lshift down
Lshift::
getkeystate, state, JoyPOV
ifequal, state, 0, Send, {up}
ifequal, state, 9000, send, {right}
ifequal, state, 18000, send, {down}
ifequal, state, 27000, send, {left}
sleep, 200
return
;;------------- force Lshift and ctrl key into UP state
capslock & g::
send, {ctrl up}
send, {Lshift up}
return
$space::send {space} ;spacebar send itself
