 GroupAdd, adobe, ahk_class PSViewC
 GroupAdd, adobe, ahk_class Photoshop
 GroupAdd, adobe, Photoshop
-return
-
+
+;fun functions
+;activate/run
+FRun(window, path, folder)
+{
+	if (!window or !WinExist(window))
+	{
+		Run, %path%, %folder%
+	}
+	else
+	{
+		WinShow
+		WinActivate
+	}
+	return
+}
+
+;create random file name
 RandomFileName()
 {
 	FormatTime, fileName,, yyyyMMdd_HHmmss_

	}
	return



 +PrintScreen::MakeScreen("-g")
 !PrintScreen::MakeScreen("-r active-window --shift -8,-8,+16,+16 --force-gui")
!#PrintScreen::MakeScreen("-r active-monitor")
 #PrintScreen::MakeScreen("-r all-monitors")



;explorer
#IfWinActive ahk_class CabinetWClass
	;new folder

#IfWinActive
#IfWinActive ACDSee
	WheelDown::
		if (A_TickCount - OldTicks >= 80)
		{
			Send, {WheelDown}
			OldTicks := A_TickCount
		}
