nikhil_no_1 Posted October 31, 2006 Share Posted October 31, 2006 Hi, I have an application that opens a IE window, navigates to a URL, logs in the user to a device and keeps running in the background What I want to achieve is, when the user does windows log off, the ExitHandler of my program should get called and in that I want to navigate to some other URL in the existing IE window to logout the user from the device. Now on Win XP, this thing works fine, but on Windows 98 machine, this doesn't work. Navigating to the URL takes around 7-8 seconds to succeed. This is my exit function Func MyExitFunction ( ) LogMessage("MyExitFunction Called") If WinExists($LogoutWindowTitleStr,"") Then LogMessage("Navigating to URL: " & $logoutURL) _IENavigate ($o_IE, $logoutURL) FileDelete($SessionIDFileName) LogMessage("Session ID file deleted.") _IEQuit ($o_IE) LogMessage("Logout Done.") EndIf EndFunc I am getting "Logout Done" message in the log file, but navigation to the URL does not seem to complete as the user is not getting logged out of the device. However during program exit, the ExitHandler gets called and logoff happens successfully. Can anybody pls help me here? -Thanks in advance, Nikhil Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 31, 2006 Moderators Share Posted October 31, 2006 What IE version are you using on 9x? 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. Link to comment Share on other sites More sharing options...
nikhil_no_1 Posted October 31, 2006 Author Share Posted October 31, 2006 What IE version are you using on 9x?Am using IE 6.0.But does this matter?I read somewhere that 98, NT, ME do not have a mechanism of calling log off script. Does this mean that logoff time we cannot control anything?Alternatively what I thought was, if somehow I can catch the windows logoff event, ignore it, call my exithandler and then call windows logoff. But I couldn't find anything to do such a thing. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now