Jump to content

CrossHair


spec1
 Share

Recommended Posts

Odds are you are getting flicker because the game is trying to be on-top, but your cross-hair is interfering.

Try something like this:

#include <GUIConstants.au3>


Global $size = 20
Global $Left = MouseGetPos (0) - $size / 2
Global $Top = MouseGetPos (1) - $size / 2

$MouseShadow = GUICreate ("Click Through Me", $size, $size, $Left, $Top, $WS_POPUP, _
BitOR ($WS_EX_TRANSPARENT, $WS_EX_LAYERED, $WS_EX_TOPMOST))
Global $label = GUICtrlCreateLabel("", 0, 0, $size, $size)
WinSetTrans ($MouseShadow, "", 190)
GUISetBkColor(0xFF0000, $MouseShadow)
GUISetState ()

While 1
    Sleep(20)
    $WinPos = WinGetPos ($MouseShadow)
    WinMove ($MouseShadow, "", MouseGetPos (0) - $size/2-5, MouseGetPos (1) - $size/2-5)
WEnd
Edited by Paulie
Link to comment
Share on other sites

  • 6 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...