Sign in to follow this  
Followers 0
hungtano

why my autoit paused ?

5 posts in this topic

Hi everybody,

Here is my script :

; Run the unikey ( Vietnamese keyboard for WinXP)

Run("Uk40RC1ntSetup.exe")

; Welcome screen

WinWaitActive("Unikey 4.0 NT Setup","&Next >")

Send("!n")

;License agreement

WinWaitActive("Unikey 4.0 NT Setup","I &Agree")

Send("!a")

; Choose location

WinWaitActive("Unikey 4.0 NT Setup","&Next >")

Send("!n")

; install option

WinWaitActive("Unikey 4.0 NT Setup","&Install")

Send("!i")

; Finish

WinWaitActive("Unikey 4.0 NT Setup","&Finish")

Send("!f")

But Script paused at line 2 (Run("Uk40RC1ntSetup.exe")).

I can't find error.

Please help me !

Thank in advance.

Vietnamese keyboard for WinXP :

http://prdownloads.sourceforge.net/unikey/Uk40RC1ntSetup.exe

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

"Unikey 4.0 NT Setup" does't exist yet or isn't active... (maybe try without the text part in the 2nd parameter if you are sure the first parameter is spelled correctly.

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

"Unikey 4.0 NT Setup" does't exist yet or isn't active... (maybe try without the text part in the 2nd parameter if you are sure the first parameter is spelled correctly.

Hi Smoke N,

Thanks ! but when I run script, the welcome screen appears and stop. That 's all.

Any ideas ?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi Smoke N,

Thanks ! but when I run script, the welcome screen appears and stop. That 's all.

Any ideas ?

Use

Opt("TrayIconDebug", 1)

to see where is your script hanging.

EDIT: try

Run(@scriptdir & "\Uk40RC1ntSetup.exe")
Edited by Zedna

Share this post


Link to post
Share on other sites

Hi Smoke N,

Thanks ! but when I run script, the welcome screen appears and stop. That 's all.

Any ideas ?

Also try:

Run("Uk40RC1ntSetup.exe")

; Welcome screen
WinWait("Unikey 4.0 NT Setup","&Next >")
WinActivate("Unikey 4.0 NT Setup","&Next >")
WinWaitActive("Unikey 4.0 NT Setup","&Next >")
Send("!n")

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