![]() |
#11
|
|||
|
|||
![]()
[ 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
[ 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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. |
![]() |
|
|