temassacro Posted September 26, 2005 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
robiezhou Posted September 26, 2005 Posted September 26, 2005 Try ControlClick and ControlSend instead of MouseClick and Send
temassacro Posted September 26, 2005 Author Posted September 26, 2005 I tried already. It doesn't work.
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