Jump to content

Recommended Posts

Posted

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

Posted

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

Posted (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 by dabus
  • 3 months later...
Posted

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.

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
  • Recently Browsing   0 members

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