Jump to content

Only worl at the second time


Recommended Posts

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
Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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

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