60aside Posted March 7, 2011 Share Posted March 7, 2011 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. Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 8, 2011 Share Posted March 8, 2011 You don't. AutoItX is not designed for browser integration. Also, the browser should not be launching programs. Link to comment Share on other sites More sharing options...
60aside Posted March 8, 2011 Author Share Posted March 8, 2011 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> Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 9, 2011 Share Posted March 9, 2011 You still should not be running executables from the browser. Also, ActiveX only works in Internet Explorer. Link to comment Share on other sites More sharing options...
MegaGamerGuy Posted March 11, 2011 Share Posted March 11, 2011 I Have Done it, check out my example at http://mega-gamer.servehttp.com:8124/au3/Test Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 11, 2011 Share Posted March 11, 2011 As I said before, it only works in Internet Explorer. Link to comment Share on other sites More sharing options...
MegaGamerGuy Posted March 11, 2011 Share Posted March 11, 2011 (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.exeto 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 March 11, 2011 by MegaGamerGuy Link to comment Share on other sites More sharing options...
Jakim Posted April 23, 2011 Share Posted April 23, 2011 Hi, i was looking at that ActiveX component. Is it possible to run an executable with parameters? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now