Sign in to follow this
Followers
0
Script not executing when added to scheduled task
By
Mian, in Windows Server
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By asiawatcher
hi below i got one script i made which runs audacity starts a recording and ends it at specific times
when i run the script even if it isn't the time to start audacity and sits idle on taskbar the pc fan gets very loud, when i close the script it comes back to normal
why this happens ? anything wrong with my code ?? cheers
#include <INet.au3> #include <Array.au3> #include <WinAPIFiles.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <string.au3> #include <FTPEx.au3> #include <ClipBoard.au3> #include <date.au3> #include <ProgressConstants.au3> #include <IE.au3> #Include <Constants.au3> #Include <INET.au3> #include <SendMessage.au3> #include <File.au3> #include <String.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> #include <Misc.au3> #include <FileConstants.au3> #include <WinAPI.au3> while 1 if @HOUR = '11' And @MIN = '00' Then Run("C:\Program Files (x86)\Audacity\audacity.exe", "", @SW_MAXIMIZE) SLEEP(2000) if ProcessExists("audacity.exe") Then winactivate("Audacity") EndIf Send("r") ;;KREVATI Sleep(1000 * 60) endif if @HOUR = '23' And @MIN = '00' Then if ProcessExists("audacity.exe") Then winactivate("Audacity") EndIf Send("s") Sleep(1000 * 60) EndIf wend
-
By ergo
CronToTime.au3 UDF converts a Unix Cron expression into a DateTime string.
On Unix systems a Cron expression made of five fields separated by blanks/tabs followed by a shell command to execute.
e.g. 15-30 2,3,4,5 29 1-12 0-6 reboot
+------------- minute (0 - 59)
¦ +------------- hour (0 - 23)
¦ ¦ +------------- day of month (1 - 31)
¦ ¦ ¦ +------------- month (1 - 12)
¦ ¦ ¦ ¦ +------------- day of week (0 - 6) (Sunday to Saturday, 7 is also Sunday)
¦ ¦ ¦ ¦ ¦ +------------- some shell command
¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
* * * * * reboot
(In this UDF the 6th field has no meaning and no influence on the result).
For more information see https://en.wikipedia.org/wiki/Cron
Finds the next event of the specified Cron expression, starting from current UTC/GMT.
_pce_findNextTimeUTC($sCronExp [, $bForwardSearch = True [, $minutesOffset = 0]]])
Finds the next event of the specified Cron expression. If $sDateTime is not set, local time will be used.
_pce_findNextTime($sCronExp [, $bForwardSearch = True [, $sDateTime = "" [, $minutesOffset = 0]]])
Convert names in usable Cron expression values. e.g. "15-30 2,3,4,5 29 July-December Mo-Su" to "15-30 2,3,4,5 29 7-12 1-7"
_pce_convertNames( $sCronExp )
See the include for details.
New version on GitHub: https://github.com/seizu/CronToTime
-
By WoodGrain
Hi guys,
I've written a script that will move my mouse to a location on the screen whenever my remote access software becomes active, the problem I have is that as soon as the remote access software becomes active it appears to capture the mouse and keyboard so nothing happens when I use MouseMove().
Is there any way around this?
Thanks!
-
By ademon
Hi. I can open the editor with out problems but I can not compile because it is placed on another partition diferent from C.
Can you provide an update of this bug?
-