kevin.doran Posted September 27, 2006 Share Posted September 27, 2006 Hi there. I'm relativly new to screen scraping and have a probably rather easy question for a more experienced person. Any help would be much appreciated: I have a perl script that calls auto-it and pops up the calculator on my PC. I need to execute this script remotly. So I use telnet to remotely login to my PC from another PC, execute the script and see a calculator window popup on my PC. Does anyone have any recommendations for acheiving this? Thanks in advance for your help, Kev Link to comment Share on other sites More sharing options...
nfwu Posted September 27, 2006 Share Posted September 27, 2006 (edited) Search for TCP in the help file.Or, look at this topic: http://www.autoitscript.com/forum/index.php?showtopic=20589#) Edited September 27, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
kevin.doran Posted September 27, 2006 Author Share Posted September 27, 2006 HI nfwu, thanks for your reply. I looked over the forum/help file but need a bit of a pointer in the right direction. I understand that I can use TCPStartup() to connect to a remote PC - but how do I then send the command to launch "calc.exe". Thanks again, Kev Link to comment Share on other sites More sharing options...
dabus Posted September 27, 2006 Share Posted September 27, 2006 (edited) Send a string, lets say ~~exec~~:calc.exe from client-side. On server-side, you'll have to add a line that interprets that stuff, like If StringinStr($retv, ~~exec~~) Then $retv=StringSplit($retv, ":") Run($retv[2], @ScriptDir) EndIf Put that around the lines where you interpret ~~bye~~ (hope you have that example )... Edited September 27, 2006 by dabus Link to comment Share on other sites More sharing options...
kevin.doran Posted September 28, 2006 Author Share Posted September 28, 2006 So would I expect to see a calculator pop up on my PC screen if I was to execute this remotely? Link to comment Share on other sites More sharing options...
Reaper HGN Posted January 5, 2007 Share Posted January 5, 2007 So would I expect to see a calculator pop up on my PC screen if I was to execute this remotely?If I understand your question, you want to login to remote system from your local system and execute something on the remote system that would then redirect the output to the local system? If that is the case, then you are looking for some type of X server for windows. This effectively allows you to export your display on the remote system back to your local system. That being said, it is possible with Autoit to execute a script on a remote system. However, the output stays on the remote system. Link to comment Share on other sites More sharing options...
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