How to tell if AutoLogon was successful??

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
AppAust
Newbie
Posts: 6
Joined: Wed Jan 20, 2010 10:04 pm

How to tell if AutoLogon was successful??

Post by AppAust » Wed Jan 20, 2010 10:28 pm

I have a macro that creates an invoice each night. It does this by reading a file and sends the appropriate keystrokes to the invoicing program.

As I am sending keystrokes the windows session must by logged on and thus I am using Autologon

Autologon works 9 times out of 10 for me :) , but that 1 time out of 10 I get
'The password is incorrect' message :(

Is there a way in the macro that I can detect if Autologon was successful :?:
Is there perhaps a windows API that will return the logon status :?:

I am running v 11.1.18
If it doesnt need a motor, it doesnt need to be done

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Jan 20, 2010 11:14 pm

You could WaitWindowOpen>ErrorWindow*(the window with the message) that login failed. Make a timeout that allows enough time for the window to be trapped.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts