Sign in to follow this  
Followers 0
60aside

Help launching calc.exe on computer through browser

8 posts in this topic

Hi Guys,

Hope you can help, I've created a lot of scripts with autoit. But I need to now launch code on a client through a web browser (Internet Explorer 7/8)

To start me off, could anyone help me to launch an exe on a client - for example calc.exe through activex?

Thanks Guys.

Share this post


Link to post
Share on other sites



You don't. AutoItX is not designed for browser integration. Also, the browser should not be launching programs.

Share this post


Link to post
Share on other sites

I figured it out anyway using activex, this will launch calc.exe then close the IE window. Not autoIT, just name the file with .html as the extension.

You could put your autoit.exe in the path instead of calc.exe to launch through the browser.

<script>

var ws = new ActiveXObject("WScript.Shell");

ws.Exec("c:\\windows\\system32\\calc.exe");

window.open('','_self');

window.close();

</script>

Share this post


Link to post
Share on other sites

You still should not be running executables from the browser.

Also, ActiveX only works in Internet Explorer.

Share this post


Link to post
Share on other sites

As I said before, it only works in Internet Explorer.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

As I said before, it only works in Internet Explorer.

Sadly :); i really wish there could be some more functionlity to it; do you know if there is a Java based interpreter? like one i can use in my page?

i think an alternative would work too; check if autoit script is installed, then run a command to autoit.exe

to grab one of my scripts from my site, then execute it with user permission; but i need to find a java alternative so that it can be run from other browsers

Edited by MegaGamerGuy

Share this post


Link to post
Share on other sites

Hi, i was looking at that ActiveX component. Is it possible to run an executable with parameters?

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