#11
|
|||
|
|||
Re: Stars SNG registration hotkey
PLEASE DO SOO DAVE!!! I have requested this numerous times. It would be awesome!!!
|
#12
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
I could easily mod this to provide a constant stream of SNGs up to a chosen maximum (for the SNG mega-tablers). [/ QUOTE ] dave, If you're granted permission, please consider giving the multitablers an option between loading SNGs continuously or in sets. Edit: You may also want to look at this thread for insight on different functions SNG players are looking/hoping for. There's been a few other threads like this. |
#13
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
[ QUOTE ] Should this image actually be named 15+1_%A_Index%.bmp or something else? [/ QUOTE ] From the look of the code, this is in a loop that cycles three times. The %A_Index% will be translated into the current iteration of the loop, so I'm guessing you need three images (maybe for 3 preferred games? or turbo / regular etc.? don't know): 15+1_1.bmp 15+1_2.bmp 15+1_3.bmp I suppose. [/ QUOTE ] Just taking a stab here, but in the Stars client, the SNG is listed in the lobby with either a white or somewhat yellowish background. That would require two bitmaps, but I have no idea what the third would be. (Highlighted in blue? But, that shouldn't be necessary.) |
#14
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
[ QUOTE ] Should this image actually be named 15+1_%A_Index%.bmp or something else? [/ QUOTE ] From the look of the code, this is in a loop that cycles three times. The %A_Index% will be translated into the current iteration of the loop, so I'm guessing you need three images (maybe for 3 preferred games? or turbo / regular etc.? don't know): 15+1_1.bmp 15+1_2.bmp 15+1_3.bmp I suppose. Mark1978 - This is a great script [img]/images/graemlins/smile.gif[/img] With your permission I could easily mod this to provide a constant stream of SNGs up to a chosen maximum (for the SNG mega-tablers). Would you want me to do this? I seem to recall several posters requesting such a script. Or do you plan on doing this yourself? dave. [/ QUOTE ] Thanks Dave, that would be great. I don't have the time at the moment. Netstorm, Gnumsploitz sorry I've been busy. I will provide some explanation for all later. |
#15
|
|||
|
|||
Re: Stars SNG registration hotkey
I can't post the bitmaps right now because I'm at work. Gnum was right about the 3 bitmaps - one for each background colour and one for highlighted lines.
I didn't use an image of the whole line for matching, I took a line just a single pixel high from the 6th row down, so it cuts across the top of the lower case letters. I figured this would reduce the processor time while still providing a unique image for each game/buyin. Gnum, your register.bmp is too large unless you widen the search area on this line: ImageSearch, , , X+637, Y+516, X+660, Y+539, Register.bmp I have already run into a small problem with this script though. Sometimes the register button does not update for a while, so the script tries to join you again to a game you are already in. We might need to grab the game numbers to get around that one. |
#16
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
ImageSearch, , Line, X+69, Y+233+YOffset, X+214, Y+233+YOffset, 15+1_%A_Index%.bmp ImageSearch, , , X+637, Y+516, X+660, Y+539, Register.bmp [/ QUOTE ] I took another shot at this just now and failed miserably. I used photoshop to create bitmaps exact to the pixel using the Active Window mouse position coordinates given in your script. This is what I came out with: (24x24 pixels) (146x1 pixels for all three... and they're saved as bitmaps, not '.png'.) I still can't get the script to recognize the images in the Stars client and get to the point where it actually clicks the 'Register' button. I suppose I'll just have to be patient, but I'm excited to get this up and running. Edit: Are the 3 bitmaps for '15+1_%A_Index%.bmp' supposed to be named: 15+1_1.bmp 15+1_2.bmp 15+1_3.bmp ...? I also tried widening the search area, like you suggested, without any success. I even modified the Stars timebank clicking script posted in another thread to see if I could get Register to click properly on it's own without doing anything else, and I couldn't even manage that. Apparently, I suck at using X,Y Active Window coordinates. |
#17
|
|||
|
|||
Re: Stars SNG registration hotkey
The bitmaps should be 145x1 in size.
|
#18
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
The bitmaps should be 145x1 in size. [/ QUOTE ] I already tried that as well. Didn't work. That's when I bumped it up to 146x1. Edit: I can manage to trim off one pixel on the left of each image again. However, if I'm still not able to get to the next step in the script where it actually finds and clicks the Register button, where do you think I'm going wrong? Also, am I naming the bitmaps correctly? |
#19
|
|||
|
|||
Re: Stars SNG registration hotkey
|
#20
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
Here are the images: Register Button 15+1_1 15+1_2 15+1_3 [/ QUOTE ] Thanks for posting these. Could you please explain how you come up with the coords in the following line of code? I noticed that it doesn't point to the sixth line down, but actually the first line in the lobby. ImageSearch, , Line, X+69, Y+233+YOffset, X+214, Y+233+YOffset For those (myself included) that would want to adjust this to work at a different buyin, or regs instead of turbos, what's the simplest process? Once someone creates the three bitmaps, that are one pixel in height just skimming the tops of the lowercase letters, will using the same coords in that line most likely work? |
|
|