Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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
Posted

#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
Posted

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

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
×
×
  • Create New...