delphi 模似键盘输入又一方法


本文整理自网络,侵删。

 //获取窗口句柄
EnumChildWindows(Hwindow,@LoginEnumWindowsProc,LongInt(self));

for i:=0 to chklst_Uid.Count-1 do
begin
if chklst_Uid.Checked[i] then
begin
SplitString(Trim(chklst_Uid.Items.Strings[i]),'-',a,b);
UidLogin:=Trim(a);
UidPassword:=Trim(b);
SendMessage(HLoginNum, WM_SETTEXT, 180, Integer(PChar(UidLogin)));
for j:=1 to 6 do
begin
mychar:=MidStr(UidPassword,j,1);
SendMessage(Hpass,WM_CHAR,Ord(mychar[1]),0);
end;

chklst_Uid.Checked[i]:=False;
lbl_LoginUid.Caption:=UidPassword;
Break;
end;
end;

文章来源于《傻猫网络日志》 http://www.samool.com/archives/11128/

相关阅读 >>

怎样在Delphi中屏蔽flash控件的右键弹出菜单

Delphi2009之timage

Delphi dbgrideh footer的设置和使用

Delphi xe 遍历指定数据库,清空各表记录

Delphi写文本文件

Delphi unicode转汉字 ,支持自动过滤非 unicode编码

Delphi 用tidsmip和tidmessage发送邮件

Delphi 几个实用的html解析函数

Delphi 实现软件版验证码

Delphi 比较两个日期是否大于n天

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...