joytokey & autohotkey (toggle configs realtime)

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
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Sun, 27 Jun 2004 14:44:38 GMT, dexter <asdfasdf@asdf.com> wrote:

[snip]

This appears to be the archive we requested.

Lemming
--
Curiosity *may* have killed Schrodinger's cat.
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Tue, 29 Jun 2004 00:51:00 +0100, Lemming
<thiswillbounce@bumblbee.demon.co.uk> wrote:

>On Sun, 27 Jun 2004 14:44:38 GMT, dexter <asdfasdf@asdf.com> wrote:
>
>[snip]
>
>This appears to be the archive we requested.

Yes.

>
>Lemming

So how's thing's you pig's blood loving chip eating warm bitter
drinking hobnail boot wearing spotty arsed northern git?

Hope you are well.

br d
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Tue, 29 Jun 2004 14:16:13 +0100, br d
<misterbCOCKNEYTWAT@nildram.co.uk> wrote:

>On Tue, 29 Jun 2004 00:51:00 +0100, Lemming
><thiswillbounce@bumblbee.demon.co.uk> wrote:
>
>>On Sun, 27 Jun 2004 14:44:38 GMT, dexter <asdfasdf@asdf.com> wrote:
>>
>>[snip]
>>
>>This appears to be the archive we requested.
>
>Yes.
>
>>
>>Lemming
>
>So how's thing's you pig's blood loving chip eating warm bitter
>drinking hobnail boot wearing spotty arsed northern git?

Yeah, he's well. Overweight from all the chips and beer, but well.

>Hope you are well.

I'm not bad either. You?


Lemming
--
"He'll get a fair trial, then we'll hang him."
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Wed, 30 Jun 2004 23:24:58 +0100, Lemming
<thiswillbounce@bumblbee.demon.co.uk> wrote:

>On Tue, 29 Jun 2004 14:16:13 +0100, br d
><misterbCOCKNEYTWAT@nildram.co.uk> wrote:
>
>>On Tue, 29 Jun 2004 00:51:00 +0100, Lemming
>><thiswillbounce@bumblbee.demon.co.uk> wrote:
>>
>>>On Sun, 27 Jun 2004 14:44:38 GMT, dexter <asdfasdf@asdf.com> wrote:
>>>
>>>[snip]
>>>
>>>This appears to be the archive we requested.
>>
>>Yes.
>>
>>>
>>>Lemming
>>
>>So how's thing's you pig's blood loving chip eating warm bitter
>>drinking hobnail boot wearing spotty arsed northern git?
>
>Yeah, he's well. Overweight from all the chips and beer, but well.

Chips and beer though eh? Just an occasional roll in the hay thrown in
and there's really not a lot more you can ask for from life is there?.
Well, not if you expect an answer.

>
>>Hope you are well.
>
>I'm not bad either. You?

Most splendid thanks, lot's of work, little stress, reasonably
healthy, nope, can't complain at all.

I will return the visit my friend, I'm just a hopeless organiser of
social events. I will mail you shortly for a reaction.

br d
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Fri, 02 Jul 2004 20:03:22 +0100, br d
<misterbCOCKNEYTWAT@nildram.co.uk> wrote:

>I will return the visit my friend, I'm just a hopeless organiser of
>social events. I will mail you shortly for a reaction.

I await your email with bated (or is that baited?) breath. Anyway, I
won't be holding it.

Or you could phone - you know my number.

Lemming
--
Curiosity *may* have killed Schrodinger's cat.
 
Archived from groups: comp.sys.ibm.pc.games.space-sim (More info?)

On Sat, 03 Jul 2004 02:21:24 +0100, Lemming
<thiswillbounce@bumblbee.demon.co.uk> wrote:

>On Fri, 02 Jul 2004 20:03:22 +0100, br d
><misterbCOCKNEYTWAT@nildram.co.uk> wrote:
>
>>I will return the visit my friend, I'm just a hopeless organiser of
>>social events. I will mail you shortly for a reaction.
>
>I await your email with bated (or is that baited?) breath. Anyway, I
>won't be holding it.
>
>Or you could phone - you know my number.

I have it somewhere, I think it may have been on the back of one of
those photo's the police confiscated. Will mail you init.

br d