

IniWrite, %PosY%, %ScriptName%.ini, Main, PosY VVVVV EDIT HERE TO CHANGE HOTKEY ASSIGNMENT, KEEP UP TO PREVENT OVERFLOW #IfWinActive, ahk_class LaunchUnrealUWindowsClient VVVVV uncomment this line and line 120 to make hotkey only work when T:A is ACTIVE Gdip_DrawImage(pGraphics, a_Bitmap, this_X, this_Y, a_Width, a_Height) Gdip_DrawImage(pGraphics, x_Bitmap, this_X, this_Y, x_Width, x_Height) rem Gdip_DrawImage (pointer, source image, x,y to draw at, width, height) Gdip_FillRectangle(pGraphics, pBrush, 0, 0, nWidth, nHeight) UpdateLayeredWindow(hGui, hdc, OCX,OCY,nWidth,nHeight) NHeight := x_Height >= a_Height ? x_Height : a_Height NWidth := x_Width >= a_Width ? x_Width : a_Width X_Height := Gdip_GetImageHeight(x_Bitmap)Ī_Bitmap := Gdip_CreateBitmapFromFile(aFile)Ī_Height := Gdip_GetImageHeight(a_Bitmap) X_Bitmap := Gdip_CreateBitmapFromFile(xFile) XFile := "Crosshair.png" the image's default location is wherever this script is locatedĪFile := "Alternate.png" alternate crosshair VVVVV edit to change crosshair filenames. Menu, Tray, Add, Disable Crosshair, m_hide SCROLL TO LINES MARKED BY VVVVV / ^^^^^ FOR CUSTOMIZATION (hotkey on line 100) Thanks to tic (Tariq Porter) for his GDI+ Library Moving the overlay is possible with the windows key and the directional keys. So you will have to push the Home key to center the image to the current active window. On the first run it will create a ini file for you, but the settings will be off. You will also need 2 png files one named "Crosshair.png" and the other "Alternate.png" w/o the quotes. *You will have to run using the 32bit version of AHK as I couldnt get it to work with the 64bit version*įirst off is tic's (Tariq Porter) GDI+ Library from the following link and have it named "Gdip.ahk" w/o the quotes Hi I've been a long time user of AHK and thought I would like share a script I chopped together from evilc and TRIBES:ASCEND CROSSHAIR v2.2 by Klyith.įor the script to work you will need 3 files in the same directory as the script.
