|
-
May 15th, 2013, 02:35 PM
#4
Re: To abruptly end a vb script when user clicks on "Esc" button!!
Both VBScript and JScript cannot call Win API functions by themselves. However, a third-party ActiveX DLL (that exposes an object that you can instantiate in VBScript) might be able to do it for you. You may want to Google that option.
If you don't mind converting your VBScript code to a more capable scripting language, then you might want to try AutoIt or AutoHotkey.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|