Sign in to follow this  
Followers 0
spec1

CrossHair

4 posts in this topic

Is there a way to make a Crosshair for like 800x600 for fps games and does not flicker I have seen some on here but they flicker is there a way to make one so it does not flicker ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Amm this is not working :S i try i get error

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