Sign in to follow this  
Followers 0
temassacro

Webbrowser control

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Try ControlClick and ControlSend instead of MouseClick and Send

Share this post


Link to post
Share on other sites

I tried already. It doesn't work.

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