Your script works here. I set WindowHandle to the handle
of a metapad window and your script made it Save the file.
Maybe it works for me because in pproconf, Setup tab,
Advanced setup, Other, I have checked "Use fast send keys"
Instead of
win.keys("{to " ++ WindowHandle ++ "}{Ctrl}s")
you could try
win.keys("{to " ++ WindowHandle ++ "}^s")
or
win.keys("{fast}{to " ++ WindowHandle ++ "}^s")
or
win.keys("{slow}{to " ++ WindowHandle ++ "}^s")
Also, this works here:
win.keys("^s")
because you already focussed the window with:
window.Show(WindowHandle)
therefore you don't need to specify the target window
in your keys command.
While testing add: win.debug(win.caption(WindowHandle))
to the end of your script -- maybe it was the wrong handle?
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/