View Single Post
  #1  
Old 03-06-2018, 01:27 AM
bighalo bighalo is offline
Registered User
 
Join Date: Mar 2018
Posts: 4
Post how to end or exit the running script

I wrote a vbs:

Code:
sub main()
...

do
  nIndex = objTab.Screen.WaitForStrings(g_vWaitFors)
  if nIndex = 1 then
    ...
    <do something>
    exit sub
  end if
loop

end sub

I waitforString and do something only once.
I use "exit sub". But the script still running in loop.
How to end or stop the running script?
Is there any code available? Not Script/Cancel menu.

Last edited by jdev; 03-06-2018 at 10:15 AM. Reason: wrap code in [code] blocks to preserve indentation
Reply With Quote