; GetXyIn.AHK -- CLD rev.10/21/14 (AutoHotKey) ; Grab command/filename/window title from XyWrite running in a virtual ; machine and execute the command/open the file/switch to the window ; in the host operating system (Win-64/32). ; Bidirectional Windows Clipboard must be enabled in the virtual machine! ; Launch GetXyIn.AHK in the *host* OS at startup. Transmit data from ; XyWrite via U2 frame OPE[n],SWI[tch_to] ; ===================================================================== #NoEnv #Persistent #SingleInstance force SetTitleMatchMode, RegEx While 1 { While (Clipboard<>"0xy0") and (Clipboard<>"1yx1") { Sleep, 3000 } flag=%Clipboard% Clipboard= ClipWait, 8 If not Errorlevel { If (flag="0xy0") { Run, %Clipboard% } Progress, OFF WinActivate, i).*%Clipboard%.* } Sleep, 2000 }