Hi Ed,
When I "Execute the Current Document as a Script", i.e. Run my Script from the editing window, ......I want my *.vbs program to run with my program visible in the background.
This can be done by running the script via a Zeus tool. For example using the
Options, Default Document Type in the
Tools section add this tool:
- Tick DOS Command option
- Set arguments as "$fn"
- Apply the changes
Now if you add this code to a new document and save the document to disk:
Code: Select all
Sub key_macro()
MsgBox "Hello World!"
End Sub
key_macro() 'run the macro
You can execute this code by opeing the document and running the tool (ie it runs the active document via the command processor).
You could also achieve a similar result using the
Compiler feature of the
Default Document Type.
I would like to (while my program is executing, and a pop up window is waiting for a response) be able to scroll up or down my program to see the code at the current point of execution.
The VbScript (just like the other Lua, Python, JavaScript, TCL script options) are just there to help automation Zeus.
To debug VbScript you would need use a proper debugger to, and then define a Zeus tool to run that external debugger.
There should be a debug tool on the Microsoft site:
http://msdn2.microsoft.com/en-us/librar ... e.10).aspx
Cheers Jussi