[英]Displaying value in an Edit/UpDown buddy in AutoHotKey
無論如何,當翻轉時,是否有文本選擇的“單詞”顯示在微調器UI元素中?
只要用戶輸入向上或向下鍵,就會調用gosub顯示。 到目前為止,盡管我只找到了顯示索引而不是顯示值的方法...
#a::
words:= ["in","the","beginning","was","the","word"]
Gui, Add, Edit, w111 R1 vw, words3
Gui, Add, UpDown, w22 gdisplay vn Range1-6, 3
Gui, Show, x933 y0, test word display
return
display:
UD:=n
word:=words[UD]
n:=word
;Gui, Submit, NoHide
return
如何使用ListBox代替:
Gui, Add, ListBox, R1 vMyList -VScroll, in|the|beginning|was|the|command|line
Gui, Add, UpDown, gDisplay
Gui, Show, , test word display
Exit
Display:
Gui, Submit, NoHide
; MsgBox % MyList
return
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.