Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit MouseWheel in an Inactive Window

Discussion on Autoit MouseWheel in an Inactive Window within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 29
Received Thanks: 1
Question Autoit MouseWheel in an Inactive Window

Any tip on how to trigger a MouseWheel event in an inactive window?
Something similar to how ControlClick works.
saml_e is offline  
Old 11/11/2020, 16:21   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 29
Received Thanks: 1
just found the UDF... posting here in case someone else is looking for the same info...

Code:
Func _MouseWheelPlus($Window, $direction, $clicks)
    Local $WM_MOUSEWHEEL    =  0x020A
    $MouseCoord = MouseGetPos()
        $X = $MouseCoord[0]
        $Y = $MouseCoord[1]
    If $direction = "up" then
        $WheelDelta = 120
    Else
        $WheelDelta = -120
    Endif
    For $i = 0 to $clicks
    DllCall("user32.dll", "int", "SendMessage", _
            "hwnd",  WinGetHandle( $Window ), _
            "int",   $WM_MOUSEWHEEL, _
            "long",   _MakeLong(0,$WheelDelta), _
            "long",  _MakeLong($X, $Y))
    Next
EndFunc

Func _MakeLong($LoWord,$HiWord)
  Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF))
EndFunc
Source:
saml_e is offline  
Reply


Similar Threads Similar Threads
[Help]Center camera position and add mousewheel weapon change on patch 9 client
11/29/2015 - S4 League - 4 Replies
Hello EPvP. Me and some friends play that old s4 client and I would like to know if there is a way to do or hack the client to make the camera position to be on center of the screen and to add the mousewheel function to change weapon
JULY 19 2012 THIS FOR WINDOW 7 AND VISTA AND ALSO FOR WINDOW XP WALLHACK
07/27/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 11 Replies
DETECTED In window xp
Autoit Controlsend (inactive window)
12/05/2009 - AutoIt - 3 Replies
Hiho, ich hab soweit einen funktionierenden Bot - ich wollte nun das Script so umschreiben das es auch auf das inaktive Fenster von dem Spiel zugreift. Habe mich im Forum etwas belesen und bin zu folgenden Aussagen gekommen: - #requireAdmin(funktioniert nicht) - "0" oder "" bei dem Absatz ControlID (funktioniert auch nicht) Den Titel des Fensters habe ich nun schon dutzende male überprüft, der ist 100%ig korrekt.
1Cabal Window 1Maple Window at Same TIME??
05/26/2008 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 0 Replies
let talk about 1 cabal 1 maple at same time... possible?? how to do tat...?? teach me please :p
Rename CO2 window title (any window actually)
05/13/2006 - CO2 Exploits, Hacks & Tools - 4 Replies
I have seen a few posts requesting this. It is a simple autohotkey macro nothing fancy here. You will notice also that the UPX packer detection is not triggered. If you use autohotkey and want to know how to remove the packer PM me it is rather simple. To use this little tool thingie it is very simple: Execute the code. Focus your window. Press Hotkey CTRL+WIN+w Change the Title. Apply



All times are GMT +1. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.