Sign in to follow this  
Followers 0
Spiderman

script problems

2 posts in this topic

Hi

Im new to autoit, so sorry for my question

I used scriptwrite making a script for a package. It look like this

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('D:\Ordre\Setup.exe')

WinWait("iSYS Installer","")

If Not WinActive("iSYS Installer","") Then WinActivate("iSYS Installer","")

WinWaitActive("iSYS Installer","")

Send("{ENTER}{ENTER}")

WinWait("Microsoft ActiveSync","")

If Not WinActive("Microsoft ActiveSync","") Then WinActivate("Microsoft ActiveSync","")

WinWaitActive("Microsoft ActiveSync","")

Send("{ENTER}{ENTER}")

WinWait("IRXpress USB IrDA - InstallShield Wizard","")

If Not WinActive("IRXpress USB IrDA - InstallShield Wizard","") Then WinActivate("IRXpress USB IrDA - InstallShield Wizard","")

WinWaitActive("IRXpress USB IrDA - InstallShield Wizard","")

Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENT

ER}{ENTER}")

WinWait("Microsoft ActiveSync","")

If Not WinActive("Microsoft ActiveSync","") Then WinActivate("Microsoft ActiveSync","")

WinWaitActive("Microsoft ActiveSync","")

Send("{ENTER}")

WinWait("iSYS Installer","")

If Not WinActive("iSYS Installer","") Then WinActivate("iSYS Installer","")

WinWaitActive("iSYS Installer","")

Send("{TAB}{ENTER}")

It works almost fine, but then it's supposed to install IRXPress(look bold) it stops-nothing happens

Can somone tell me how to fix this

Share this post


Link to post
Share on other sites



Welcome to the forums and thanks for posting the script that you want help with.

Consider adding this one line near the top of your script:

Opt ("TrayIconDebug", 1)

That will let you "mouse over" the AutoIt icon in your system tray and see what line the script has stopped on. It would be rare for the code that you posted to stop where you indicated.

Also, when posting AutoIt code to the forum, please consider putting the word code in brackets [] at the start of your AutoIt code and end your AutoIt code with /code in brackets [] - like

[Although, at the moment, the code tags seem to be breaking code.]

This line: Send("{ENTER}{ENTER}... gets messed up either way you post it:

Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENT

ER}{ENTER}")

Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENTE

R}{ENTER}")

...enjoy AutoIt...


[size="1"][font="Arial"].[u].[/u][/font][/size]

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