Jump to content
Sign in to follow this  
anony10

Click in background without maximizing window

Recommended Posts

anony10

Hi guys!

I would like to send clicks to a minimized window, which I successfully accompolished but I have a problem. My problem is that every time a click has been sent to the window, the window maximizes itself (therefore making it active) which is quite annoying. I tried hiding it and everything, but i just cant make it so that it doesnt maximize or active itself everytime something happens in the window. Any suggestions?

Opt("WinTitleMatchMode", 2)
opt("caretcoordmode", 1)

hotkeyset("{f2}", "handle")

while 1
    sleep(1)
WEnd


func handle()
    $handle = wingethandle("XY")
    while 1
    sleep(5000000)
    controlclick("XY", "", $handle, "left", 1, 297, 484)
    wend
endfunc

I looked at similar forums, but I couldnt find anything similar to this.

Thanks

Edited by anony10

Share this post


Link to post
Share on other sites
FireFox

Hi,

I'm thinking of a solution, but unfortunately it's not possible in AutoIt as it requires a DLL.

The idea is to subclass the window proc and to block the activate event.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
anony10

Thanks for your help, but unfortunately I dont think I am able to do that on my own, as I dont even know how that is possible.

Thanks anyways.

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  

×