[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: 64-bit Xy! ++X:\xy4\GetXyIn.ahk ++X:\WK\OPE-SWI.FRM



Kari,
Interesting concept, but attachment missing. Please try again.
Whoops, forgot that I'm not set up yet to send attachments from
XyWrite in W2K!

Here are the files:

GetXyIn.ahk - host side script
OPE-SWI.FRM - U2 routine for Xy4 in W2K guest
Here's an example of a guest-side script (manufactured on the fly by the U2 frame when the user issues OPE acrobat), to open Acrobat in the host:

#NoEnv
#SingleInstance force
Clipboard=0xy0
Progress, 98, Working, Opening/Switching to`n"acrobat"
Sleep, 3000
Clipboard=acrobat
ExitApp
And here's the GetXyIn.ahk script, which processes the signal ("0xy0") on the host side:

; 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
}



--
Carl Distefano
cld@xxxxxxxx

Attachment: GetXyIn.ahk
Description: Binary data

Attachment: OPE-SWI.FRM
Description: Binary data