zghkbl 发表于 2009-4-9 18:53:20

AU3写爱克吧手动输入卡号

http://www.yyznz.com/UploadFile/ik8.jpg
想实现卡号后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后输入如下窗口
http://www.yyznz.com/UploadFile/ik81.jpg
按下确定后
ControlSetText ( "登录", "", Edit1 "输入框点内容" )
接下来就不知道怎么写了
请大家帮帮忙
页: [1]
查看完整版本: AU3写爱克吧手动输入卡号