onedayillpay Posted March 14, 2011 Share Posted March 14, 2011 $fov = MouseGetPos() $top = $fov[1] - 200 $bottem = $fov[1] + 200 $left = $fov[0] - 200 $right = $fov[0] + 200 print red $top print red $bottem print red $left print red $right i would like to print a red square around the mouse at all times... over the top of any window that is active... a few years ago i seen something like this done in the exaple forum but i cant find it Link to comment Share on other sites More sharing options...
onedayillpay Posted March 14, 2011 Author Share Posted March 14, 2011 ok, i did find this example that is working for me but i need to display color over a opengl game... any idea? HotKeySet ("d", "Draw") HotKeySet ("^e", "MyExit") MsgBox (4096, "NOTE", "Press 'D' to draw and Ctrl+E to exit... The default color is Green.") Func SetPixel ($handle, $x, $y, $color) $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle) DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color) DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) EndFunc Func Draw () $pos= MouseGetPos () SetPixel ("", $pos[0], $pos[1], 0x00FF00) Sleep (10) EndFunc Func MyExit () Exit EndFunc While 1 $pos= MouseGetPos () SetPixel ("", $pos[0], $pos[1], 0x00FF00) ;Sleep (100) wend Link to comment Share on other sites More sharing options...
bogQ Posted March 14, 2011 Share Posted March 14, 2011 ok, i did find this example that is working for me but i need to display color over a opengl game... any idea?Read this to b on safe sideAs for red square use trans or 4 guies that forme one square_WinAPI_SetLayeredWindowAttributes TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
onedayillpay Posted March 15, 2011 Author Share Posted March 15, 2011 developers get butt hurt when autoit is used for cheating in games? Link to comment Share on other sites More sharing options...
bogQ Posted March 15, 2011 Share Posted March 15, 2011 (edited) that is unnecessary comment don't you think?. Edited March 15, 2011 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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