Sign in to follow this  
Followers 0
kevin.doran

Remote Execution of Screen Scraping Script

6 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Search for TCP in the help file.

Or, look at this topic: http://www.autoitscript.com/forum/index.php?showtopic=20589

#)

Edited by nfwu

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

So would I expect to see a calculator pop up on my PC screen if I was to execute this remotely?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0