Script to close application after opening PC
Script to close application after opening PC
Which would be the script to close an application that is opened through the Start up, exactly 4 minutes after the computer has been turned on? It is this a Skype window. thanks
Re: Script to close application after opening PC
Perhaps, you can use a bat file ...
Greetings!
Code: Select all
REM pause for 240 seconds:
timeout /t 240
REM Kill the program:
taskkill /im ProgramName /f
Everything is possible!
Re: Script to close application after opening PC
but is it possible as a autorun ahk script?
Re: Script to close application after opening PC
Code: Select all
#Persistent
#SingleInstance Ignore
SetTimer, check_skype, 1000
return
check_skype:
Process, Exist, skype.exe
if(errorlevel!=0)
{
Process, close, skype.exe
RunWait, %comspec% /c taskkill /f /im skype.exe, , hide
ExitApp
}
elapse := A_TickCount/1000/60
if (elapse>5) ;pc was already powered-on for at least 5 minutes
ExitApp
return
Re: Script to close application after opening PC
thanks for the script but this scripts is killing my whole Skype and I need just to close a second Skype that I open at the Startup in order to keep my Skype online. Could you tweak that?
Re: Script to close application after opening PC
I was able to do it! Thank you
Re: Script to close application after opening PC
Why don't you just turn off auto-start within Skype?
Who is online
Users browsing this forum: GEOVAN and 187 guests