Copying of the text from other programs (sorry for lang)
Help please, how it's possible to deduce in Textbox1.text the text which will be deduced in dos window or in a command line when by pressing the button "button1" this program will be started or *.cmd file
Re: Copying of the text from other programs (sorry for lang)
Just have the SECOND program convert the files,and you can show the percentage complete a lot easier that it would be to monitor it using another program.
Who wrote the first program? If it's writing to the screen, it should be able to write to a text file at the same time.
Re: Copying of the text from other programs (sorry for lang)
Originally Posted by dglienna
Just have the SECOND program convert the files,and you can show the percentage complete a lot easier that it would be to monitor it using another program.
Who wrote the first program? If it's writing to the screen, it should be able to write to a text file at the same time.
First program is not my, this program isn't saving text into text file, only print in windows
Re: Copying of the text from other programs (sorry for lang)
You'd have to intercept messages sent by that app. That is a pretty advanced area, and nobody else's code would work with your app. Search for SPY++, and you'll see posts from others about sendmessage
Re: Copying of the text from other programs (sorry for lang)
From what I can see, you have a DOS program running in the background, converting A NUMBER OF BMP files to JPG Format.
I would have thought that you are more interested in the names of the files being converted rather than the percentage complete
Unless your BMP files are SEVERAL MEGABYTES in size, the conversion percentage would hardly have time to display, let alone be meaningful
And so what if a particular file is 20% or 53% converted, when the full conversion time probably is less than 500ms per conversion
If the % complete per file is your whole desire in life, then TOTALLY IGNORE THE REST OF THIS POST
I imagine the final result you want is to know how long a big conversion process will take (not how long each individual file conversion will take)
You could check the directory for the number of files
eg, 5125 files to be converted
You then start the DOS process running and a TIMER starting at the same time
(The TIMER trips over MINUTES and HOURS as it progresses)
Your destination directory is EMPTY to start with
You now simulate what MS does in a Copying Dialogue
1) Check how many files have been converted
2) Check the Time taken
Use this AVERAGE as the time it will take for each file
Display a) Time Taken and % Complete in your OWN program
b) Time left to go (estimated - but will become more accurate, the more files are converted)
If you have a facination with the % taken per file you could also calculate the time it takes to convert a BMP of various size and use your own timer to calculate % done (or left to go) because you know which file in the list is going to be converted next
If you are only converting ONE FILE at a time, dont blink because you may miss the % complete
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.