Guest User

Untitled

a guest
Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ^]::
  2. WinGetActiveTitle, WindowName
  3. If InStr(WindowName, "PyCharm") {
  4. Send, ^s
  5. RegExMatch(WindowName, "[A-Z]:\\(([a-zA-Z0-9\.]){1,}(\\){0,}){1,}", FoundRegex)
  6. if FoundRegex {
  7. FormatTime, PCTimeFormatted
  8. ToRun := "git.exe commit -a -m " . """" . "Save and commit from Jake's AHK script [PC time/date " . PCTimeFormatted . "]" . """"
  9. RunWait, %ToRun%, %FoundRegex%, Hide
  10. Run, git push, %FoundRegex%, Hide
  11. } else {
  12. MsgBox, Could not find the folder.
  13. }
  14. } else {
  15. MsgBox, This script requires PyCharm to work.
  16. }
  17. Return
  18. ; Saves/commits/pushes work to Git.
Add Comment
Please, Sign In to add comment