View Single Post
  #2  
Old 10-24-2006, 06:01 PM
APerfect10 APerfect10 is offline
Senior Member
 
Join Date: Jan 2005
Location: PokerTracker 3
Posts: 979
Default Re: Auto-Sit Out Script for Poker Stars ($50 OBO offered)

Well this is going to be apart of my "No Spam" script which I should have ready within the next few weeks (busy with other stuff).

<font class="small">Code:</font><hr /><pre>
hotkey_sitout = F10
hotkey_return = F11

#NoEnv
#SingleInstance Force
#Persistent

Hotkey, %hotkey_sitout%, Sitout_Label, UseErrorLevel
Hotkey, %hotkey_return%, Return_Label, UseErrorLevel

Sitout_Label:
Lib_Sitout_PokerStars()
return

Return_Label:
Lib_Return_PokerStars()
return

Lib_Sitout_PokerStars()
{
BlockInput, MouseMove
MouseGetPos, mX, mY

SetTitleMatchMode, 2
WinGet, tables, List, Logged In as, , PokerStars Lobby
Loop, %tables%
{
winID := tables%a_index%
WinActivate, ahk_id%winID%

PixelSearch, myX, myY, 14, 403, 20, 409, 0x000000
if ErrorLevel
MouseClick, LEFT, 18, 407 ; sitout

PixelSearch, myX, myY, 14, 423, 18, 429, 0x000000
if ErrorLevel = 0
MouseClick, LEFT, 18, 431 ; auto-post
}

MouseMove, mX, mY, 0
BlockInput, MouseMoveOff
}

Lib_Return_PokerStars()
{
BlockInput, MouseMove
MouseGetPos, mX, mY

SetTitleMatchMode, 2
WinGet, tables, List, Logged In as, , PokerStars Lobby
Loop, %tables%
{
winID := tables%a_index%
WinActivate, ahk_id%winID%
PixelSearch, myX, myY, 14, 403, 20, 409, 0x000000
If ErrorLevel = 0
{
MouseClick, LEFT, 18, 407 ; sitout
}
}

MouseMove, mX, mY, 0
BlockInput, MouseMoveOff
}</pre><hr />
Reply With Quote