Toggling Colors On Overlay.

Get help with using AutoHotkey and its commands and hotkeys
Oobee
Posts: 1
Joined: 18 Oct 2018, 19:16

Toggling Colors On Overlay.

18 Oct 2018, 19:22

Alright, so I've found a script to suit my needs, but for the life of me I haven't been able to figure out how to change the color of the overlay when pressing the toggle key.

I'm basically wanting the box to be green when it's toggled on and red when it's toggled off.

Any tips or solutions someone could offer me? I'm fairly new to AHK so any help is greatly appreciated. Thanks in advance!

Code: Select all

CustomColor = 000000
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption
Gui, Color, %CustomColor%
Gui, Font, s16, Cambria bold
 
Gui, Add, Text, x50 y0 w190 BackgroundTrans gGuiMove 0x5
Gui, Add, Text, x50 y0 w190 BackgroundTrans cWhite, The Script is On.
WinSet, TransColor, %CustomColor% 200
 
Gui, Show
 
LButton::-
RButton::=
`::
suspend, toggle

if t:=!t
    GuiControl, Text, Static2, Combat Mode OFF.


Else
    GuiControl, Text, Static2, Combat Mode ON.
return
 
GuiMove: 
PostMessage, 0xA1, 2,,, A 
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Cerberus, gignu, Google [Bot], joefiesta, malcev and 68 guests