本帖最后由 zjg2003 于 2009-11-18 21:08 编辑
现在用的是万象2008标准版,有公安插件,刷卡时身份证号和姓名这两处都不能手动输入,我用以下代码测试没用,请高人帮忙看下哪出的问题:#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$title = "2008_wanxiang"
if WinExists($title) Then Exit
AutoItWinSetTitle($title)
HotKeySet ("^!{F12}","_ext") ;退出程序
HotKeySet ("^!{F1}","_edt") ;开启手动输入
While 1
Sleep(500)
WEnd
Func _ext()
Exit
EndFunc
Func _edt()
ControlCommand ( "扫描或机读身份证", "身份证号", "TEdit2", "IsEnabled", "" )
ControlCommand ( "扫描或机读身份证", "姓名", "TEdit1", "IsEnabled", "" )
EndFunc
|