Jump to content

print color to screen x, y overlay


Recommended Posts

$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

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

ok, i did find this example that is working for me but i need to display color over a opengl game... any idea?

Posted Image

Read this to b on safe side

As for red square use trans or 4 guies that forme one square

_WinAPI_SetLayeredWindowAttributes

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

that is unnecessary comment don't you think?.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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...