nick21 Posted September 7, 2009 Share Posted September 7, 2009 I am having a problem converting my script to .exe. Here is the error when I try to run the .exe I have made.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 scriptexpandcollapse popup#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") EndIfAny help would be great.Thank You,-nick21 Link to comment Share on other sites More sharing options...
Valuater Posted September 7, 2009 Share Posted September 7, 2009 Simply change this... _ImageSearch("june720091.bmp"... to the location you "FileInstalled() _ImageSearch(@TempDir & "\june720091.bmp"... ... Additionally, you should check for IsArray($array) to be sure! 8) Link to comment Share on other sites More sharing options...
nick21 Posted September 7, 2009 Author Share Posted September 7, 2009 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 More sharing options...
jvanegmond Posted September 7, 2009 Share Posted September 7, 2009 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). github.com/jvanegmond Link to comment Share on other sites More sharing options...
Inverted Posted September 7, 2009 Share Posted September 7, 2009 @nick21 Are you on a 64-bit OS ? 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