piriform.defraggler/boottimedefrag.au3
2013-05-07 08:47:23 +02:00

28 lines
1.6 KiB
AutoIt
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#region ---Au3Recorder generated code Start (v3.3.7.0) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run($CmdLine[1])
_WinWaitActivate("Piriform Defraggler","")
Send("{ALTDOWN}s{ALTUP}{DOWN}{DOWN}{DOWN}{RIGHT}{DOWN}{DOWN}{ENTER}")
_WinWaitActivate("Boot Time Defrag","")
Send("{RIGHT}{ENTER}")
_WinWaitActivate("Piriform Defraggler","")
Send("{ALTDOWN}{F4}{ALTUP}")
#endregion --- Au3Recorder generated code End ---