Code: Select all
^+u::
ThemeColor := "Default"
;;Getting the current width of the greenfolders program ;;
WinGetPos,,, WidthWin, HeightWin, GreenFolders - 3.9.56
;; Getting the current location of the mouse to use after the script is done running. ;;
MouseGetPos, XposOld, YposOld
;;Finding the Assessment tab in the menu.
FindColor("\Images\Universal\OrderSetup\Assessment.jpg", 80, (AddEnding := "A"), (mouseclick, , %x%, %y%), (MouseClick, , (SFPringX+5), (SFPringY+5)))
FindColor(Path, ShadesVarible, DoThisThing, DoThatThing, AllElseFailsDoThis)
{
global
Loop {
CustomShade := "*"((A_Index*5)+ShadesVarible)
ProgressBar := ((A_Index*5)+ShadesVarible)
ImageSearch, X, Y, 0, 0, %WidthWin%, %HeightWin%, %CustomShade% %A_ScriptDir%%path%
If (ErrorLevel = 0){
%DoThisThing%
Progress, 0 0, Found @ %ProgressBar% color variations, System Processing , Finding Color
Sleep 1000
Progress, off
}
Else if (ErrorLevel = 1){
%DoThatThing%
Progress, 0 0, Processing @ %ProgressBar% Color variations. , System Processing , Finding Color
Progress, off
}
Else if (A_Index = 20){
%AllElseFailsDoThis%
Progress, 0 0, Processing @ %ProgressBar% Color variations. , System Processing , Finding Color
Progress, off
}
sleep 500
}Until (ErrorLevel = 0 or A_Index = 20)
}