Franklinqiang
Technical User
I have a question on sending commands using Procomm to the windows command line(CMD,dos window).
PLS see my script below:
proc main
winfocus "command prompt"
pause 1
sendkeystr "ipconfig"
sendkey ctrl 'M'
pause 1
alarm 1
winfocus "untitled - notepad"
pause 1
sendkeystr "ipconfig"
sendkey ctrl 'M'
pause 1
alarm 1
endproc
Besides the Procomm mainwindow, I have an opened windows command line window, titled "command prompt" and another opened notepad window, titled "untitled - notepad".
I want my script send "ipconfig^M" to both window,but it only succeeded in the notepad, nothing was sent to the CMD window.
Could you tell me how can I send some commands to the CMD window?
PLS see my script below:
proc main
winfocus "command prompt"
pause 1
sendkeystr "ipconfig"
sendkey ctrl 'M'
pause 1
alarm 1
winfocus "untitled - notepad"
pause 1
sendkeystr "ipconfig"
sendkey ctrl 'M'
pause 1
alarm 1
endproc
Besides the Procomm mainwindow, I have an opened windows command line window, titled "command prompt" and another opened notepad window, titled "untitled - notepad".
I want my script send "ipconfig^M" to both window,but it only succeeded in the notepad, nothing was sent to the CMD window.
Could you tell me how can I send some commands to the CMD window?