1.

Solve : Batch file code problem?

Answer»

I want to run a batch file while I am away from computer and at one time I need to press 'ENTER' on the keyboard (or to click somewhere PRECISE in the screen), is it possible to make the batch file 'press' the enter key or to program a way to click somewhere in the screen?

If not do you know any software where I could program this?You could edit the .bat file and remove the corresponding "pause" line from the code.There are no ''pause'' line in my program.

I want to know if it is possible to code the batch file for it ''press'' enter key.

I make the batch open a software and after it is open I need to press enter key to make it run and after I do a loop to make it run MANY times... I know how to make all the code except that press enter THING (or to make it click somewhere in the screen to run the software)you will need to create a small file- just press enter in notepad, and save the resulting file.


now, assuming you saved that file as "enter.txt":
Code: [Select]type enter.txt | yourprogram.exe

the enter in the text file will be USED by the program as standard input, and so it will act as if the user had pushed enter.

Hope this is what you need.



Discussion

No Comment Found