Jump to content

SciTE Script Writer stall


Recommended Posts

I have been working with Auto-it for about two weeks now. We have a program here at the medical center that is used for patient care. Part of what we use it for does not include a keyboard or mouse. The pc is set to auto log in a IT set default account and the Auto-it script in the start up folder to auto log in the default user.

The first time I ran the script it worked ok, not great but it worked. Now it stops at the user name and password.

I have recreated 3 other scripts for this program and I get the same results, I have also created scripts for other programs i.e. GroupWise E-mail and it work great but not this one.

Opt("WinWaitDelay", 000)

Opt("WinTitleMatchMode", 2)

Opt("WinDetectHiddenText", 0)

Opt("MouseCoordMode", 0)

WinWait("Program Manager", "FolderView")

If Not WinActive("Program Manager", "FolderView") Then WinActivate("Program Manager", "FolderView")

WinWaitActive("Program Manager", "FolderView")

MouseClick("left", 113, 431, 2)

WinWait("Logon", "23558|Enter a User I")

If Not WinActive("Logon", "23558|Enter a User I") Then WinActivate("Logon", "23558|Enter a User I")

WinWaitActive("Logon", "23558|Enter a User I")

WinWaitActive("WinWaitDelay", 5000)

Send("xxxxx{tab}xxxxxx{enter}")

WinWait("OR Manager - <Live Database> User ID: xxxxxx", " ")

If Not WinActive("OR Manager - <Live Database> User ID: xxxxx", " ") Then WinActivate("OR Manager - <Live Database> User ID: xxxxxx", " ")

WinWaitActive("OR Manager - <Live Database> User ID: xxxxxx", " ")

Send("{ALTDOWN}t{ALTUP}")

WinWait("OR Manager - <Live Database> User ID: xxxxxx", "Tracking Screen")

If Not WinActive("OR Manager - <Live Database> User ID: xxxxxx", "Tracking Screen") Then WinActivate("OR Manager - <Live Database> User ID: xxxxxxx", "Tracking Screen")

WinWaitActive("OR Manager - <Live Database> User ID: xxxxxx", "Tracking Screen")

Send("{ENTER}")

WinWait("Tracking Screen Selection", "&Cancel")

If Not WinActive("Tracking Screen Selection", "&Cancel") Then WinActivate("Tracking Screen Selection", "&Cancel")

WinWaitActive("Tracking Screen Selection", "&Cancel")

Send("{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}")

WinWait("OR Manager - <Live Database> User ID: xxxxxx - [OPSC - Message: PLEASE DON'T CHANGE YOUR ""ETA"" TIME ONCE IT IS ENTERED.]", "OPSC - Message: PLEA")

If Not WinActive("OR Manager - <Live Database> User ID: xxxxxx - [OPSC - Message: PLEASE DON'T CHANGE YOUR ""ETA"" TIME ONCE IT IS ENTERED.]", "OPSC - Message: PLEA") Then WinActivate("OR Manager - <Live Database> User ID: xxxxxx - [OPSC - Message: PLEASE DON'T CHANGE YOUR ""ETA"" TIME ONCE IT IS ENTERED.]", "OPSC - Message: PLEA")

WinWaitActive("OR Manager - <Live Database> User ID: xxxxxx - [OPSC - Message: PLEASE DON'T CHANGE YOUR ""ETA"" TIME ONCE IT IS ENTERED.]", "OPSC - Message: PLEA")

Send("{ALTDOWN}t{ALTUP}{UP}{UP}{UP}{ENTER}")

WinWait("OR Manager - <Live Database> User ID: xxxxxx", "OPSC - Message: PLEA")

If Not WinActive("OR Manager - <Live Database> User ID: xxxxxx", "OPSC - Message: PLEA") Then WinActivate("OR Manager - <Live Database> User ID: xxxxxx", "OPSC - Message: PLEA")

WinWaitActive("OR Manager - <Live Database> User ID: xxxxxx", "OPSC - Message: PLEA")

Send("{TAB}{SPACE}{TAB}{TAB}{TAB}{UP}{UP}{UP}{UP}{TAB}{UP}{TAB}{ENTER}")

MouseMove(860, 59)

MouseDown("right")

MouseMove(861, 59)

MouseUp("right")

MouseMove(874, 90)

MouseDown("left")

MouseUp("left")

MouseMove(979, 73)

MouseDown("left")

MouseUp("left")

Any ideas would be great. Thanks

Edited by medtech
Link to comment
Share on other sites

  • Developers

Have you looked at the screen were the script stop if any information is different ?

You can use the au3info program to get exact information and you might have to change the Window title/text that is searched for.

:whistle:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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