Not able to return from notification sub
i have a subroutine written for windowcrete notification.
My flow will be as follows:
If i run the exe, first i will get a login depends on the session manager (SM), sometimes i will get some time may not because of SM.
so i am going for creating a notification. but as soon as sub funciton is finished, the control is NOT coming to the next statement of RUN. i.e., MyFunc is not getting executed.
ON WindowCreate ("~Login", NULL) Call EnterLogin
Declare Sub EnterLogin (hwnd AS Variant)
SUB EnterLogin( hwnd AS Variant)
Re: Not able to return from notification sub
As I can see in you code, the problem is in your "Run "C:\flexicube.exe"" statement.
Script will not be able to go to the next statement until you close your flexicube.exe application. To resolve the problem, just write
Run "C:\flexicube.exe", NOWAIT
I mean, "C:\flexicube.exe" without NOWAIT optional parameter is allowed to complete before the test code continues on to the next statement.