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)
-   -   Auto-Sit Out Script for Poker Stars ($50 OBO offered) (http://archives1.twoplustwo.com/showthread.php?t=244068)

beset 10-24-2006 05:49 PM

Auto-Sit Out Script for Poker Stars ($50 OBO offered)
 
I will pay $50 OBO if someone can write me a quick .ahk script that does the simple task of sitting out at all active pstars tables at the click of a button. It could be an add-on to the chip-reloader script for stars if need be.

APerfect10 10-24-2006 06:01 PM

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 />

beset 10-24-2006 06:24 PM

Re: Auto-Sit Out Script for Poker Stars ($50 OBO offered)
 
PM me your stars name.

beset 10-26-2006 08:23 AM

Re: Auto-Sit Out Script for Poker Stars ($50 OBO offered)
 
This doesn't work when the tables are resized. any ideas?

MrMoo 10-26-2006 11:43 AM

Re: Auto-Sit Out Script for Poker Stars ($50 OBO offered)
 
He's using mouse coordinates to click which change when you resize the table. If the sitout button has a button code identifier I'm sure he'll update the code to use control click or whatever it's called as soon as he sees this.

APerfect10 10-26-2006 04:46 PM

Re: Auto-Sit Out Script for Poker Stars ($50 OBO offered)
 
Thats the problem with PokerStars, they dont use standard widgets so you have to click at a spot. If you are using resized tables, I can get the window size and calculate approximately from there but things start to get dicey. I'll update the code when I have some free time (probably not until tomorrow morning EST).


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

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