| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Aug 05, 2002 11:33 pm Post subject: Capture text from a DOS window |
|
|
hello all i have been playing with the vdsconsole.dll but i can't seem to get it to work.what i need to do is to Capture text from a DOS window and feedthat into other program.. any ideas any Example scripts around
thanks
P.S. also to to let you knwo the dos | and >>,> won't work for me in this case.
thanks |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Aug 06, 2002 2:11 am Post subject: hummmm |
|
|
yea this is s tought one....i can get that dll to pas commads BUT still no go  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Aug 11, 2002 12:17 am Post subject: not good |
|
|
| I really need some help/ or ideas for this one...any one thanks |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Fri Aug 16, 2002 1:03 pm Post subject: Capture text from a DOS window |
|
|
I saw (from the Window Spy Tool) that you can use (like Mac said in the other topic) @WINTEXT() (ex. %%Text = @WINTEXT(@WINATPOINT(10,10)), where the numbers are the X and Y position of the text.
Well, I thought this code would work, bit it didn't:
| Code: |
TITLE Get Text From Window - by Tsunami1988
DIALOG CREATE,Get Text From Window,-1,0,200,29,NOMIN
DIALOG ADD,EDIT,EDIT1,5,5,190,19
DIALOG SHOW
REPEAT
%%WinPosT = @WINPOS(#TScriptWin,T)
%%WinPosL = @WINPOS(#TScriptWin,L)
%%TextPosT = @SUM(%%WinPosT,40)
%%TextPosL = @SUM(%%WinPosL,40)
%%Text = @WINTEXT(@WINATPOINT(%%TextPosT,%%TextPosL))
DIALOG SET,EDIT1,%%Text
UNTIL @EVENT()
EXIT
|
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Aug 25, 2002 5:11 pm Post subject: |
|
|
Eeeeeeeeh... If you don't want to have a visible window it doesn't work.
That is, I think, the reason why Tim want's to use the vdsconsole.dll...
But you can also move the DOS-Window to X:9999 Y:9999 or something. |
|
| Back to top |
|
 |
|