This is my first script:
SetFocus>Pegasus*
Press CTRL
send>c
Release CTRL
Run Program>D:\Program Files\OpenOffice.org1.1.2\program\soffice.exe
WaitWindowOpen>Untitled1 - OpenOffice.org 1.1.3
Press CTRL
send>V
Release CTRL
Here are my problems:
I have tested the above with Debug. Where can I view the results of running under debug?
The script hangs at waitwindowopen. What should I change?
Having exited from the Editor, I am finding that I am locked into the Macro Screen (it is a plain macro screen with no named macro in it ). I am unable to get out. It says at the top of the screen "Macro Scheduler Eval script running" What should I do to exit?
Trouble with code in script
Moderators: Dorian (MJT support), JRL
Re: Trouble with code in script
You're launching from directory 1.1.2 but the window says 1.1.3?Robin wrote:The script hangs at waitwindowopen. What should I change?
There is probably something not matching the window title with the one you're having it wait for. You can obtain the "exact" title bar using another script, something like:
MessageModal>After you click OK, set focus to a window. I will obtain it's handle in 5 seconds.
Wait>5
Let>WF_TYPE=2
Let>WIN_USEHANDLE=0
GetActiveWindow>sWinTitle,iWinLeft,iWinTop,iWinWidth,iWinHeight
Let>sLine1=Window Title: %sWinTitle%
Let>sLine2=Left/Top=%iWinTop%,%iWinLeft%
Let>sLine3=Width/Height=%iWinWidth%,%iWinHeight%
MessageModal>%sLine1%%CRLF%%sLine2%%CRLF%%sLine3%