[AHK-] Gui中的3個Radio兩兩一組

看板EzHotKey作者 (漫步在雲端)時間14年前 (2011/08/11 20:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
請問大家 我想要一次能圈選兩個該怎麼做呢? 能夠倆倆為一組的 如果圈選到第三個的話 第一個圈選到的就取消圈選 譬如說第一次圈選"你" 第二次圈選"我" 但如果隨後又點選到"他"那個選項的話 則"你"的圈選失效 ------------------------------------------------------------- Gui, Add, Radio, x31 y24 w100 h30 v1 , 你 Gui, Add, Radio, x31 y64 w100 h30 v2 , 我 Gui, Add, Radio, x31 y104 w100 h30 v3 , 他 Gui, Show, x137 y144 h379 w480, test window Return GuiClose: ExitApp ^1:: GuiControlGet,v1 GuiControlGet,v2 GuiControlGet,v3 if (v1=1 and v2=1) { msgbox,1+2 } else if (v1=1 and v3=1) { msgbox,1+3 } else if (v2=1 and v3=1) { msgbox,2+3 } else { msgbox,少選一組 } return ------------------------------------------------------------- 先謝謝各位了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.37.12.166
文章代碼(AID): #1EGymdXO (EzHotKey)