410521a 发表于 2010-8-7 11:29:23

在某个窗体上用controsettext修改的数据不能用怎么办?

在某个窗体上用controsettext修改的数据不能用怎么办?

        ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c7", $array)
;~         ControlCommand($glw, "", "WindowsForms10.COMBOBOX.app.0.218f99c2", "SelectString", $array)
        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)
    ControlSetText($glw, "", "WindowsForms10.EDIT.app.0.218f99c4","")

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

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

如果都是controlsettext 然后点确定后` 那窗体就会提示`` 请使用合法途径输入数据
这样必须有个是controlsend的才管用``` 有没有办法解决这个问题?

星驰周 发表于 2010-8-7 11:41:04

就做那个身份信息登记的吧,我用send处理

410521a 发表于 2010-8-7 11:43:30

send太慢```

wsfda 发表于 2010-8-7 11:43:44

看着很迷糊,好像有其他的办法,虽然我不能给你解决,帮顶一下,
也很想知道。请后面来的高手给思路,,,

410521a 发表于 2010-8-7 11:45:56

我记得以前搜索好像` 。NET做出来的东西是UTF8的数据`` 不知道把字符串转换成UTF8会不会好`

410521a 发表于 2010-8-7 12:14:35

等待高手出现

afan 发表于 2010-8-7 12:18:21

ControlClick 点击一下再ControlSetTex

410521a 发表于 2010-8-7 12:48:39

回复 7# afan


    试过不管用

410521a 发表于 2010-8-7 13:49:42

继续等待.ing

410521a 发表于 2010-8-7 23:08:38

暂时用stringmid 拆分然后先controlsettext 8位 然后再controlsend 10位

只是快了一点点·

410521a 发表于 2010-8-7 23:09:43

ControlCommand($glw, "", "WindowsForms10.COMBOBOX.app.0.218f99c2", "SelectString", $array)

这个还不知道用什么方法实现·上边的不管用
页: [1]
查看完整版本: 在某个窗体上用controsettext修改的数据不能用怎么办?