In case you got any idea about Class_CtlColors by @just me and ControlSend (ControlSendRaw) command.
I'm using that class to change the background and the text colors of an edit field.
My issue is that when I use ControlSend or ControlSendRaw command to send some numbers to that edit field both background and text colors back to the default theme and stay like that until the mouse hover it again.
I could use GuiControl, +Redraw, Edit to refresh the view but it flickers, I really prefer if it is just send the numbers without changing the colors if there is anyway to fix it.
Any help appreciated and thank you all.
The code can be something like this:
Code: Select all
#Include, Class_CtlColors.ahk
Gui, +HwndUI
Gui, Font, Bold
X := 0
Loop
{
Gui, Add, Button, xm+%X% ym w30 HwndBtn gSend, % A_Index - 1
If (A_Index = 10)
Break
X += 30
}
Gui, Add, Edit, xm ym+30 w300 +Center vEdit HwndEdit
CtlColors.Attach(Edit, "000000", "FEFF00")
Gui, Show
Return
GuiClose:
ExitApp
Send:
ControlSend, Edit1, % A_GuiControl, % "ahk_id " UI
;GuiControl, +Redraw, Edit
Return