Aktonius Posted July 13, 2011 Share Posted July 13, 2011 (edited) Basically my mouse hook in dll grabs the windowfrompoint(handle) then sends the handle to my script whenever mouse moves. If you wonder why i am doing it like this and not solely from mouse in autoit the answer is because mousehook really doesnt work good with other loops in my app. Basically i have a reged function like this that receives a message from dll with hwnd(lparam) ... Case $MsgID = $WM_AUTOITMOUSEMOVE If StringInStr(WinGetTitle($lParam), "something that tells me its the window that is allowed to be activated") Then If Not WinActive($lParam) Then ;ConsoleWrite("HOVERING NEW, Activate It: " & WinGetTitle($lParam) & @LF) WinActivate($lParam) EndIf Case .... Sadly i still have hogs here and there and slowdowns, am i doing this thing above right? I have winfunctiondelay on 50 milisec, has to be low because activate window under mouse makes no point then Edited July 13, 2011 by Aktonius 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