Autohotkey controlsend in hidden cmd -


i have script looks this:

detecthiddenwindows, on  run,%comspec% /k, , hide, pid2  winwait, ahk_pid %pid2%  controlsend, ,winscp.com script="path\to\script.txt", ahk_pid %pid2%  sleep,3000  ;-- close hidden dos window --  process, close, %pid2%  process, waitclose, %pid2% 

but problem controlsend works , send right letters , change double columns single 1 , change winscp.com winscp>com , etc dont know these letters come idea how fix issue , make send right letters cuz frustrate me , makes whole script mess up.

thanks lot

max

detecthiddenwindows, on  run, winscp.com script="path\to\script.txt", , hide, pid2  sleep 6000  process, close, %pid2% process, waitclose, %pid2% 

that best way me ensure upload done , ready continue script.

note: use runwait /c command (which substitute sleep command) summarize whole script provided above afraid still gives same issue mentioned above prefered directly using run , process close , waitclose commands.

max


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -