AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with my wheel

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
barrosz



Joined: 25 Feb 2005
Posts: 5

PostPosted: Fri Feb 25, 2005 11:06 pm    Post subject: help with my wheel Reply with quote

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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Fri Feb 25, 2005 11:17 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
barrosz



Joined: 25 Feb 2005
Posts: 5

PostPosted: Fri Feb 25, 2005 11:20 pm    Post subject: Reply with quote

yeah i used that to know wich buttons are wich number but how do i send the comands?
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 25, 2005 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
barrosz



Joined: 25 Feb 2005
Posts: 5

PostPosted: Fri Feb 25, 2005 11:24 pm    Post subject: Reply with quote

i see so there is no way i can make this work? i thought that it would be easy Sad
Back to top
View user's profile Send private message
barrosz



Joined: 25 Feb 2005
Posts: 5

PostPosted: Sat Feb 26, 2005 1:04 am    Post subject: Reply with quote

is there a way i can send 2 keystrokes when i push the wheel button? that would be great aswell.
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sat Feb 26, 2005 1:47 am    Post subject: Reply with quote

Code:
MButton::Send,ac
Back to top
View user's profile Send private message
barrosz



Joined: 25 Feb 2005
Posts: 5

PostPosted: Sat Feb 26, 2005 2:26 am    Post subject: Reply with quote

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 Very Happy
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group