I ask a question about Gui edit. I want to write a autohotkey program to show the characters that I selected. For example I want to show 12345 string that I selected,but when I press show key on the menu the blue selected background will disappear,and the program can not catch the characters.
I dont know how to solve this problem.who can help me to solve it,so the program can msgbox show 12345 that I selected when I press the [see] button.
thanks a lot
Johnson Yan
Code: Select all
Gui, winprogram: New
gui winprogram:+alwaysontop
gui winprogram:add,Edit,x5 y5 w150 r6 vwinproeditstr,
gui winprogram:add,button,x5 y125 gshowdo,[see]
Gui, winprogram:Show,w300 h150
return
Showdo:
gui,submit,nohide
;---?----
;---?----
;---?----
;---?----
;---?----
;---?----
MsgBox,the words that you select is {12345}
return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]