diff --git a/KeepWindowsAwake/NoSleep.vbs b/KeepWindowsAwake/NoSleep.vbs index c8ae1a7..451dfdd 100644 --- a/KeepWindowsAwake/NoSleep.vbs +++ b/KeepWindowsAwake/NoSleep.vbs @@ -1,7 +1,7 @@ Dim objShell, lngMinutes, boolValid Set objShell = CreateObject("WScript.Shell") -lngMinutes = InputBox("How long you want to keep your system awake?" & Replace(Space(5), " ", vbNewLine) & "Enter minutes:", "Awake Duration") 'we are replacing 5 spaces with new lines +lngMinutes = eval(InputBox("How long you want to keep your system awake?" & Replace(Space(5), " ", vbNewLine) & "Enter minutes:", "Awake Duration")) 'we are replacing 5 spaces with new lines If lngMinutes = vbEmpty Then 'If the user opts to cancel the process 'Do nothing Else