#1
|
|||
|
|||
Help! Trying to set up gamepad on stars
Due to wrist pain I think I need to switch over to a gamepad on stars. I saw the scripts in the FAQ but I wasnt sure if they were finished or what exactly I needed to do to set them up (it would be for NL cash games). I saw the xbox 360 controller for windows, would this be a suitable gamepad to use? Sorry for the stupid questions I obviously dont really know where to start.
Heres a picture of my table arrangement, I dont know if it matters that they are overlap/stacked |
#2
|
|||
|
|||
Re: Help! Trying to set up gamepad on stars
Whatever gamepad is most comfortable should work. For some reason my desktop with XP didn't recognise a generic Logic3 gamepad but any better one should be fine. The scripts are easy to get working
|
#3
|
|||
|
|||
Re: Help! Trying to set up gamepad on stars
Here's my basic gamepad code, using coordinates you would have to change by using Window Spy (part of autohotkey):
;iterate through tables Joy7:: WinGetActiveTitle title WinGetClass pstarsclass, %title% GroupAdd, pokah, ahk_class %pstarsclass%GroupActivate, pokah return ;fold Joy5:: MouseGetPos xpos,ypos MouseClick left, 534,640 ; pre-checkfold checkbox MouseClick left, 544,664 ; fold button MouseMove xpos,ypos return ;minbet Joy8:: MouseGetPos xpos,ypos MouseClick left, 890, 665 ; raise button MouseMove xpos,ypos return ;check Joy3:: MouseGetPos xpos,ypos MouseClick left, 702,642 ; pre-check box MouseClick left, 800, 693 ; check/call button MouseMove xpos,ypos return ;allin Joy10:: MouseGetPos xpos,ypos MouseClickDrag left, 880,600, 1000,600 ; slider start and end positions MouseClick left, 890,665 ; raise button MouseMove xpos,ypos return ;info Joy9:: MouseGetPos xpos,ypos MouseClick left, 260,560 ; info tab Sleep 3000 MouseClick left, 60,560 ; chat tab MouseMove xpos,ypos return ;3x bettor: press once to bet 3x or hold and up/down for more/less Joy6:: MouseGetPos xpos,ypos SetFormat float, 0.0 raiser = 3 WinGetActiveTitle title ControlGetText betToMe, Edit7, %title% Loop { GetKeyState upmult, JoyY GetKeyState released, Joy6 if (upmult = 0) { raiser += 1 } if (upmult = 100) { raiser -= 1 } if (released = "U") break bet := betToMe / 2 * raiser if (bet < betToMe) bet := betToMe ControlSetText Edit7, %bet%, %title% Sleep 100 } MouseClick left, 890, 665 ; raise button MouseMove xpos,ypos return |
#4
|
|||
|
|||
Re: Help! Trying to set up gamepad on stars
a trackball mouse will solve ur wrist pains too.
|
Thread Tools | |
Display Modes | |
|
|