Whilst I'd still be interested in replies to my post I have actually found a way to do what I want, although its not as elegant as I would like. I have an AutoIt script like this: DirCreate("C:\Program Files\VirtualAcorn\VirtualRPC-SE\HardDisc4\Utilities\InVRPC") WinSetState("Virtual RPC-SE","",@SW_SHOW) WinActivate("Virtual RPC-SE") Send("!{ENTER}") Sleep(200) MouseClick("left",0,0) While FileExists("C:\Program Files\VirtualAcorn\VirtualRPC-SE\HardDisc4\Utilities\InVRPC") Sleep(500) WEnd Send("!{ENTER}") WinActivate("Fast Launcher") WinSetState("Virtual RPC-SE","",@SW_HIDE)
What this does is to create a directory in HardDisc4 that means VRPC is fullscreen. Then it makes sure the VRPC window is visible and gives it focus. Then it sends Alt-Enter and puts the mouse pointer to top left (to avoid any spurious clicks during the switch). The script then polls to see when the directory is deleted. In RISC OS I have an Obey file (or a KlikMacro button) that deletes the directory. The script sees this and sends Alt-Enter to VRPC and when back in a window it moves focus away from VRPC (in this case Fast Launcher) and hides the VRPC window. Another script allows me to show VRPC if I want to see it. Now, if only I could trap Alt-Enter.... so that when I forget to click the button and by habit press Alt-Enter it deletes the directory.
VRPC users might be interested in AutoIt to automate other things too. Its brilliant!
|