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 

ControlSend.. ControlGetText

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



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Tue Nov 28, 2006 7:49 pm    Post subject: ControlSend.. ControlGetText Reply with quote

I am having a problem getting text to pull from a Telnet Window. I even tried HyperTremal but both ways i am not getting the text that is shown in the windows. i used AHK_SPY and tried the Auto Script Writter but they do not show the numbers that i want to read.
The AHK SPY shows this only:
Code:

>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Telnet ultimatetw.com
ahk_class ConsoleWindowClass

>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen:   492, 171  (less often used)
In Active Window:   448, 127

>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<

Color:   0xC8D0D4  (Blue=C8 Green=D0 Red=D4)

>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: 44     top: 44     width: 668     height: 331

>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<

>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<

>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<

>>>>( TitleMatchMode=slow Visible Text )<<<<

>>>>( TitleMatchMode=slow Hidden Text )<<<<


I also tried WinGet text with the HyperTerm and it only showed like the time connected and menu items Sad
any help would be great.
i did check the forums but didnt see anything off hand about reading from Telnet. i would prefer to use Telnet if possible.
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Wed Nov 29, 2006 1:19 am    Post subject: Reply with quote

been trying all day but have not been able to get any data to pull from a Telnet session to a BBS door game. (TradeWars 2002)
my regular scripts work (background and forground) for typing data in to the control using ControlSend.
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
i3egohan



Joined: 18 Jul 2006
Posts: 201

PostPosted: Wed Nov 29, 2006 1:25 am    Post subject: Reply with quote

I thought there were a function in cmd that will log all txt then you could use file append then read, search google on cmd commands or something simular maybe cmd log or something.

Good luck
_________________


I3egohan
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Wed Nov 29, 2006 1:28 am    Post subject: Reply with quote

ohh good point.. let me check if that setting is one or not.. thanks Smile
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Wed Nov 29, 2006 1:37 am    Post subject: Reply with quote

okay i checked the settings on the cmd prompt thing i was running and set the buffer size higher and also set it to Quick Edit mode. Which allows copy and paste i think.. i will do a google search or something now to see if anyone has any other ideas..
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Thu Nov 30, 2006 12:30 am    Post subject: Reply with quote

okay so i have found nothing really besides "screen scrapping"
that does not run on minimized windows so that doesnt help out at all Sad
there has to be some was to be able to read the data being passed back from the server in a telnet session.. hmmm maybe AutoIT is where i need to go Sad
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Thu Nov 30, 2006 1:28 am    Post subject: Reply with quote

Okay now...
I got HyperTermal able to save the text that comes from the server to a TXT file on my local hard drive Smile now i will be able to use PARSE and READ File to do what i needed. thanks everyone for looking at the post. once i get my ful script done i will post it here.
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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