Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   small NumpadScript for Party Poker (http://archives1.twoplustwo.com/showthread.php?t=457447)

cardsport 07-22-2007 08:20 AM

small NumpadScript for Party Poker
 
It activates the table under the mouse, clears
the box where you type your bets in and sets the
cursor in. I also made the Numpad-Enter-Key
click the Bet Button.

So if you want to make a bet with the Numpad:
- press 000-Key
- type the Number
- press Numpad-Enter

Its works fine for me, but im a noob at ahk so you
better test it at playmoney tables.



("sc11c" on the bottom is the "Enter"-Key on my Numpad,
its likely that you have to change it.)

;;;START;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;
SetTitleMatchMode, 2
#MaxThreadsPerHotkey 5
$Numpadins::
#MaxThreadsPerHotkey 1
SetBatchLines, 100
DelayBetweenKeys = 30 ; Adjust this value if it doesn't work.
if A_PriorHotkey = %A_ThisHotkey%
{
if A_TimeSincePriorHotkey < %DelayBetweenKeys%
{
if Numpad0Count =
Numpad0Count = 2
else if Numpad0Count = 0
Numpad0Count = 2
else
{
Numpad0Count = 0

MouseGetPos,,,TableId
WinActivate, ahk_id%TableId%
ControlSetText, Edit3,, Good
ControlClick, Edit3, Good
Sleep -1
Sleep, 50
WinSet, Redraw,,
}

CalledReentrantly = y
return
}
}

Numpad0Count = 0
CalledReentrantly = n
Sleep, %DelayBetweenKeys%
if CalledReentrantly = y
{
CalledReentrantly = n
return
}

Send, {Numpad0}
return



sc11c:: ;Replace with your own Key
MouseGetPos,,,TableId
WinActivate, ahk_id%TableId%
controlclick, AfxWnd42u19, a
return

;;;END;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;


All times are GMT -4. The time now is 05:08 PM.

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