1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| Dim $SelItem
Dim $Menu
if NOT WinExists ("Services de composants") then
ShellExecute("C:\WINDOWS\system32\Com\comexp.msc")
Endif
WinActivate ("Services de composants")
WinWaitActive("Services de composants")
sleep(200)
ControlTreeView ("", "", "SysTreeView321", "collapse", "Racine de la console")
sleep(100)
ControlTreeView ("", "", "SysTreeView321", "Select", "Racine de la console|Services de composants")
ControlTreeView ("", "", "SysTreeView321", "expand", "Racine de la console|Services de composants")
sleep(100)
ControlTreeView ("", "", "SysTreeView321", "Select", "Racine de la console|Services de composants|Ordinateurs")
ControlTreeView ("", "", "SysTreeView321", "expand", "Racine de la console|Services de composants|Ordinateurs")
sleep(100)
ControlTreeView ("", "", "SysTreeView321", "Select", "Racine de la console|Services de composants|Ordinateurs|Poste de travail")
ControlTreeView ("", "", "SysTreeView321", "expand", "Racine de la console|Services de composants|Ordinateurs|Poste de travail")
sleep(100)
ControlTreeView ("", "", "SysTreeView321", "Select", "Racine de la console|Services de composants|Ordinateurs|Poste de travail|Applications COM+")
ControlTreeView ("", "", "SysTreeView321", "expand", "Racine de la console|Services de composants|Ordinateurs|Poste de travail|Applications COM+")
sleep(100)
$SelItem = ControlListView ("", "", "SysListView321", "FindItem", "NomDeMonComposantCom+")
sleep(200)
ControlListView ("", "", "SysListView321", "Select", $SelItem)
sleep(200)
ControlFocus ( "", "", "SysListView321" )
sleep(200)
ControlListView ("", "", "SysListView321","ViewChange", "details")
sleep(200)
ControlClick("", "", "SysListView321", "menu", 1, 42, 96)
send("{DOWN 3}")
send("{ENTER}")
WinClose("Services de composants") |
Partager