作者cilihuala (嘻哩花拉)
站内EzHotKey
标题[AHK-] 请问如何抓取GUI内edit的值
时间Tue Jun 21 21:11:05 2011
我要执行的一些动作,因为每次变数不一样
所以想在GUI的每个edit内输入值,按下button後就将这些值存入各别变数内
当成後续动作所需的参数,可是edit内的值一直无法取出
请问哪边需要修改,谢谢!
例如:
预设变数vdir = D:\Program Files
当vdir在edit栏位改成C:\Program Files後
跳出的magbox就是已经修改过的vdir
以下为我的程式:
vdir = D:\Program Files
Gui, Add, Edit, x16 y20 w250 h30 , %vdir%
Gui, Add, Button, x16 y60 w100 h30 , OK
Gui, Show, , 资料夹路径、档案名称
return
ButtonOK:
vdir = %vdir%
Msgbox, %vdir%
return
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.121.25.223
1F:→ frank38:GuiControlGet, path,,Edit1 MsgBox, %path% 06/22 08:37
2F:推 love228224:谢谢楼上这位大大,你解决了我也有的疑惑! 08/23 20:16