Jump to content

not a W32 app


roodbwoy
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...