 
 
 ;other functionalities
+
+;autohotkey - reload this script
 !F12::Reload
-!M:: ;maximize active window
+
+;maximize active window
+!M::
 	ActiveHwnd := WinExist("A")
 	PostMessage 0x112, 0xf030 ;WM_SYSCOMMAND, SC_MAXIMIZE
 	return
-!R:: ;restore active window
+
+;restore active window
+!R::
 	ActiveHwnd := WinExist("A")
 	PostMessage 0x112, 0xf120 ;WM_SYSCOMMAND, SC_RESTORE
 	return
-!W:: ;minimize active window
-	if WinActive("WTW$") {
+
+;minimize active window
+!W::
+	if WinActive("WTW$")
+	{
 		WinHide
-	} else {
+	}
+	else
+	{
 		ActiveHwnd := WinExist("A")
 		PostMessage 0x112, 0xF020 ;WM_SYSCOMMAND, SC_MINIMIZE
 	}
 	return
+
+;always on top
 !A::WinSet, AlwaysOnTop, Toggle, A
-
-
 
 ;transparency
 #1::WinSet, Transparent, 0, A

		Run, "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
	}
	return


+^!N:: ;text editor - activate/run + fix screen position
	IfWinExist, ahk_class Vim
	{
		WinShow
		WinActivate
	} else {
		Run, "C:\Program Files (x86)\cygwin\bin\mintty.exe" --size "240`,90" --position "100`,45" --class "Vim" --exec "vim" --cmd 'cd /cygdrive/z', "C:/program files(x86)/cygwin/bin"
		WinWait, ahk_class Vim
	}
	WinMove, , , 100, 100, 1600, 900
	return




;windows powershell / cmd functionalities

		WinActivate
	}
	return

;putty @burza - activate/run + fix screen position
+^!]::
	Run, "C:\Program Files (x86)\putty\putty.exe" -load burza, "C:\Program Files (x86)"
	WinWaitActive ahk_class PuTTY
	WinMove, , , 100, 100
	return
^!]::
	if (!WinExist("ahk_class PuTTY"))
	{
		Run, "C:\Program Files (x86)\putty\putty.exe" -load burza, "C:\Program Files (x86)"
		WinWait ahk_class PuTTY
		WinMove, , , 100, 100
	}
	else
	{
		WinShow
		WinActivate
	}
	return

;cdisplayex - activate/run
^!/::FRun("CDisplayEx", "C:\Program Files (x86)\CDisplayEx\cdisplayex.exe", "Z:\")

;web browser - activate/run
^!;::
	IfWinExist, Mozilla Firefox
	{
		WinShow
