| View previous topic :: View next topic |
| Author |
Message |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Tue Nov 28, 2006 7:49 pm Post subject: ControlSend.. ControlGetText |
|
|
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
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 |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Wed Nov 29, 2006 1:19 am Post subject: |
|
|
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 |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 201
|
Posted: Wed Nov 29, 2006 1:25 am Post subject: |
|
|
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 |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Wed Nov 29, 2006 1:28 am Post subject: |
|
|
ohh good point.. let me check if that setting is one or not.. thanks  _________________ ----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
----------------------------- |
|
| Back to top |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Wed Nov 29, 2006 1:37 am Post subject: |
|
|
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 |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Thu Nov 30, 2006 12:30 am Post subject: |
|
|
okay so i have found nothing really besides "screen scrapping"
that does not run on minimized windows so that doesnt help out at all
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  _________________ ----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
----------------------------- |
|
| Back to top |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Thu Nov 30, 2006 1:28 am Post subject: |
|
|
Okay now...
I got HyperTermal able to save the text that comes from the server to a TXT file on my local hard drive 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 |
|
 |
|