DigitalOffshore Posted February 8, 2011 Share Posted February 8, 2011 Hi, I am calling an Autoit script (named "OpenWebSite.au3") from a asp.net webapplication. "OpenWebSite.au3" opens a web url in IE and clicks on hyperlink available on web page. the hyperlink is clicked using mousemove & mouseclick (uses co-ordinates of the screen) functions of autoit. code written within the calling web application is : string[] args = {@"D:\Work\Temp\AutoIt\Include\OpenWebSite.au3", arg2, arg3, arg4}; Process.Start(@"D:\Work\Temp\AutoIt\AutoIt3.exe", string.Join(" ", args)); Problem is : Autoit is running as background process and as a result instance of IE is not opening. So mousemove & mouseclick doesnot work because they are working with co-ordinate/postioning on screen. but when i try to call that "OpenWebSite.au3" using command prompt, it opens up an IE instance and mousemove & mouseclick works fine. please suggest how can i explicitly open up that IE instance on calling from my web application. Thanks in Advance, Link to comment Share on other sites More sharing options...
gpence Posted February 16, 2011 Share Posted February 16, 2011 Hi, I am calling an Autoit script (named "OpenWebSite.au3") from a asp.net webapplication. "OpenWebSite.au3" opens a web url in IE and clicks on hyperlink available on web page. the hyperlink is clicked using mousemove & mouseclick (uses co-ordinates of the screen) functions of autoit. code written within the calling web application is : string[] args = {@"D:\Work\Temp\AutoIt\Include\OpenWebSite.au3", arg2, arg3, arg4}; Process.Start(@"D:\Work\Temp\AutoIt\AutoIt3.exe", string.Join(" ", args)); Problem is : Autoit is running as background process and as a result instance of IE is not opening. So mousemove & mouseclick doesnot work because they are working with co-ordinate/postioning on screen. but when i try to call that "OpenWebSite.au3" using command prompt, it opens up an IE instance and mousemove & mouseclick works fine. please suggest how can i explicitly open up that IE instance on calling from my web application. Thanks in Advance, I'm not sure I'm following you... if you can't explicitly run the OpenWebSite.au3 script because it runs as a background process, but it DOES work when you run in from the command prompt, why couldn't you call the script from a command prompt using cmd.exe? 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