Two Plus Two Older Archives  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2005, 07:54 PM
smoore smoore is offline
Senior Member
 
Join Date: Oct 2004
Posts: 924
Default I\'m looking for a turnkey \'stars gamepad setup

Will someone who is using autohotkey and a gamepad of some sort (preferably an xbox pad, since I have one) to play NLHE tournaments on 'stars share it with me? I four table right now.

I could probably come up with something on my own (with considerable effort), but why duplicate work, right? I would, of course, share back any improvements or modifications.
Reply With Quote
  #2  
Old 10-29-2005, 04:00 AM
Big Bend Big Bend is offline
Member
 
Join Date: Jun 2004
Location: National Park, Texas
Posts: 46
Default Re: I\'m looking for a turnkey \'stars gamepad setup

[ QUOTE ]
Will someone who is using autohotkey and a gamepad of some sort (preferably an xbox pad, since I have one) to play NLHE tournaments on 'stars share it with me? I four table right now.

I could probably come up with something on my own (with considerable effort), but why duplicate work, right? I would, of course, share back any improvements or modifications.

[/ QUOTE ]

I duno how u would do NL with a gamepad. AutoHotKey doesn't recognize the analog sticks. Here is my script I use for Stars limit games on my 1280x1040 display, hope it helps. 4 buttons to select the windows in each corner, 3 buttons for fold/call/raise, 1 to toggle the blinds, and 2 for tabbing thru the applications.

L8r.. BB



Joy1::MouseClick, left, 450,530
Joy2::MouseClick, left, 600,530
Joy3::MouseClick, left, 673,530
Joy4::MouseClick, left, 15,422

; select top left table (1)
Joy5::
Coordmode, Mouse, Screen
MouseClick, left, 15, 75, 2
return

; select top right table (2)
Joy6::
Coordmode, Mouse, Screen
MouseClick, left, 1265, 105, 2
return

; select bottom right table (3)
Joy8::
Coordmode, Mouse, Screen
MouseClick, left, 1265, 975, 2
return

; select bottom left table (4)
Joy7::
Coordmode, Mouse, Screen
MouseClick, left, 10, 975, 2
return

Joy9::Send, {ALTDOWN}{TAB}{ALTUP}
Joy10::Send, {ALTDOWN}{SHIFTDOWN}{TAB}{ALTUP}{SHIFTUP}
Reply With Quote
  #3  
Old 10-29-2005, 04:43 AM
waffle waffle is offline
Senior Member
 
Join Date: Jul 2004
Location: Dallas - 2/4 and 3/6
Posts: 117
Default Re: I\'m looking for a turnkey \'stars gamepad setup

here's my lhe setup for an xbox controller. dpad selects 4 tables. left analog stick moves mouse. buttons are fold, check/call, bet/raise. bottom button is left click. holding left trigger choses the auto actions just above each button. holding left and right trigger and pressing fold button chooses 'auto fold'. black and white buttons do auto post and sit out.

<font class="small">Code:</font><hr /><pre>
; Increase the following value to make the mouse cursor move faster:
JoyMultiplier = 0.40

JoyThreshold = 2


ButtonA = 1
ButtonB = 2
ButtonX = 3
ButtonY = 4
ButtonLeftT = 11
ButtonRightT = 12
ButtonWhite = 6
ButtonBlack = 5
ButtonLPDown = 9
ButtonRPDown = 10
ButtonBack = 8


; If your system has more than one joystick, increase this value to use a joystick
; other than the first:
JoystickNumber = 1


#SingleInstance

Hotkey, %JoystickNumber%Joy%ButtonA%, ButtonBack
Hotkey, !x, exitFunc

; Calculate the axis displacements that are needed to start moving the cursor:
JoyThresholdUpper = 50
JoyThresholdUpper += %JoyThreshold%
JoyThresholdLower = 50
JoyThresholdLower -= %JoyThreshold%

SetTimer, WatchJoystick, 10 ; Monitor the movement of the joystick.

return ; End of auto-execute section.

ButtonBack:
SetMouseDelay, -1 ; Makes movement smoother.
MouseClick, left,,, 1, 0, D ; Hold down the left mouse button.
SetTimer, WaitForUp, 10
Return

exitFunc:
ExitApp
return

WaitForUp:
GetKeyState, AState, %JoystickNumber%Joy%ButtonA%
if AState = D ; The button is still, down, so keep waiting.
return
; Otherwise, the button has been released.
SetTimer, WaitForUp, off
SetMouseDelay, -1 ; Makes movement smoother.
MouseClick, left,,, 1, 0, U ; Release the mouse button.
return

WatchJoyStick:


MoveMouse? = n ; Set default.
SetFormat, float, 03
GetKeyState, joyv, %JoystickNumber%JoyX
GetKeyState, joyu, %JoystickNumber%JoyY
if joyv &gt; %JoyThresholdUpper%
{
MoveMouse? = y
DeltaX = %joyv%
DeltaX -= %JoyThresholdUpper%
}
else if joyv &lt; %JoyThresholdLower%
{
MoveMouse? = y
DeltaX = %joyv%
DeltaX -= %JoyThresholdLower%
}
else
DeltaX = 0
if joyu &gt; %JoyThresholdUpper%
{
MoveMouse? = y
DeltaY = %joyu%
DeltaY -= %JoyThresholdUpper%
}
else if joyu &lt; %JoyThresholdLower%
{
MoveMouse? = y
DeltaY = %joyu%
DeltaY -= %JoyThresholdLower%
}
else
DeltaY = 0
if MoveMouse? = y
{
DeltaX *= %JoyMultiplier%
DeltaY *= %JoyMultiplier%
SetMouseDelay, -1 ; Makes movement smoother.
MouseMove, %DeltaX%, %DeltaY%, 0, R
}


GetKeyState, LTState, %JoystickNumber%Joy%ButtonLeftT%
GetKeyState, XState, %JoystickNumber%Joy%ButtonX%
GetKeyState, YState, %JoystickNumber%Joy%ButtonY%
GetKeyState, AState, %JoystickNumber%Joy%ButtonA%
GetKeyState, BState, %JoystickNumber%Joy%ButtonB%
GetKeyState, RTState, %JoystickNumber%Joy%ButtonRightT%
GetKeyState, WhiteState, %JoystickNumber%Joy%ButtonWhite%
GetKeyState, BlackState, %JoystickNumber%Joy%ButtonBlack%
GetKeyState, LPDState, %JoystickNumber%Joy%ButtonLPDown%
GetKeyState, RPDState, %JoystickNumber%Joy%ButtonRPDown%
GetKeyState, BackState, %JoystickNumber%Joy%ButtonBack%
GetKeyState, joyPOV, %JoystickNumber%JoyPOV


if (JoyPov = 31500)
{
CoordMode, Mouse, Screen
MouseMove,400,300,0
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
SetTimer, WatchJoystick, Off
Sleep, 100
SetTimer, WatchJoystick, 10
}
if (JoyPov = 4500)
{
CoordMode, Mouse, Screen
MouseMove,1200,300,0
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
SetTimer, WatchJoystick, Off
Sleep, 100
SetTimer, WatchJoystick, 10
}
if (JoyPov = 22500)
{
CoordMode, Mouse, Screen
MouseMove,400,900,0
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
SetTimer, WatchJoystick, Off
Sleep, 100
SetTimer, WatchJoystick, 10
}
if (JoyPov = 13500)
{
CoordMode, Mouse, Screen
MouseMove,1200,900,0
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
SetTimer, WatchJoystick, Off
Sleep, 100
SetTimer, WatchJoystick, 10
}

;fold
If ((LTState = "U") and (XState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (470+rx), (550+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;check
If ((LTState = "U") and (YState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (600+rx), (550+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;raise
If ((LTState = "U") and (BState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (720+rx), (550+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;fold
If ((LTState = "D") and (XState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (470+rx), (500+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;check
If ((LTState = "D") and (YState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (600+rx), (500+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;raise
If ((LTState = "D") and (BState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (720+rx), (500+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}


;fold
If ((LTState = "D") and (XState = "D") and (RTState = "D"))
{
SetMouseDelay, -1 ; Makes movement smoother.
Random, rx, -16, 16
Random, ry, -2, 2
MouseClick, left, (470+rx), (520+ry), 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}




;autopost
If ((LTState = "U") and (BlackState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
MouseClick, left, 16, 425, 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}

;muck
If ((LTState = "U") and (WhiteState = "D") and (RTState = "U"))
{
SetMouseDelay, -1 ; Makes movement smoother.
MouseClick, left, 16, 405, 1, 0
SetTimer, WatchJoystick, Off
Sleep, 200
SetTimer, WatchJoystick, 10
}


Return

</pre><hr />

I'm using some ghetto 64 bit version of XBCD, so the joysticks may not work with a standard XBCD 'out of the box'.
Reply With Quote
  #4  
Old 10-29-2005, 04:51 AM
waffle waffle is offline
Senior Member
 
Join Date: Jul 2004
Location: Dallas - 2/4 and 3/6
Posts: 117
Default Re: I\'m looking for a turnkey \'stars gamepad setup

I used to multitable party SNGs. When I did, I had 3 buttons: check, fold, and all-in. [img]/images/graemlins/laugh.gif[/img]
Reply With Quote
  #5  
Old 10-29-2005, 11:58 AM
smoore smoore is offline
Senior Member
 
Join Date: Oct 2004
Posts: 924
Default Re: I\'m looking for a turnkey \'stars gamepad setup

thanks guys, that's a great start... I'll mess around with it and see if I can come up with a way to run the slider for NL.
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 07:49 PM.


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