Not so much for screen scraping, but to "push keys" to another app (even a DOS app in a command window!) look at KiXtart.
http://www.kixtart.org/
- Chuck Somerville
OK - not VB exactly, but one of my favorites...
In the right pane of an 'explore' window (or the only pane of an 'open' window) in Windows Explorer (in details view), how many times have you grabbed the dividing lines in the gray bar at the top of the columns and re-sized the columns to keep...
I have done this for a shell-ed DOS app before, where the DOS app's output was all to stdout, by re-directing the output to a file and then reading the file and displaying it in multi-line text box on my form. I made the text box white-on black, with CourierNew Bold for the font so it kinda...
Thanks, SemperFi...
No need to provide code - I can (and was afraid I would have to) write my own parser. I was just hoping someone had seen a mechanism usable from within VB to pull out the strings, since most of the rest of the programming environments provide such a tool in their libraries...
I'm sitting in front of a Windows NT4 SP6a machine and CHOICE works here.
Here's text captured from the DOS window...
Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.
C:\>choice /?
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
/C[:]choices Specifies allowable keys...
Yes, I agree - one could do that if it were command-line parameters formatted to my instructions, but (I should have elaborated more, I guess) in this case the operating system is providing the "sometimes quote-surrounded and space-containing" strings.
It is a program intended to...
In C you can get each command-line argument as an element of the argv array. They system splits each argument (even if it is quote-surrounded with embedded spaces) into separate strings.
VB seems to give you the Command$ string and no tools I can find to easily split it into the separate...
Start the Window with the START command.
Enter START /? | MORE in a DOS window to see the options, which include minimizing, maximizing, or "regularizing" the window as well as whether to wait on the command to finish, what to put in the DOS window's title bar, etc.
START came in...
If you are converting the (DOS) QBASIC program to Microsoft Access Application BASIC, there is no direct equivalent (Windows) behavior for those (DOS) PEEK and POKE actions.
What you must do is understand what the PEEKs and POKEs were actually doing (reading/writing characters on screen...
Unlike the newer Microsoft BASIC versions, there is no fixed-length string type in TB. You can simulate the effect to a degree by setting the string variable to a value of the length desired...
c$ = "z"
...and then use LSET to assign other values to it. (LSET assigns data in-place...
You cannot convert QB 4.5 .EXE programs to .COM programs. The requirements for a .COM program are (in addition to no stack segment) that everything (data, code, stack, etc.) fit within 64K. There is no inherent benefit in making a .COM program - certainly no differences regarding types of screen...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.