

Depends on the return value of scrcpy it can determine whether to pause or not. Maybe we can show the actual error log into dialog but it also violates the retry in automate.Īnother possible method is we can write a wrapper. However, when some problem happens, in this time, if user double click the icon and it doesn't show anything is a good feedback or not (IMO, it is not). To remove the pause, there are some methods to do it,įor example, we can write the log into a file, in this case we don't need the console version as well as the pause. (Btw, it would also be great if there was a way to easily handle both normal and "no console" version without producing two different binaries.) bat wrapper? (cc my point of view, I don't think we need to add this option. I'm not in favor of adding a command-line parameter for this, maybe it would be better to remove this pause from scrcpy, and handle this from a.

This pause is a hack to avoid the following problem ( 140b1ef): users start scrcpy by double-clicking on scrcpy.exe, this opens a console while scrcpy but closes immediately once scrcpy is closed, so users can't see the error message. To specify multiple combination sets such as ALT A Z, you use parentheses, for example, object.SendKeys “%(AZ)”.Indeed, this is problematic (on Windows). Wscript "F:\Ict_Backup\Desktop\program.vbs"įor example to specify CTRL and C, the code would be object.SendKeys “^C” and for SHIFT F5 object.SendKeys “+”. Create a batch file named like “auto.bat” and write following code and save it If your problem is with VC++ closing when you run a program before you can see the output, one solution is to press ctrl-f5 to turn it instead of F5, then it waits for a keypress before it closes the console. “WshShell.SendKeys” is using to keypress dynamically.Ģ. Where “notepad” is Notepad application which is already running. Set WshShell = WScript.CreateObject("WScript.Shell") Create a VB script file named like “program.vbs”. Then you can follow the instructions are given belowġ. Your need is to open application and press Ctrl+F to find something automatically by batch program. Suppose your application is running in windows OS.

Pressing any key automatically using batch program by opening existing user running application are given below:
