Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
issNul hat geschrieben
Also ohne dass da ein Tool (von mir aus auch ne batch) die ganze Zeit im Hintergrund läuft und nach der exe scannt
/*
Process Waiter
Coded by IsNull
Date: 16.03.07
*/
#NoEnv
SendMode Input
setbatchlines -1
;###############################################################################
;///////////////////////// Hard Path's /////////////////////////////////////////
iniloc = %A_scriptdir%\main.ini
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;//////////////////// Autoexecute Section: /////////////////////////////////////
ifnotexist, %iniloc%
{
GoSub,Sub_ask_Target
GoSub,Sub_ask_Run
}
loop
{
IniRead, readed, %INIloc%, Main, Target
if readed =
{
Msgbox The name of the Exe, who i should scan is blank! Maby your ini file is corrupted?
exitApp
}
Process, Exist, %readed%
if ErrorLevel = 0
{
msgbox Process not found. So, I run it now!
IniRead, readed_2, %INIloc%, Main, Run
ifnotexist, %readed_2%
{
Msgbox The Path from the "To-run-File" does not exist!
GoSub, Sub_ask_Run
}
Else
{
run, %readed_2%
}
}
Else
{
msgbox Process found!! PID: %ErrorLevel%
break
}
sleep, 2000 ;Time betwen scan periods. (2sec)
}
;//////////////////////////////End of Autoexecute///////////////////////////////
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sub_ask_Target:
InputBox, entered, Wait for Process, Enter the Name of the Process:`n Like "firefox.exe"
if ErrorLevel
{
MsgBox Abort.
Exitapp
}
if entered =
{
msgbox You entered nothing! So, Try Again...
GoSub, Sub_ask_Target
}
IniWrite, %entered%, %iniloc%, Main, Target
return
;###############################################################################
Sub_ask_Run:
InputBox, entered_2, Wait for Process, Enter the full path of the exe, who should be run: `n Like "C:\Programme\firefox.exe"
if ErrorLevel
{
MsgBox Abort.
Exitapp
}
ifnotexist, %entered_2%
{
msgbox You entered a Path who does not exist. Try again...
GoSub, Sub_ask_Run
}
IniWrite, %entered_2%, %iniloc%, Main, Run
return
;###############################################################################
We use essential cookies to make this site work, and optional cookies to enhance your experience.