| View previous topic :: View next topic |
| Author |
Message |
barrosz
Joined: 25 Feb 2005 Posts: 5
|
Posted: Fri Feb 25, 2005 11:06 pm Post subject: help with my wheel |
|
|
total noob tothis program, great app btw, and im trying to make sort of my own macro for my steering wheel, since m$ doesnt support their own hardware. what i want to do is when i press the wheel button 1 it would send button 1 then button 2, doesnt seem hard but i cant figure it out.
joy button 1::send, joybutton 1, joybutton 2
is this possible? |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Feb 25, 2005 11:17 pm Post subject: |
|
|
There is a script in the script show case that can test joy sticks, if I were you I would test your wheel with that script to see if it responds the the testing, if it does respond like a joystick I am sure you can do what you want _________________ my lame sig  |
|
| Back to top |
|
 |
barrosz
Joined: 25 Feb 2005 Posts: 5
|
Posted: Fri Feb 25, 2005 11:20 pm Post subject: |
|
|
| yeah i used that to know wich buttons are wich number but how do i send the comands? |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Feb 25, 2005 11:20 pm Post subject: |
|
|
| There is currently no way to simulate joysticks or anything like them in AutoHotkey, and I have reason to doubt that there ever will be. They're much harder to "hook into" than the mouse or keyboard. |
|
| Back to top |
|
 |
barrosz
Joined: 25 Feb 2005 Posts: 5
|
Posted: Fri Feb 25, 2005 11:24 pm Post subject: |
|
|
i see so there is no way i can make this work? i thought that it would be easy  |
|
| Back to top |
|
 |
barrosz
Joined: 25 Feb 2005 Posts: 5
|
Posted: Sat Feb 26, 2005 1:04 am Post subject: |
|
|
| is there a way i can send 2 keystrokes when i push the wheel button? that would be great aswell. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sat Feb 26, 2005 1:47 am Post subject: |
|
|
|
|
| Back to top |
|
 |
barrosz
Joined: 25 Feb 2005 Posts: 5
|
Posted: Sat Feb 26, 2005 2:26 am Post subject: |
|
|
thx for the help but i think i sorted it out i ripped off some parts of code out of this forum and put it together for what i wanted.
what i needed was to push the shift button on wheel and it performed 2 things (shift up+clutch), same goes to shift down. as the game allows to use both keyboard and wheel buttons ingame i assigned 3 keys:
i=shift up;
k=shift down;
x=clutch;
joy8 is my shift up paddle
joy7 is shift down paddle
then i used this code to get some super fast gear changing
plz give suggestions!
| Code: | #SingleInstance
#InstallKeybdHook
SetKeyDelay, 0
JoystickNumber = 1
SetTimer, WatchJoystick, 0
return
WatchJoystick:
Joy8:: ;Joystick Button 8
Send,{i down}
loop
{
sleep,10
getkeystate,joy8state,joy8
ifjoy8state=U
break
}
send,{i up}
send,{x down}
loop
{
sleep,10
getkeystate,joy8state,joy8
ifjoy8state=U
break
}
send,{x up}
Return
Joy7:: ;Joystick Button 7
Send,{k down}
loop
{
sleep,10
getkeystate,joy7state,joy7
ifjoy7state=U
break
}
send,{k up}
send,{x down}
loop
{
sleep,10
getkeystate,joy7state,joy7
ifjoy7state=U
break
}
send,{x up}
Return |
|
|
| Back to top |
|
 |
|