一般情况下,Gridview是无法通过AutoIT Window Info来获取控件信息的,但是可以有折中的办法对Gridview中的字段赋值。
#include<array.au3> $handle= WinGetHandle("[Handle:0x0000000000260D3E]") ;MsgBox(0,"Test", $handle) ;WinActivate($handle) ;ControlClick($handle,"","WindowsForms10.Window.8.app.0.1f550a4_r15_ad129","left",2,100, 40) ;ControlClick($handle,"","WindowsForms10.Window.8.app.0.1f550a4_r15_ad129","left",2,200, 70) ;ControlSetText($handle,"","WindowsForms10.EDIT.app.0.1f550a4_r15_ad11","2013-12-30") ;MsgBox(0,"Test",ControlCommand($handle,"","WindowsForms10.EDIT.app.0.1f550a4_r15_ad11","GetSelected")) ;ControlClick($handle,"","WindowsForms10.Window.8.app.0.1f550a4_r15_ad129","left",2,100, 90) ControlClick($handle,"","WindowsForms10.Window.8.app.0.1f550a4_r15_ad129","left",2,200, 120) $str2= "0000-0000-0000-0000-02" & Random(10,99,1) ControlSetText($handle,"","WindowsForms10.EDIT.app.0.1f550a4_r15_ad11",$str2)