Jump to content

Running Programs on another PC


Recommended Posts

Hi, so I am new to using AutoIt but I have some experience in using other programming languages, mostly Java. I am looking for a way to run a program on another computer by executing it on my computer. Ideally this would be done without being logged on to the secondary computer. I assume this would use TCP but I can't think of a way to do it. My computer would have the credentials to execute. I don't have much knowledge working with server/client setups or anything like that so I don't know if my thinking is flawed. Any ideas of what I should look into?

Also, is there a way to simulate mouse clicks, etc. without being logged into the computer?

Edited by sarcasteak
Link to comment
Share on other sites

Is the only difference between control click and mousedown is that you can assign it to a specific button? I created a script to create a text document. I then used psexec to call the script remotely, however it doesn't successfully execute (no txt file is created), is it even possible to simulate mouse clicks without being logged into the system?

#region --- ScriptWriter generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
WinWait("Program Manager","FolderView")
If Not WinActive("Program Manager","FolderView") Then WinActivate("Program Manager","FolderView")
WinWaitActive("Program Manager","FolderView")
MouseMove(1025,322)
MouseDown("right")
MouseUp("right")
MouseMove(1075,472)
sleep(1000)
MouseMove(899,757)
MouseDown("left")
MouseUp("left")
WinWait("Program Manager","New Text document.tx")
If Not WinActive("Program Manager","New Text document.tx") Then WinActivate("Program Manager","New Text document.tx")
WinWaitActive("Program Manager","New Text document.tx")
Send("testau.txt{ENTER}")
#endregion --- ScriptWriter generated code End ---
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...