Mumms Posted September 13, 2009 Share Posted September 13, 2009 HotKeySet("{F5}","Quit"); Press ESC to quit HotKeySet("{F1}","DrawLines"); Press ESC to quit Global $CENTER_X = Int(@DesktopWidth/2) Global $CENTER_Y = Int(@DesktopHeight/2) $main = 1 $REFRESH = InputBox("DrawLines","Refresh time","5") While $main = 1 Sleep(GUICtrlRead($REFRESH*1000)) WEnd Func DrawLines() $main = 1 WinSetOnTop("asdf","", 1) $DC = DllCall ("user32.dll", "int", "GetDC", "hwnd", "") For $INDEX = $CENTER_X - 5 To $CENTER_X + 5 DrawPixel($DC,$INDEX,$CENTER_Y,0x00FF00) Next For $INDEX = $CENTER_Y - 5 To $CENTER_Y + 5 DrawPixel($DC,$CENTER_X,$INDEX,0x00FF00) Next EndFunc Func DrawPixel($hDC,$X,$Y,$COLOR) DllCall ("gdi32.dll", "long", "SetPixel", "long", $hDC[0], "long", $X, "long", $Y, "long", $COLOR) EndFunc Func Quit() Exit EndFunc I grabbed this code and added my own hotkey to turn it on, but my problem is is that i can't see the crosshair when im in game, so my question is how can i set my crosshair on top so it appears on my game. Link to comment Share on other sites More sharing options...
Hawkwing Posted September 13, 2009 Share Posted September 13, 2009 If it's a fullscreen game that doesn't run in windowed mode, you have very little hope. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. 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