Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2007, 01:27 PM
ajml ajml is offline
Senior Member
 
Join Date: Jun 2005
Posts: 1,000
Default 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

Reply With Quote
  #2  
Old 04-17-2007, 06:24 PM
fraac fraac is offline
Senior Member
 
Join Date: Oct 2006
Posts: 752
Default 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
Reply With Quote
  #3  
Old 04-17-2007, 06:42 PM
fraac fraac is offline
Senior Member
 
Join Date: Oct 2006
Posts: 752
Default 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
Reply With Quote
  #4  
Old 04-18-2007, 08:25 AM
meleader2 meleader2 is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,900
Default Re: Help! Trying to set up gamepad on stars

a trackball mouse will solve ur wrist pains too.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.