#11
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
[ QUOTE ]
Hey Mark... how do make this work? I create the bmp as indicated and had it in the folder along with the script but still nothing? Any 1 else able to make this activate the timebank? Thanks for any input, Steve [/ QUOTE ] Are you using the default skin with no mods? Try this bitmap of the timebank button. Link Also, I don't know what effect other scripts like tablenavigator etc might have on it. |
#12
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
Mark, still cant make it work...I'm using default theme and the bmp u linked me to.
I'm at work and testing on play money sngs since I only have 2 mins every once in while...dunno if that could make a diff? Dont think it would tho....I'm also not using any other script at the same time. I'll give it a shot when I get home. |
#13
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
Time,
Are you resizing the tables? You will need to change x & y coordinates if so, and the bitmap I posted will probably be no good either. |
#14
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
no, I had the table in it's "native" size....I tried it at home last name but no cigar. [img]/images/graemlins/frown.gif[/img]
btw, how would I go about finding the coordinates? Thanks |
#15
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
this script is bad for the games IMO.
no offense, but i'd consider reporting it if it started getting abused in my games |
#16
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
[ QUOTE ]
no, I had the table in it's "native" size....I tried it at home last name but no cigar. [img]/images/graemlins/frown.gif[/img] btw, how would I go about finding the coordinates? Thanks [/ QUOTE ] You get a little program called AutoIt3 Window Spy with AHK. |
#17
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
Did you test this code out yourself? Becuase it really does not work, I used everything you provided and I've tried tweaking it aswell, nothing.
If it did work for you, are you sure you're not leaving anything out? EDIT: Ive tried: -adding rolands functions -changing your x,y cordinates (y seemed to be just on the edge) -changing the size of the table and layout w/ new .bmp of timebank button |
#18
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
Works every time for me.
Try inserting the bold line below, to see if it even detects the button: if (ErrorLevel==0) { ;Click timebank msgbox, Timebank Button Detected WinActivate, ahk_id%this_id% Postmessage, 0x201, 0x0001, ((y*65536)+x), , ahk_id%this_id% Postmessage, 0x202, 0, ((y*65536)+x), , ahk_id%this_id% } |
#19
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
it does not work for me. it is hard to find the exact x/y coordinates even with autoit3spy. is there a better way to detect the timebank button?
|
#20
|
|||
|
|||
Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE
bump for Mark or dave
Mark: instead of specifying the exact x/y location to detect the timebank button, is it possible to have a range for the upper left starting point of the button, and loop through this range until the button is found? If the ImageSearch method is not too time-consuming, it might work. |
|
|