AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Responding to text in a terminal emulation program

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
domhnull



Joined: 18 Sep 2004
Posts: 4
Location: Lacey, WA

PostPosted: Fri Oct 08, 2004 11:24 pm    Post subject: Responding to text in a terminal emulation program Reply with quote

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.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Sat Oct 09, 2004 12:10 am    Post subject: Reply with quote

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/viewtopic.php?t=267&highlight=terminal+text
Back to top
View user's profile Send private message Send e-mail
Beastmaster



Joined: 15 Apr 2004
Posts: 181

PostPosted: Sat Oct 09, 2004 11:54 am    Post subject: Reply with quote

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 Question
Back to top
View user's profile Send private message
domhnull



Joined: 18 Sep 2004
Posts: 4
Location: Lacey, WA

PostPosted: Sat Oct 09, 2004 12:23 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group