roodbwoy Posted November 29, 2006 Posted November 29, 2006 Hey all! it's me again! the lazy sysadmin, this time at home ;-)anyways, I am really intreeged by AutoIt and I am playing around with it, only have some exprience in Kix32 but I managed to made a bot for Castle Defender Game by reading through the help file, forums and learning from other sourcecodes...ofcourse I want to show it of to friends so I compiled the script to an executable and send it to my friend but unfortantly he get's an error message that the executable is not W32 compatible or something like that :-Phere's the code Global $Pause HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Quit") While 1 $coord = PixelSearch(315, 492, 620, 621, 0x001300) If IsArray($coord) = 1 Then MouseMove($coord[0], $coord[1], 0) MouseClickDrag('left', $coord[0], $coord[1], 370, 240) sleep(1100) EndIf WEnd Func TogglePause() $Pause = NOT $Pause While $Pause sleep(100) ToolTip('paused',0,0) WEnd ToolTip("") EndFunc Func Quit() Exit 0 EndFuncis there something I need to include so people without autoit can run it? SELECT * FROM users WHERE clue > 1; no rows returned
Developers Jos Posted November 29, 2006 Developers Posted November 29, 2006 roodbwoy said: Hey all! it's me again! the lazy sysadmin, this time at home ;-) anyways, I am really intreeged by AutoIt and I am playing around with it, only have some exprience in Kix32 but I managed to made a bot for Castle Defender Game by reading through the help file, forums and learning from other sourcecodes... ofcourse I want to show it of to friends so I compiled the script to an executable and send it to my friend but unfortantly he get's an error message that the executable is not W32 compatible or something like that :-P here's the code Global $Pause HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Quit") While 1 $coord = PixelSearch(315, 492, 620, 621, 0x001300) If IsArray($coord) = 1 Then MouseMove($coord[0], $coord[1], 0) MouseClickDrag('left', $coord[0], $coord[1], 370, 240) sleep(1100) EndIf WEnd Func TogglePause() $Pause = NOT $Pause While $Pause sleep(100) ToolTip('paused',0,0) WEnd ToolTip("") EndFunc Func Quit() Exit 0 EndFunc is there something I need to include so people without autoit can run it?Jujst use aut2exe to create a stand-alone app should work fine ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
roodbwoy Posted November 29, 2006 Author Posted November 29, 2006 JdeB said: Jujst use aut2exe to create a stand-alone app should work fine ... l used aut2exe that was not the problem.. the problem was that I uploaded it to my webserver and forgot that I installed a utility which disabled the executables uploaded which leaves my friend downloading a 0 byte exe :-/ silly me SELECT * FROM users WHERE clue > 1; no rows returned
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