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

Re: tricking another program with xywrite as if keyboard?



Reply to note from "Knouse, Charles" 
Wed, 8 Apr 2009 18:55:42 -0500

Charles:

> I need to trick Avatar into THINKING (a hopeless goal, of
> course;) that it is receiving keyboard input....heh heh heh.

I'm not entirely sure what it is you want to do. First of all, what
is Avatar? Google is next to useless with a keyword like that, even
after adding the "define:" operator. I think I can safely rule out
"an album by the Dutch futurepop band Angels and Agony", "a death
metal band from Romania", and anything related to the Xbox 360. Are
you perhaps talking about "the AVATAR protocol (Advanced Video
Attribute Terminal Assembler and Recreator) ... a system of escape
sequences occasionally used on Bulletin Board Systems (BBSes)"? Or
"Aerobic Vehicle for hypersonic Aerospace TrAnspoRtation ... a
conceptual single-stage reusable rocketplane which is capable of
horizontal launch"? No? Pray tell, what, then?

> Is there a way, running XPL in xywrite, to send text (and
> keyboard commands) from xywrite into Avatar as if it were
> keyboard input?

Certainly you can use the XyWrite command line or XPL to send
keystrokes to another running Windows program. First, though, you'll
need to get hold of Robert Holmgren's GoXy utility (download at
http://users.datarealm.com/xywwweb/GoXy.EXE), and get familiar with it
(documentation at http://users.datarealm.com/xywwweb/Go.HTM). With
GoXy.EXE in the DOS Path, you can issue issue a XyWrite command such
as:

do/nv/z goxy.exe "firefox" /key(ctsh)h

Read: Switch to Firefox and open the browser history (Ctrl-Shift-H).
(Omit "/nv/z" if you're running Xy3.)

Is that the sort of thing you're after?

--
Carl Distefano
cld@xxxxxxxx