Code: Select all
runwait, powershell -Command "$DGVerifyWarn.Length -ne 0" | Clip,, Hide
DG_Enabled = %clipboard%
StringReplace, DG_Enabled, DG_Enabled, " ", , All
msgbox %DG_Enabled%
if (DG_Enabled = "False")
Gui,1:Add, Text, +Center Cred x10 y435 w130 h30 , DG_Disabled
if (DG_Enabled = "True")
Gui,1:Add, Text, +Center cLime x10 y435 w130 h30 , DG_Enabled
edit-- another thing i noticed is if i ouput to text doc, it has a return after the string. the msgbox shows up correct and the output to the text doc except for the return after it.