Sign in to follow this  
Followers 0
roodbwoy

not a W32 app

3 posts in this topic

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?


SELECT * FROM users WHERE clue > 1; no rows returned

Share this post


Link to post
Share on other sites



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 ... ;)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0