treeboy Posted May 28, 2010 Posted May 28, 2010 hi all, my codes is so simple: MsgBox(0, "1", "1"); Run("calc.exe", "", @SW_MAXIMIZE) MsgBox(0, "2", "2"); and if i execute it in SciTe,it does well. but if i compiled it into .exe, and double click it ,it will execute no endling,and continuous popup the msgbox "1" "1" ... and i cannot find the foundation stone can u help me ,thank u very much
AlmarM Posted May 28, 2010 Posted May 28, 2010 Im using Vista x64, if I compile it just what it suppose to do (also tried compiling as x86). So, it's working fine for me. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
treeboy Posted May 28, 2010 Author Posted May 28, 2010 Im using Vista x64, if I compile it just what it suppose to do (also tried compiling as x86).So, it's working fine for me. my system is winXP, and what the version of your SciTe? thanku!
whim Posted May 28, 2010 Posted May 28, 2010 You haven't by any chance called your script "calc.au3" , have you ? If you did, it could well call itself instead of the calculator (after compilation) ... whim
treeboy Posted May 28, 2010 Author Posted May 28, 2010 You haven't by any chance called your script "calc.au3" , have you ?If you did, it could well call itself instead of the calculator (after compilation) ...whimyes ,it's named "calc.au3" and i'm sure i called it every time.
whim Posted May 28, 2010 Posted May 28, 2010 (edited) So, just rename your script to "my_calc.au3" (or anything except "calc.au3"), and it should work OK whim edit: to clarify, if you compile your script as is, it will be called "calc.exe", guess what happens when it tries to execute Run("calc.exe", "", @SW_MAXIMIZE) Edited May 28, 2010 by whim
treeboy Posted May 28, 2010 Author Posted May 28, 2010 So, just rename your script to "my_calc.au3" (or anything except "calc.au3"), and it should work OKwhimoh,yeah! thank u very very much! )
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