找回密码
 加入
搜索
查看: 1482|回复: 6

有人知道怎么读出$吗

[复制链接]
发表于 2009-9-15 20:50:28 | 显示全部楼层 |阅读模式
本帖最后由 netegg 于 2009-9-16 01:14 编辑

如题
大体情况,比如建立一个输入框,$input = guictrlcreate("", $L,$T, $W, $H),现在在输入框中输入$input,如何读取$input的值为“$input”字符串
发表于 2009-9-15 21:42:49 | 显示全部楼层
本帖最后由 顽固不化 于 2009-9-15 21:46 编辑

很不明白~~~~~~~
#include <GUIConstantsEx.au3>
GUICreate("",200,200)
$input = GUICtrlCreateInput("$input", 10,10);$T, $W, $H),
$d=GUICtrlCreateButton("dddd",10,50)
GUISetState()
While 1
        $nmsg=GUIGetMsg()
        Switch $nmsg
                case $GUI_EVENT_CLOSE
                        Exit
                Case $d
                        MsgBox(0,0,GUICtrlRead($input))
        EndSwitch                
        WEnd
发表于 2009-9-15 21:50:04 | 显示全部楼层
你输入“$input” 读到的不就是 “$input”字符串吗?
 楼主| 发表于 2009-9-15 23:32:04 | 显示全部楼层
本帖最后由 netegg 于 2009-9-15 23:47 编辑

读出来的不带$,先不管为什么了,好像可以了,谢了
发表于 2009-9-15 23:33:33 | 显示全部楼层
不会吧... 你试试2L
 楼主| 发表于 2009-9-16 01:14:10 | 显示全部楼层
行了,知道怎么回事,拆字符串拆错了,多谢
发表于 2010-5-27 17:37:56 | 显示全部楼层
一头雾水 能看到那个代码
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-6 12:34 , Processed in 0.072674 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表