Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-07-2006, 07:01 PM
netstorm netstorm is offline
Senior Member
 
Join Date: Jun 2006
Location: Netherlands
Posts: 902
Default Re: Stars SNG registration hotkey

PLEASE DO SOO DAVE!!! I have requested this numerous times. It would be awesome!!!
Reply With Quote
  #12  
Old 12-07-2006, 07:55 PM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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.
Reply With Quote
  #13  
Old 12-07-2006, 08:07 PM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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.)
Reply With Quote
  #14  
Old 12-08-2006, 02:36 AM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default 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.
Reply With Quote
  #15  
Old 12-08-2006, 04:24 AM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default 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.
Reply With Quote
  #16  
Old 12-08-2006, 07:34 AM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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.
Reply With Quote
  #17  
Old 12-08-2006, 07:42 AM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default Re: Stars SNG registration hotkey

The bitmaps should be 145x1 in size.
Reply With Quote
  #18  
Old 12-08-2006, 07:43 AM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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?
Reply With Quote
  #19  
Old 12-08-2006, 02:04 PM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default Re: Stars SNG registration hotkey

Here are the images:


Register Button

15+1_1

15+1_2

15+1_3
Reply With Quote
  #20  
Old 12-08-2006, 02:16 PM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:45 AM.


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