回复 1# www1970
我也是新手。你这样选择不行的话,我换个思路,就是获取listview选中的文本,直接输入。你试试看Run("C:\Program Files\TrueCrypt\truecrypt.exe")
WinWaitActive("TrueCrypt","Select D&evice...")
ControlClick("TrueCrypt","Select D&evice...","Select D&evice...")
WinWait("Select a Partition or Device")
$itm=ControlListView("Select a Partition or Device","","SysListView321","GetItemCount")
$Device= ControlListView("Select a Partition or Device","","SysListView321","GetText",$itm-1)
ControlClick("Select a Partition or Device","","Cancel")
WinWaitActive("TrueCrypt","Select D&evice...")
ControlSetText("TrueCrypt","Select D&evice...","Edit1",$Device)
|