Created
March 23, 2018 17:35
-
-
Save sl5net/e329b30da63fe76a841da9933ff0473f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Indentation_style: https://de.wikipedia.org/wiki/Einrückungsstil#SL5small-Stil | |
#Include *i %A_ScriptDir%\inc_ahk\init_global.init.inc.ahk | |
; text sugestion for your commit: this commits are fully automatic produced by script automatic-git-push-in-intellij.ahk | |
SetTitleMatchMode,2 | |
feedbackMsgBoxCloseAllWindows() | |
;feedbackMsgBox(A_ScriptName,"18-01-06_16-26") | |
; htdocs master - [C:\xampp\apps\wordpress\htdocs] - ...\README.md [htdocs] - PhpStorm ahk_class SunAwtFrame ; mouseWindowTitle=0x1f0996 ; | |
; ~^k:: | |
while(true){ | |
WinGetActiveTitle,at | |
if(!InStr(at,"[C:\xampp\apps\wordpress\htdocs]") || A_TimeIdle < 3000){ | |
Sleep,3000 | |
continue | |
} | |
;MsgBox,(at=%at%) | |
Suspend,on | |
send,^k | |
;ControlSend,,^k,ahk_class SunAwtDialog | |
WinWait,Nothing to Commit ahk_class SunAwtDialog,,2 | |
IfWinExist,Nothing to Commit ahk_class SunAwtDialog | |
{ | |
Suspend,off | |
;Send,{enter} | |
WinClose,Nothing to Commit ahk_class SunAwtDialog | |
WinWaitNotActive,% at ; lets wait for some window name change. so prievent endless loop if user is not working or out | |
Sleep,3000 | |
} | |
; https://stackoverflow.com/questions/36106918/how-do-i-do-an-automatic-git-push-in-intellij-15 | |
Last_A_This:=A_ThisFunc . A_ThisLabel | |
lll(A_LineNumber, A_LineFile, Last_A_This) | |
ToolTip2sec(A_LineNumber . " " . A_ScriptName . " `n WinWaitActive,Commit " ) | |
WinWaitActive,Commit Changes ahk_class SunAwtDialog,,3 ; mouseWindowTitle=0x40075e ; | |
Sleep,300 | |
; Ctrl+Alt+K that commits and pushes for people that do trunk based development only? | |
send,{CtrlDown}{Altdown}k{Ctrlup}{Altup} | |
send,{ShiftUp} ; {Ctrlup}{Altup} | |
ToolTip2sec(A_LineNumber . " " . A_ScriptName . " `n WinWaitActive,Push " ) | |
WinWaitActive,Push Commits ahk_class SunAwtDialog,,9 ; mouseWindowTitle=0x2e086c ; | |
IfWinExist,Commit Changes ahk_class SunAwtDialog ; thats error message. nothing todo | |
{ | |
; thats wrong. lets try it later | |
WinClose,Commit Changes ahk_class SunAwtDialog ; mouseWindowTitle=0x40075e ; | |
Suspend,off | |
continue | |
} | |
IfWinActive,Push Commits ahk_class SunAwtDialog,,9 ; mouseWindowTitle=0x2e086c ; | |
{ | |
; thats wrong. lets try it later | |
WinClose,Push Commits ahk_class SunAwtDialog | |
Suspend,off | |
continue | |
} | |
Sleep,200 | |
send,{Altdown}p{Altup} ; push | |
Suspend,off | |
;feedbackMsgBox(A_ScriptName,A_ScriptName) | |
;Msgbox,makro for git push in IntelliJ finished `n developed:SL5net, 23.03.2018 17:11`n (%A_LineFile%~%A_LineNumber%) | |
Sleep,3000 | |
ToolTip2sec(A_LineNumber . " " . A_ScriptName . " `n WinWaitNotActive, " at ) | |
;<<<<<<<< Wait <<<< 180323182654 <<<< 23.03.2018 18:26:54 <<<< | |
WinWaitNotActive,% at ; lets wait for some window name change. so prievent endless loop if user is not working or out | |
while(A_TimeIdle >= 3000){ | |
Sleep,1000 | |
} | |
;>>>>>>>> Wait >>>> 180323182701 >>>> 23.03.2018 18:27:01 >>>> | |
;Msgbox,END makro for git push in IntelliJ finished `n developed:SL5net, 23.03.2018 17:11`n (%A_LineFile%~%A_LineNumber%) | |
} | |
#Include *i %A_ScriptDir%\inc_ahk\functions_global.inc.ahk | |
;#Include %A_ScriptDir%\inc_ahk\copy2clipBoard.functions.inc.ahk | |
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
;~ subroutinen beispielsweise m�sen ans Dateiende | |
#Include *i %A_ScriptDir%\inc_ahk\functions_global_dateiende.inc.ahk | |
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
#Include *i %A_ScriptDir%\inc_ahk\UPDATEDSCRIPT_global.inc.ahk | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment