winget,var,list,Genymotion for personal use -
loop,%var%
{
vartemp:=var%A_Index%
wingettitle,title,ahk_id %vartemp%
stringtrimleft, title ,title, 30
stringlen,count1,title
StringGetPos, count2,title,) -
count3:=count1-(count1-count2)+1
if title=
continue
count++
id%count%:=vartemp
list=%list%%title%|
}
list=Select your device||%list%
Gui, Color, White
;메인 GUI
Gui, Add, DropDownList, x72 y10 w290? vddl,%list%
Gui, Add, Text, x15 y15 w50 h18 , Device
Gui, add, button, x15 y40 w30 h18 gbt,출력
Gui,Show,AutoSize,reven
Check1 = %ddl%
bt:
Gui,submit,nohide
MsgBox %Check1%
return
이런식으로 써놓긴 했습니다만..
계속 검색 해봤지만
Gui,submit,nohide
MsgBox, %ddl%
return