ReaxkuTheFox Posted January 5, 2009 Share Posted January 5, 2009 I've been wondering if anyone could make an autoit triggerbot. Sorry for begging but I've searched everywhere! And for those of you who don't know what a triggerbot is, It's a program that will click the mouse (fire) button when a certain color shows up in the center of the screen. Thanks in Advance -Reaxku Link to comment Share on other sites More sharing options...
danny0 Posted January 5, 2009 Share Posted January 5, 2009 I've been wondering if anyone could make an autoit triggerbot. Sorry for begging but I've searched everywhere! And for those of you who don't know what a triggerbot is, It's a program that will click the mouse (fire) button when a certain color shows up in the center of the screen.Thanks in Advance-ReaxkuWell, I don't have enough time or the information to make a script for you, but what you could do is use PixelSearch() to find the color. Then use an if statement to see if that color is on the screen. If that color is on the screen, you can use Send() to send the firebutton to the program. Link to comment Share on other sites More sharing options...
shanesloan Posted January 5, 2009 Share Posted January 5, 2009 I, on the other hand, have nothing better to take up my time apparently... while 1 = 1 sleep(50); Unnecessary, but keeps CPU load down - set to whatever value you like if PixelGetColor( 100, 100 ) = 16777215 Then MouseClick(100, 100, 1, 1) EndIf WEnd Link to comment Share on other sites More sharing options...
bundyxc Posted January 5, 2009 Share Posted January 5, 2009 I, on the other hand, have nothing better to take up my time apparently... while 1 = 1 sleep(50); Unnecessary, but keeps CPU load down - set to whatever value you like if PixelGetColor( 100, 100 ) = 16777215 Then MouseClick(100, 100, 1, 1) EndIf WEnd Why do we use "1 = 1" instead of declaring a variable? I've also seen "While 1".. any particular reason why? Global $arr[2] $arr[0]="hip" $arr[1]="hip" ;^^ hip hip array. ^^ Link to comment Share on other sites More sharing options...
danny0 Posted January 6, 2009 Share Posted January 6, 2009 While 1 and While 1 = 1 are both the same. They are both endless loops. At least until the script exits. Link to comment Share on other sites More sharing options...
bundyxc Posted January 6, 2009 Share Posted January 6, 2009 While 1 and While 1 = 1 are both the same. They are both endless loops. At least until the script exits.Gotcha. Thanks. Sorry for going offtopic a bit. Global $arr[2] $arr[0]="hip" $arr[1]="hip" ;^^ hip hip array. ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now