#NoEnv

SendMode Input

Coordmode, Mouse, Window

SetTimer, Reset, 100

global Count := 1

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 1)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 2)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 3)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 4)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 5)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 6)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 7)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 8)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 9)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 10)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 11)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 12)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 13)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 14)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 15)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 16)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") AND MouseWithin(522, 255, 740, 520) AND Count(23, 17)

$f1::

$f2::

$f3::

MouseMove, 0, 37, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 18)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 19)

$f1::

$f2::

$f3::

Click Right

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 20)

$f1::

$f2::

$f3::

MouseMove, 0, 10, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 21)

$f1::

$f2::

$f3::

Click

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 22)

$f1::

$f2::

$f3::

MouseMove, 42, 0, 0, R

Return

#If WinActive("OSBuddy") MouseWithin(522, 255, 740, 520) AND Count(23, 23)

$f1::

$f2::

$f3::

MouseMove, 0, -232, 0, R

Return

#If WinActive("OSBuddy")

$f4::

Click Right

Return

#If WinActive("OSBuddy")

$f5::

MouseMove, 0, 75, 0, R

Return

#If WinActive("OSBuddy")

$f6::

Click

Return

Reset:

If (A_TimeSinceThisHotkey > 600)

Count := 1

Return

MouseWithin(X1, Y1, X2, Y2) {

MouseGetPos, MX, MY

If (MX < X1) OR (MX > X2) OR (MY < Y1) OR (MY > Y2)

Return 0

Return 1

}

Count(Limit, Check) {

If (Count = Check) {

Count := ((Count >= Limit) ? 1 : Count + 1)

Return True

}

Return False