Sign in to follow this  
Followers 0
Leonick

anyone got an example of controlclick() working in IE(Hidden!!)

2 posts in this topic

Hey everybody.

Since i only can make controlclick(Hidden) to work in Opera&FF, i wanna ask if anybody got an example of controlclick() working in minimized/hidden windows in IE!!

that would be great.

Share this post


Link to post
Share on other sites



Of curce I can give you a example Leonick!

Here you go:

#include <IE.au3>


Opt("MouseCoordMode", 2)
Opt("WinTitleMatchMode", 4)

$hWnd = WinGetHandle("AutoIt Script Home Page - Windows Internet Explorer")

;WinWait($hWnd)
;If Not WinActive($hWnd) Then WinActivate($hWnd)
;WinWaitActive($hWnd)

; WINDOW IS NOT ACTIVE!!

sleep(1000)
ControlClick($hWnd, "", "Internet Explorer_Server1", "left", 1, 722, 125) ;;;;Opens The forum

; Does not Work when NOT active!!

;even statusbar only works when active

$status=StatusbarGetText($hWnd)
ConsoleWrite($status&@LF)

just kidding...found the solution...

#include <IE.au3> ;---IS NEEDED

maybe this could help anyway someone.

thx

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