temassacro Posted September 26, 2005 Share Posted September 26, 2005 Hi, I want to click cancel to this program "MediaGateway.exe" Can someone tell me what it's wrong with my code? Run("MediaGateway.exe") WinWait("UCI") $handle = WinGetHandle("UCI") Sleep(2000) WinActivate($handle) Sleep(1000) $size = WinGetPos($handle) MouseClick("primary",$size[0] + 10, $size[1] + 10, 1, 0) $ieHandle = ControlGetHandle($handle,"","Internet Explorer_Server1") WinActivate($handle) ControlFocus($handle,"",$ieHandle) ;ControlClick($handle,"",$ieHandle) Send("{TAB 7}") Send("{ENTER}") MediaGateway.wmv Thanks Link to comment Share on other sites More sharing options...
robiezhou Posted September 26, 2005 Share Posted September 26, 2005 Try ControlClick and ControlSend instead of MouseClick and Send Link to comment Share on other sites More sharing options...
temassacro Posted September 26, 2005 Author Share Posted September 26, 2005 I tried already. It doesn't work. 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