Jump to content

this script is executed no ending... :(


Recommended Posts

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 :mellow:

can u help me ,thank u very much

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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

yes ,it's named "calc.au3" and i'm sure i called it every time.

Link to comment
Share on other sites

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