Jump to content

Read input from hyperlink calling my AutoIt script


lulu
 Share

Recommended Posts

Is it possible to construct a hyperlink on my Intranet web page that calls my AutoIt exe AND passes my AutoIt script a variable? I've written a script that reads input from a CSV file. My script is called from a web page. I'd like to have multiple hyperlinks that call this script, where each different link provides for different input file. So, I'm trying to do two things:

1. Provide a file name (or any unique variable) in the web page hyper link.

2. And then have access to that variable from within my script.

Is this possible in AutoIt?

Link to comment
Share on other sites

Funny that you ask this question :(, just thought about this one yesterday! One way that came to my mind was to create a new protocol handle in the registry, something like http://... in this case of course more something like au3:// >_<...

Look at HKEY_Classes_Root/http for a registry sample.

Parsing that to a running app would need some tweaking, I'm not sure but I guess that would invoke a new instance of your app. Maybe let the app check at start if another instance is running and if so parse the input data via a freq. checked ini-file to the running instance? Just some thoughts :(...

Edited by KaFu
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...