View Single Post
Old 03-06-2018, 12: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:

sub main()

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

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 09:15 AM. Reason: wrap code in [code] blocks to preserve indentation
Reply With Quote