Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^]::
- WinGetActiveTitle, WindowName
- If InStr(WindowName, "PyCharm") {
- Send, ^s
- RegExMatch(WindowName, "[A-Z]:\\(([a-zA-Z0-9\.]){1,}(\\){0,}){1,}", FoundRegex)
- if FoundRegex {
- FormatTime, PCTimeFormatted
- ToRun := "git.exe commit -a -m " . """" . "Save and commit from Jake's AHK script [PC time/date " . PCTimeFormatted . "]" . """"
- RunWait, %ToRun%, %FoundRegex%, Hide
- Run, git push, %FoundRegex%, Hide
- } else {
- MsgBox, Could not find the folder.
- }
- } else {
- MsgBox, This script requires PyCharm to work.
- }
- Return
- ; Saves/commits/pushes work to Git.
Add Comment
Please, Sign In to add comment