Hello all! This function, when called, should check to see if Keynote
is running. If it is not running, it should start Keynote. If it is
running, it should minimize/maximize keynote. It will start Keynote ok;
it will minimize keynote okay. But I can't get it to show keynote. If
I use the win.show(KNH, 3) line, it does indeed show keynote, but it
disables the minimize/close boxes on the window. The same thing happens
if I use win.maximize(KN) or any other combination. Any ideas?
Function varlist()
Global KN = "KeyNote NF*"
Global KNH = win.handle(KN)
Global KNC = win.class("=keynote")
Global KNX = "C:/Program Files/KeyNote/keynote.exe"
Function Switcher()
....@varlist()
If (win.exists(KNH) == 0) do ;;works
do(KNX)
ElseIf (win.visible(KN)==1) do ;;works
win.minimize(KN)
Else ;;if keynote is visible, maximized or normal,
win.show(KNH, 3)
EndIf
Quit