jpm Posted March 18, 2005 Posted March 18, 2005 I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password. It looks like the "Send" cannot be accepted by a Job submitted by "Run". Does somebody have a solution for running such script thru psExec or other remote submitter? Run("notepad") sleep(2000) Send("Hello") Thanks. PS Yes I need help too
SumTingWong Posted March 18, 2005 Posted March 18, 2005 I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password.It looks like the "Send" cannot be accepted by a Job submitted by "Run".Does somebody have a solution for running such script thru psExec or other remote submitter?Run("notepad") sleep(2000) Send("Hello")Thanks.PS Yes I need help too<{POST_SNAPBACK}>I know this doesn't answer your question about Send, but ControlSend works.Run("notepad") Sleep(2000) ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")
jpm Posted March 18, 2005 Author Posted March 18, 2005 I know this doesn't answer your question about Send, but ControlSend works.Run("notepad") Sleep(2000) ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")<{POST_SNAPBACK}>If it works why not. I will check on Monday when I am in a remote environmentThanks.What suprise me that there is a difference between Send and ControlSend.I will report on this difference when I will be able to check.
jpm Posted March 18, 2005 Author Posted March 18, 2005 I found out that it is working with Send provided you use the Opt("SendAttachMode",1) Thanks for your help Every body have to be aware that the Opt() is mandatory to allow Send in a remote script launch by psexec or beyondexec
jpm Posted March 21, 2005 Author Posted March 21, 2005 I was thinking that Opt("SendAttachMode",1) was solving the problem but unde a server Windows 2000 targeting another server Windows 2000 , only ControlSend was efficient. I need help from advanced developper to understand why "Send" cannot work to send keystrokes to an application launch by "RUN". Valik, Dave, Jon ...
sylvanie Posted March 26, 2005 Posted March 26, 2005 Hello, When I'm using psexec with a script autoit, which used "send", I launch it with the options : -i -s -d if -s is not specified, then "send" doesn't work I hope that's the solution to your problem
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now