Sign in to follow this  
Followers 0
onedayillpay

print color to screen x, y overlay

5 posts in this topic

$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

Share this post


Link to post
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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

developers get butt hurt when autoit is used for cheating in games?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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.

 

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