Sign in to follow this  
Followers 0
BrettF

Aut2Exe

8 posts in this topic

Share this post


Link to post
Share on other sites



What are you trying to do?

Share this post


Link to post
Share on other sites

Hi,

ShellExecute(@ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2Exe.exe")

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

How Can i get Aut2exe to open? It wont find it and then it wont execute. WHY?

What I tried:

Run ( "Aut2Exe.exe", @ProgramFilesDir & "\AutoIt3\Aut2Exe\")oÝ÷ Ûú®¢×zeyÚ-«Z[azئzØ^±çZÊËì(®H§Ø«yËh¯(¬mçb­ç-¢¼­êk¢
Úë²Ú,yªÜú+¶Åç.µ¦åxb²Ø^v*ÞrÚ+ÊØZ¶Ø^{ºÖëajجmè§ì^^vÚÞjÛ²º(¶êhì^rëb¢î!ü¨¹Ú-«m殶­±Êâ¦Ü"[j·!~ÀºÝÅç±z)â¶Êè¢×b­ç-¢¼Ü(m~)ÝÐèjëh×6
Run (@ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2Exe.exe")

The working directory aka root directory of an executable is the directory that it is in(by default). So, the root directory for the above code I just posted is in fact @ProgramFilesDir & "\AutoIt3\Aut2Exe\".

Just want to make sure that it is clear to everyone out there. It is frustrating when I see people on the forum making similar or in fact the very same mistakes over and over again due to a misunderstanding.

-The Kandie Man

Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

People do that all the time these days.

The working directory is not the directory the program uses to search for the executable. It is the directory that the executable that is being executed treats as root upon execution.

If you do that, the autoit script will search for Aut2Exe.exe in its root directory and won't find it.

Do:

Run (@ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2Exe.exe")

The working directory aka root directory of an executable is the directory that it is in(by default). So, the root directory for the above code I just posted is in fact @ProgramFilesDir & "\AutoIt3\Aut2Exe\".

Just want to make sure that it is clear to everyone out there. It is frustrating when I see people on the forum making similar or in fact the very same mistakes over and over again due to a misunderstanding.

-The Kandie Man

Thankyou. Is it in like the FAQ (maintained by this-is-me)?? it probablly should be then...

Share this post


Link to post
Share on other sites

Experiment...

$pid = Run (@ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2Exe.exe")

Sleep(1000)
ProcessClose($pid)

; or...
; $title = "Aut2Exe v3 - AutoIt Script to EXE Converter"
; WinWait($title)
; WinClose($title)

Share this post


Link to post
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
Sign in to follow this  
Followers 0