Sign in to follow this  
Followers 0
Zak Blayde

Only worl at the second time

4 posts in this topic

#1 ·  Posted (edited)

Hi,

I have a big problem. When I launch my Autoit exe, it doesn't work, but in the system tray the autoit icon appears. Then, if I launch the AutoIT exe a second time OR if I launch the exe of my program first line(run("xxx")), it works !

What can I do to make the thing works from the first time ?

Edited by Zak Blayde

Share this post


Link to post
Share on other sites



Hi,

difficult to say. Maybe looking at the code helps.

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

#3 ·  Posted (edited)

I thought to a windows problem... but I'm not sure...

Maybe a compilation option ?

edit : it's on XP.

my code :

run("setup.exe")

winWaitActive("Fichier ouvert - Avertissement de sécurité", "Exécuter")

send("!e")

winWaitActive("Welcome", "Next >")

AutoItSetOption("SendKeyDelay" , 100)

send("{TAB}")

Send("{UP}")

Send("{SPACE}")

Send("!n")

WinWaitActive("Start Copying Files", "Next")

Send("!n")

WinWaitActive("Setup Completed", "Finish")

Send("{ENTER}")

Edited by Zak Blayde

Share this post


Link to post
Share on other sites

HI,

I think it is not the code:

try this:

run("setup.exe")
MsgBox(64,"Info", "Install started", 3)
winWaitActive("Fichier ouvert - Avertissement de sécurité", "Exécuter")
send("!e")
winWaitActive("Welcome", "Next >")
AutoItSetOption("SendKeyDelay" , 100)
send("{TAB}")
Send("{UP}")
Send("{SPACE}")
Send("!n")
WinWaitActive("Start Copying Files", "Next")
Send("!n")
WinWaitActive("Setup Completed", "Finish")
Send("{ENTER}")

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

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