authtication error code

Advanced programming using WinTask scripting language

authtication error code

Postby usha on Tue Dec 02, 2014 3:10 am

I need script logic for user authentication error like if authentication error window open then click OK button in the same window and send authentication alert to IM. Otherwise the script should run as it is.
Ex: we are using same login crential for 6 scripts. Some times it show ' the user logged into another machine' . here we have to click accept' . then only remaining scrip able to run.
For this we need your help.
1. Check that message window open or not.
2. If open then click accpect. Next window will open .here we have to click accept (for conformation ).
3. Else the script should run as it as.

This very urgent requirement. Kindly help me. I am waiting for you reply.

Posts: 1
Joined: Mon Dec 01, 2014 3:26 pm

Re: authtication error code

Postby TechSupport on Tue Dec 02, 2014 11:01 am

You need to use ExistW fonction to test if the window is there or not
If ExistW(windowname)=1 then
Msgbox("window is there")

Use Spy tool to find the Window name of the authentication window.

Best regards.
WinTask Tech Support
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am

Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 0 guests