There are several GUI working within a single WIN(GUI), and there are scripts in the GUI including several LISTVIEWs that use texts of various colors.
However, if you open 2 or 3 guy windows in the parent GUI window with the <Ctrl+2> key, then the scripts stop working.
I have been trying to solve this problem for two weeks, but it is out of my reach.
Please help me.
Why has this problem occurred and how can I solve it?
#NoEnv #SingleInstance Force #Persistent #Include LVA.ahk ;http://www.autohotke...tview-and-more/ guiz=10 Gui, +Resize +lastfound Gui, Show, x0 y0 h730 w1265, TEST LV & EXIT KEY : <Ctrl+3> ! Gui_1_ID := WinExist() return GuiClose: gui, destroy ExitApp DDT: guiz++ cx:=100,cy:=100,cw:=600,ch:=500, Gui, _%guiz%: Font, s8, malgun gothic Gui, _%guiz%: Add, Listview, x0 y20 w580 h455 vHLV +HDR AltSubmit +LV0x2, A|B|C|D|E|F|G|H Gui, _%guiz%: default LV_ModifyCol(1, 80) LV_ModifyCol(2, 80) LV_ModifyCol(3, 80) LV_ModifyCol(4, 80) LV_ModifyCol(5, 80) Gui, _%guiz%: Show, x%cx% y%cy% h%ch% w%cw%, try! Gui, _%guiz%: +Resize +LastFound ID:=WinExist() DllCall("SetParent", "uint", ID, "uint", Gui_1_ID) LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4") LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4") LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4") LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4") LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4") LV_Add("","THIS","Test","Test","Test","Test") LVA_ListViewAdd("HLV", "AR ac cbsilver") LVA_SetCell("HLV", 2, 1, "red") LVA_SetCell("HLV", 4, 1, "", "0x00F00A") LVA_SetCell("HLV", 5, 1, "", "0x0000FF") LVA_SetCell("HLV", 6, 0, "0xFFFFFF") OnMessage("0x4E", "LVA_OnNotify") return ^2:: gosub,DDT return ^3:: ExitApp return