Jump to content
Sign in to follow this  
lulu

Read input from hyperlink calling my AutoIt script

Recommended Posts

lulu

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?

Share this post


Link to post
Share on other sites
DW1

Yes I believe this is possible. I have written some really similar things using AU3CGI (AutoIt for Web). Do search in the forums for either AU3CGI or autoit for web.

Share this post


Link to post
Share on other sites
KaFu

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

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  

×