Open Side Menu Go to the Top
Register
AHK pokerstars tournament buy-in capture AHK pokerstars tournament buy-in capture

02-28-2010 , 07:08 PM
Good afternoon!
I try to write a script on AHK which would not allow to be registered on tournaments not to bankroll.

I cannot consider the text buy-in from a window of registration of tournament.

While I have written the following code:



Code:
CoordMode Pixel, Relative
Loop {
WinWait, Tournament Registration
WinActivate
WinSet, Transparent, off
ImageSearch, FoundX, FoundY, 0, 0, 380, 330, buyin.bmp
if ErrorLevel = 2
    {
    MsgBox Could not conduct the search.
    }
else if ErrorLevel = 1
    {
    WinClose
    ;MsgBox Bankroll!!!.
    }
else
    {
    ;MsgBox The icon was found at %FoundX%x%FoundY%.
    }

}
But in the first, this rather bad decision as at font change for example this code will not work any more.

In the second it for some reason does not work as it is necessary:

If for example a window of registration of tournament to open, and then to start a script that all perfectly works.

And if the script is already started and there is a registration window in tournament that why a picture it does not find that.

I ask to help.
AHK pokerstars tournament buy-in capture Quote

      
m