Skip to content

Commit

Permalink
Update idm.ahk
Browse files Browse the repository at this point in the history
Increased script efficiency
  • Loading branch information
bhavyagosai authored Nov 12, 2020
1 parent 8c00e41 commit 5546f26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions idm.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;Enter your IDM exe file directory here if it don't match the initial directory given below.
Run, C:\Program Files (x86)\Internet Download Manager\IDMan.exe

;Set sleep time manually (milliseconds) according to your boot time of IDM exe at startup if this don't already work for you.
;Recommend more than 1000 ms. Can be increased if IDM window still don't close on its own.
Sleep, 1500
WinWait, ahk_class #32770

WinActivate, ahk_class #32770 ahk_exe IDMan.exe
WinHide, ahk_class #32770 ahk_exe IDMan.exe
ExitApp

Expand Down

0 comments on commit 5546f26

Please sign in to comment.