找回密码
 加入
搜索
查看: 2673|回复: 10

[AU3基础] 在某个窗体上用controsettext修改的数据不能用怎么办?

  [复制链接]
发表于 2010-8-7 11:29:23 | 显示全部楼层 |阅读模式
在某个窗体上用controsettext修改的数据不能用怎么办?

        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c7", $array[1])
;~         ControlCommand($glw, "", "WindowsForms10.COMBOBOX.app.0.218f99c2", "SelectString", $array[2])
        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c6", "0")
        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c5", "0")
;~         ControlCommand($glw, "", "WindowsForms10.COMBOBOX.app.0.218f99c1", "SelectString", $array[3])
    ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c4","")

        ControlSend($glw, "", "WindowsForms10.EDIT.app.0.218f99c4", $array[4])

        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c3", $array[5])
        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c2", "中国")
        ControlClick($glw,"","WindowsForms10.BUTTON.app.0.218f99c1","left")

如果都是controlsettext 然后点确定后` 那窗体就会提示`` 请使用合法途径输入数据
这样必须有个是controlsend的才管用``` 有没有办法解决这个问题?
发表于 2010-8-7 11:41:04 | 显示全部楼层
就做那个身份信息登记的吧,我用send处理
 楼主| 发表于 2010-8-7 11:43:30 | 显示全部楼层
send太慢```
发表于 2010-8-7 11:43:44 | 显示全部楼层
看着很迷糊,好像有其他的办法,虽然我不能给你解决,帮顶一下,
也很想知道。请后面来的高手给思路,,,
 楼主| 发表于 2010-8-7 11:45:56 | 显示全部楼层
我记得以前搜索好像` 。NET做出来的东西是UTF8的数据`` 不知道把字符串转换成UTF8会不会好`
 楼主| 发表于 2010-8-7 12:14:35 | 显示全部楼层
等待高手出现
发表于 2010-8-7 12:18:21 | 显示全部楼层
ControlClick 点击一下再ControlSetTex
 楼主| 发表于 2010-8-7 12:48:39 | 显示全部楼层
回复 7# afan


    试过不管用
 楼主| 发表于 2010-8-7 13:49:42 | 显示全部楼层
继续等待.ing
 楼主| 发表于 2010-8-7 23:08:38 | 显示全部楼层
暂时用stringmid 拆分  然后先controlsettext 8位 然后再controlsend 10位

只是快了一点点·
 楼主| 发表于 2010-8-7 23:09:43 | 显示全部楼层
ControlCommand($glw, "", "WindowsForms10.COMBOBOX.app.0.218f99c2", "SelectString", $array[2])

这个还不知道用什么方法实现·上边的不管用
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 22:57 , Processed in 0.080972 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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