-
Similar Content
-
By ces1a
;This script will calculate the Nth weekday of any month. Just replace the numbers for $Year, $Month, $Week, and $Weekday with numbers of your choice,
;Some lines are not really needed but are there to allow testing and proofing. It is based on Excel formula.
#include <Date.au3>
Global $tmp, $Year = "2019", $Month = "2", $Week = 2, $WeekDay = 4
Global $aNth = StringSplit("First ,Second ,Third ,Fourth ,Fifth ", ",")
Func GetWeekDay($Week, $Year, $Month, $WeekDay)
Local $LastDay = 8 - $WeekDay, $EndDay = $Week * 7 + 1
$Month = $Month > 10 ? $Month : "0" & $Month
Local $iWday = _DateToDayOfWeek($YEAR, $Month, $LastDay)
Return $YEAR & "/" & $Month & "/" & $EndDay - $iWday
EndFunc
MsgBox(0,'',$aNth[$Week] & _DateDayOfWeek($WeekDay) & " of " & _DateToMonth($Month) & _
" " & $Year & " is " & GetWeekDay($Week, $Year, $Month, $WeekDay) )
GetNthWeekDay.au3
-
By AnonymousX
So I just got a new computer, and instantly went and installed Autoit onto it. I selected run script as default action when clicking on an au3 file, however every time I do this it opens the script in the editor. I can from there run the script no problem.
I've tried reinstalling and checking the settings by hitting "Ctrl+1" and have confirmed it is set to run, but yet it just continues to open in the editor.
Any ideas why this is happening or how to solve?
New system is windows 10, old was windows 7
-
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?
-
By lenclstr746
Hi guys,
Some functions of my script are running slowly. Very slow. What is the reason?
My Code:
<snip>