AutoHotkey Community

It is currently May 27th, 2012, 8:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 9th, 2004, 12:24 am 
Offline

Joined: September 18th, 2004, 2:48 pm
Posts: 4
Location: Lacey, WA
I'm working with Anzio Lite. Basically I want to trigger an action based on text displayed in the terminal window (not typed or entered by the user). I've created one solution using a timer to call Anzio's Copy function which copies the screen to the clipboard. It works, but not without problems.

#1 - it dumps a bunch of stuff on the clipboard which interferes with other things we do
#2 - calling the copy function interrupts other input

I tried a hotstring but that didn't catch the text on the screen. It does catch user-typed text.

I'm probably trying to ask too much of AutoHotKey, but just in case someone had some ideas I thought I'd ask.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2004, 1:10 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
You might try ControlGet, which can retrieve and send text at the caret position. WinGetText is also a possibility. This will probably not work for some terminal emulators since these commands are only tested to work with more typical control types such as Edit.

Here is a post related to advanced functions and PuTTY specifically: http://www.autohotkey.com/forum/viewtopic.php?t=635

And another about terminal emulators:
http://www.autohotkey.com/forum/viewtop ... minal+text


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2004, 12:54 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Quote:
As mentioned above, all versions of Anzio support passthrough print. DOS versions simply pass the characters out to a file/device, such as LPT1. In Windows, we have more flexibility, and more confusion. [more...]
Taken from anzio's printguide.

If you can print anzios content to a file it should be possible to parse the file afterwards for whatever you've set as a trigger ...

Maybe I've missed you :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2004, 1:23 pm 
Offline

Joined: September 18th, 2004, 2:48 pm
Posts: 4
Location: Lacey, WA
Thanks Chris, I'll look at that.

I did think of capturing the text to a file and parsing it, but Anzio's performance degraded significantly while running the capture.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], sjc1000, specter333 and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group