找回密码
 加入
搜索
查看: 1579|回复: 0

AU3写爱克吧手动输入卡号

[复制链接]
发表于 2009-4-9 18:53:20 | 显示全部楼层 |阅读模式

想实现卡号后Edit1控件为激活壮态
由于ControlEnable("登录", "", "Edit1")无法更改壮态
打算用载入窗口$Form1 后采用ControlSetText ( "登录", "", Edit1 "测试" )实现

现已写好代码如下:
Break(0)
#NoTrayIcon
HotKeySet("^e", "CtrlE")
HotKeySet("^q", "CtrlQ")

While 1
    Sleep(1000)
WEnd
Exit

Func CtrlE()
send("^n", "Ctrl")
WinActive ( "登陆" , "" )
$Form1 = GUICreate("请输入卡号:", 199, 38, 323, 213)
GUISetBkColor(0xC0C0C0)
GUICtrlCreateInput("", 8, 8, 121, 21)
$Button1 = GUICtrlCreateButton("确定", 144, 8, 51, 25, 0)
ControlClick("请输入卡号:", "", "Edit1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

ControlEnable("登录", "", "Edit5")
EndFunc

Func CtrlQ()
    Exit
EndFunc
具体情况是按下Ctrl+E后输入如下窗口

按下确定后
ControlSetText ( "登录", "", Edit1 "输入框点内容" )
接下来就不知道怎么写了
请大家帮帮忙
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 07:19 , Processed in 0.072202 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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