Sign in to follow this  
Followers 0
blackhydra866

Drawing "on top" of desktop?

6 posts in this topic

Is there anyway I can create something like a 10x10 white square that I can have stay on top of every window using autoit? I'm not even sure where to start for making a script for this. It's for an old FPS game that I play, and it lacks a crosshair and I don't exactly feel like putting a dot on my monitor, lol. Kind of a strange script request, I know.. :D

Share this post


Link to post
Share on other sites



Did you forget to search the forums first? I know there is a crosshair script on here and I think I remember seeing a script that allows you to draw lines and stuff on the desktop.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

#include<guiconstants.au3>
#include <WindowsConstants.au3>

HotKeySet("^+Z", "_Exit")


$maingui =guicreate("dot", 3, 3, @desktopwidth/2-1.5, @desktopheight/2-1.5, BitOR($WS_POPUP, $WS_BORDER), BitOR($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
guisetstate()
WinSetOnTop("dot", "", 1)
GUISetBkColor(0xffff33)

while 1
sleep(100)
WinSetOnTop("dot", "", 1)
$msg = guigetmsg()
Select
    Case $msg = $gui_event_close
        Exit
        EndSelect
WEnd

Func _Exit()
    Exit
EndFunc  ;==>_Exit

I wrote this awhile back, it worked on some FPS, didn't work on others. The only true way of making one to work in every game would be to have it draw directly from the video card...Also, I am tagging it with a "Works on My Machine" cert.


"The true measure of a man is how he treats someone who can do him absolutely no good."

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You could always just get a marker and draw a dot on your LCD/CRT... x_x

Edit: Or stick a piece of clear tape and draw on that.

Edited by omikron48

Share this post


Link to post
Share on other sites

#include<guiconstants.au3>
#include <WindowsConstants.au3>

HotKeySet("^+Z", "_Exit")


$maingui =guicreate("dot", 3, 3, @desktopwidth/2-1.5, @desktopheight/2-1.5, BitOR($WS_POPUP, $WS_BORDER), BitOR($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
guisetstate()
WinSetOnTop("dot", "", 1)
GUISetBkColor(0xffff33)

while 1
sleep(100)
WinSetOnTop("dot", "", 1)
$msg = guigetmsg()
Select
    Case $msg = $gui_event_close
        Exit
        EndSelect
WEnd

Func _Exit()
    Exit
EndFunc  ;==>_Exit

I wrote this awhile back, it worked on some FPS, didn't work on others. The only true way of making one to work in every game would be to have it draw directly from the video card...Also, I am tagging it with a "Works on My Machine" cert.

This is just what I was looking for, thank you! Works like a charm. :D

Share this post


Link to post
Share on other sites

Does this mean I can add a "Works on His Machine" certification?


"The true measure of a man is how he treats someone who can do him absolutely no good."

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