Jump to content

Problem.. running .exe file


nick21
 Share

Recommended Posts

I am having a problem converting my script to .exe.

Here is the error when I try to run the .exe I have made.

Posted Image

I tried adding to the script, but I keep getting the error:

FileInstall("C:\june720091.bmp", @TempDir & "\june720091.bmp")
FileInstall("C:\june72009.bmp", @TempDir & "\june72009.bmp")
FileInstall("C:\ImageSearchDLL.dll", @TempDir & "\ImageSearchDLL.dll")
FileInstall("C:\ImageSearch.au3", @TempDir & "\ImageSearch.au3")

I can do a "Beta Run" and it works perfect, just when compiling the .exe is where I am having the problem(s) running it.

Here is my script

#include <ImageSearch.au3>
$x1=0
$y1=0
Do

$result = _ImageSearch("june720091.bmp",1,$x1,$y1,0)
Until $result=1
if $result=1 Then
    Do

$result = _ImageSearch("june72009.bmp",1,$x1,$y1,0)
Until $result=1
EndIf

if $result=1 Then
    MouseMove($x1,$y1,3)
    MouseClick ("left")
    MouseClick ("left")
    sleep (1000)
    Send ("flashdrive")
    Send ("{ENTER}")
    Sleep (100)
    Send ("aton")
    Send ("{ENTER}")
    Sleep (100)
    Send ("easydoesit")
    Send ("{ENTER}")
    Sleep (100)
    Send ("mono")
    Send ("{ENTER}")
    Sleep (100)
    Send ("smallscale")
    Send ("{ENTER}")
    Sleep (100)
    Send ("imet")
    Send ("{ENTER}")
    Sleep (100)
    Send ("sam")
    Send ("{ENTER}")
    Sleep (100)
    Send ("etal")
    Send ("{ENTER}")
    Sleep (100)
    Send ("meara")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ripa")
    Send ("{ENTER}")
    Sleep (100)
    Send ("okapi")
    Send ("{ENTER}")
    Sleep (100)
    Send ("tet")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ads")
    Send ("{ENTER}")
    Sleep (100)
    Send ("gutsier")
    Send ("{ENTER}")
    Sleep (100)
    Send ("dustjacket")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ella")
    Send ("{ENTER}")
    Sleep (100)
    Send ("anth")
    Send ("{ENTER}")
    Sleep (100)
    Send ("nlers")
    Send ("{ENTER}")
    Sleep (100)
    Send ("elec")
    Send ("{ENTER}")
    Sleep (100)
    Send ("isao")
    Send ("{ENTER}")
    Sleep (100)
    Send ("daysofyore")
    Send ("{ENTER}")
    Sleep (100)
    Send ("shyster")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ngo")
    Send ("{ENTER}")
    Sleep (100)
    Send ("yet")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ariel")
    Send ("{ENTER}")
    Sleep (100)
    Send ("surf")
    Send ("{ENTER}")
    Sleep (100)
    Send ("daunt")
    Send ("{ENTER}")
    Sleep (100)
    Send ("flea")
    Send ("{ENTER}")
    Sleep (100)
    Send ("ein")
    Send ("{ENTER}")
    Sleep (100)
    Send ("utne")
    Send ("{ENTER}")
    Sleep (100)
    Send ("biennially")
    Send ("{ENTER}")
    Sleep (100)
    Send ("chew")
    Send ("{ENTER}")
    Sleep (100)
    Send ("mentalnote")
    Send ("{ENTER}")
    Sleep (100)
    Send ("keds")
    Send ("{ENTER}")
    Sleep (100)
    Send ("idiotlight")
    Send ("{ENTER}")
    Sleep (100)
    MsgBox (0, "June 07: 2009", "Completed")
    
EndIf

Any help would be great.

Thank You,

-nick21

Link to comment
Share on other sites

Ok I changed:

$result = _ImageSearch("june72009.bmp",1,$x1,$y1,0)

to

$result = _ImageSearch(@TempDir & "\june72009.bmp", 1,$x1,$y1,0)

still giving me the error, and for the IsArray part I don't quite understand that.

Thank you for the help though, in getting this to work.

-nick21

Link to comment
Share on other sites

You're not even using any arrays in your script, so the only way to explain your array error if there is a problem with the _ImageSearch function. I'm never used _ImageSearch at all so maybe this is for someone else to answer.

I posted to give you an idea of what's going on and that it's probably not your fault (Although could potentially be fixed by you).

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