![]() ![]() MainFunc ( ) Func MainFunc ( ) If ProcessExists ( "NPE.exe" ) = 0 Then ShellExecute ( "C:\temp\NPE.exe" ) EndIf Sleep ( 5000 ) WinWait ( "Norton Power Eraser" ) WinActivate ( "Norton Power Eraser" ) WinWaitActive ( "Norton Power Eraser" ) Sleep ( 5000 ) If WinExists ( "Norton Power Eraser" ) Then WinActivate ( "Norton Power Eraser" ) Local $hWindow = WinGetHandle ( "Norton Power Eraser" ) If Not $hWindow Then Return ConsoleWrite ( "Window handle ERR" & ) ConsoleWrite ( "Window handle OK" & ) Create UI Automation object Local $oUIAutomation = ObjCreateInterface ( $sCLSID_CUIAutomation, $sIID_IUIAutomation, $dtagIUIAutomation ) If Not IsObj ( $oUIAutomation ) Then Return ConsoleWrite ( "UI Automation object ERR" & ) ConsoleWrite ( "UI Automation object OK" & ) Get UI Automation element from window handle Local $pWindow, $oWindow $oUIAutomation. Expand collapse popup #include #RequireAdmin ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |