longfere.blogg.se

Gaming monitor with crosshair overlay
Gaming monitor with crosshair overlay





gaming monitor with crosshair overlay

WinMove ahk_id %ID1%, %RulerX%, % RulerY-20 create crosshair by moving 1/2 length of segment RulerX := RulerX - 5 offset the mouse pointer a bit RButton:: using hotkey instead of waiting for a key keeps the right click from calling other behavior during script Here's a favorite of mine for painting a crosshair on the screen. IniWrite, %progclass%, %ScriptName%.ini, Main, progclass IniWrite, %PosX%, %ScriptName%.ini, Main, PosX IniWrite, %PosY%, %ScriptName%.ini, Main, PosY WinSet, TransColor, White, %A_ScriptName% Gui, Add, Picture, w%ch_x% h%ch_y% AltSubmit, ch.gif IniRead, progclass, %ScriptName%.ini, Main, progclass, %progclass% IniRead, PosY, %ScriptName%.ini, Main, PosY, %PosY%

gaming monitor with crosshair overlay

IniRead, PosX, %ScriptName%.ini, Main, PosX, %PosX% PosX and PosY hold offset of cursor within window (From centre) WinGetPos, winx, winy, winw, winh, ahk_class %progclass%

#Gaming monitor with crosshair overlay .exe#

exe from filename to get name for INI file DO NOT EDIT BELOW HERE UNLESS YOU KNOW WHAT YOU ARE DOING! Custom crosshairs can be used, edit ch.gif and edit size vars below This is NOT a hack, it merely creates a transparent window Settings saved to INI file so you only have to set up once Crosshair will ONLY appear while designated app is active 4) Use WIN+Arrow keys to move crosshair to right place 3) Crosshair will appear but probably in wrong place 2) Hit WIN+Insert to designate that as app to overlay to 1) Run app to overlay crosshair to and make it active Default size is 9x9 but you can use any size. You need a transparent GIF to use as the crosshair image. This will add a crosshair over a selected window







Gaming monitor with crosshair overlay