Skip to content

Instantly share code, notes, and snippets.

@souravrax
Created December 12, 2022 19:08
Show Gist options
  • Save souravrax/2a0bfcfabc1d4aec20dfcc476da7d60d to your computer and use it in GitHub Desktop.
Save souravrax/2a0bfcfabc1d4aec20dfcc476da7d60d to your computer and use it in GitHub Desktop.
current_date = %A_DD%
Run, msedge https://adventofcode.com/2022/day/%current_date%/input
Run, cmd.exe,,,myCMD
WinWaitActive, ahk_pid %myCMD%
Send cd %HOME%/cp/aoc/2022 && mkdir day%current_date% && cd day%current_date%
Send {Enter}
Send touch input.txt sample.txt && code .
Send {Enter}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment