-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
624 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using static MagicKeys.MagicKeys; | ||
|
||
namespace MagicKeys | ||
{ | ||
public partial class Omnisphere | ||
{ | ||
|
||
public static void OmnisphereBank(string To) | ||
{ | ||
if (To == "Back") | ||
{ | ||
int[] NXUP = ImgSearchArea(@"Images\Omnisphere\OmnisphereUp.bmp", P[1]+330, P[2]+70, P[1]+350, P[2]+130, 40); | ||
if (NXUP[0] == 1) | ||
{ | ||
OmnisphereBankPage("Back"); | ||
return; | ||
} | ||
else if (NXUP[0] == 0) | ||
{ | ||
int[] NXBP = ImgSearchArea(@"Images\Omnisphere\OmnisphereBP.bmp", P[1]+260, P[2]+90, P[1]+280, P[2]+270, 20); | ||
if (NXBP[0] == 1) | ||
{ | ||
MouseClick("Left", NXBP[1]+15, NXBP[2]-5, 1, 0, 0, 10); | ||
MouseClick("Right", NXBP[1]+15, NXBP[2]-5, 1, 0, 0, 10); | ||
Thread.Sleep(200); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 50); | ||
Thread.Sleep(100); | ||
string Bank = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+105, 2, 0, 0, 50); | ||
Speak(Bank); | ||
} | ||
} | ||
} | ||
else if (To == "Next") | ||
{ | ||
int[] NXDW = ImgSearchArea(@"Images\Omnisphere\OmnisphereDown.bmp", P[1]+300, P[2]+220, P[1]+330, P[2]+250, 40); | ||
if (NXDW[0] == 1) | ||
{ | ||
OmnisphereBankPage("Next"); | ||
return; | ||
} | ||
else if (NXDW[0] == 0) | ||
{ | ||
int[] NXBP = ImgSearchArea(@"Images\Omnisphere\OmnisphereBP.bmp", P[1]+260, P[2]+90, P[1]+280, P[2]+270, 20); | ||
if (NXBP[0] == 1) | ||
{ | ||
int[] NXEND = ImgSearchArea(@"Images\Omnisphere\OmnisphereEnd.bmp", NXBP[5], NXBP[6], NXBP[5]+15, NXBP[6]+20, 20); | ||
if (NXEND[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
} | ||
else if (NXEND[0] == 0) | ||
{ | ||
MouseClick("Left", NXBP[1]+15, NXBP[2]+15, 1, 0, 0, 50); | ||
MouseClick("Right", NXBP[1]+15, NXBP[2]+15, 1, 0, 0, 50); | ||
Thread.Sleep(200); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15, MRect[1]+15, 1, 0, 0, 50); | ||
Thread.Sleep(100); | ||
string Bank = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+105, 2, 0, 0, 50); | ||
Speak(Bank); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
public static void OmnisphereSearch() | ||
{ | ||
OmnisphereSearchForm F = new OmnisphereSearchForm(); | ||
F.ShowDialog(); | ||
if (F.DialogResult == DialogResult.OK) | ||
{ | ||
MouseClick("Right", P[1]+330, P[2]+230, 1, 0, 0, 10); | ||
Thread.Sleep(200); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 7); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 50); | ||
Thread.Sleep(100); | ||
ControlSetText(API.GetWTitle(), API.GetWClass(), "Edit", F.GetString()); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+105, 2, 0, 0, 10); | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using static MagicKeys.MagicKeys; | ||
|
||
namespace MagicKeys | ||
{ | ||
public partial class Omnisphere | ||
{ | ||
|
||
public static void OmnisphereBankPage(string To) | ||
{ | ||
if (To == "Back") | ||
{ | ||
int[] FH = ImgSearchArea(@"Images\Omnisphere\FullHome.bmp", P[1]+350, P[2]+50, P[1]+460, P[2]+160, 20); | ||
if (FH[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
return; | ||
} | ||
SoundPlay("Scrol.ogg", 0); | ||
MouseClick("Left", P[1]+400, P[2]+105, 1, 0, 0, 10); | ||
MouseClick("Right", P[1]+330, P[2]+230, 1, 0, 0, 10); | ||
} | ||
else if (To == "Next") | ||
{ | ||
int[] FH = ImgSearchArea(@"Images\Omnisphere\FullEnd.bmp", P[1]+350, P[2]+200, P[1]+460, P[2]+260, 20); | ||
if (FH[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
return; | ||
} | ||
SoundPlay("Scrol.ogg", 0); | ||
MouseClick("Left", P[1]+400, P[2]+220, 1, 0, 0, 10); | ||
MouseClick("Right", P[1]+330, P[2]+105, 1, 0, 0, 10); | ||
} | ||
Thread.Sleep(200); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
string Bank = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+105, 2, 0, 0, 10); | ||
Speak(Bank); | ||
} | ||
|
||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using static MagicKeys.MagicKeys; | ||
|
||
namespace MagicKeys | ||
{ | ||
public partial class Omnisphere | ||
{ | ||
|
||
public static void OmnispherePatch(string To) | ||
{ | ||
if (To == "Back") | ||
{ | ||
int[] NXUP = ImgSearchArea(@"Images\Omnisphere\OmnisphereUp.bmp", P[1]+450, P[2]+70, P[1]+480, P[2]+150, 40); | ||
if (NXUP[0] == 1) | ||
{ | ||
OmnispherePatchPage("Back"); | ||
return; | ||
} | ||
else if (NXUP[0] == 0) | ||
{ | ||
int[] NXBP = ImgSearchArea(@"Images\Omnisphere\OmnisphereBP.bmp", P[1]+400, P[2]+90, P[1]+430, P[2]+270, 40); | ||
if (NXBP[0] == 1) | ||
{ | ||
MouseClick("Right", NXBP[1]+15, NXBP[2]-5, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
string Patch = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+50, P[2]+50, 1, 0, 0, 10); | ||
MouseClick("Left", NXBP[1]+15, NXBP[2]-5, 2, 0, 0, 10); | ||
Speak(Patch); | ||
} | ||
} | ||
} | ||
else if (To == "Next") | ||
{ | ||
int[] NXDW = ImgSearchArea(@"Images\Omnisphere\OmnisphereDown.bmp", P[1]+530, P[2]+220, P[1]+570, P[2]+260, 40); | ||
if (NXDW[0] == 1) | ||
{ | ||
OmnispherePatchPage("Next"); | ||
return; | ||
} | ||
else if (NXDW[0] == 0) | ||
{ | ||
int[] NXBP = ImgSearchArea(@"Images\Omnisphere\OmnisphereBP.bmp", P[1]+400, P[2]+90, P[1]+430, P[2]+270, 40); | ||
if (NXBP[0] == 1) | ||
{ | ||
int[] NXEND = ImgSearchArea(@"Images\Omnisphere\OmnisphereEnd.bmp", NXBP[5], NXBP[6], NXBP[5]+15, NXBP[6]+25, 20); | ||
if (NXEND[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
} | ||
else if (NXEND[0] == 0) | ||
{ | ||
MouseClick("Right", NXBP[1]+15, NXBP[2]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15, MRect[1]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
string Patch = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+50, P[2]+50, 1, 0, 0, 10); | ||
MouseClick("Left", NXBP[1]+15, NXBP[2]+15, 2, 0, 0, 10); | ||
Speak(Patch); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using static MagicKeys.MagicKeys; | ||
|
||
namespace MagicKeys | ||
{ | ||
public partial class Omnisphere | ||
{ | ||
|
||
public static void OmnispherePatchPage(string To) | ||
{ | ||
if (To == "Back") | ||
{ | ||
int[] FH = ImgSearchArea(@"Images\Omnisphere\FullHome.bmp", P[1]+540, P[2]+50, P[1]+590, P[2]+160, 20); | ||
if (FH[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
return; | ||
} | ||
SoundPlay("Scrol.ogg", 0); | ||
MouseClick("Left", P[1]+575, P[2]+120, 1, 0, 0, 10); | ||
MouseClick("Right", P[1]+450, P[2]+230, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
string Patch = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+230, 2, 0, 0, 10); | ||
Speak(Patch); | ||
} | ||
else if (To == "Next") | ||
{ | ||
int[] FH = ImgSearchArea(@"Images\Omnisphere\FullEnd.bmp", P[1]+540, P[2]+180, P[1]+590, P[2]+280, 20); | ||
if (FH[0] == 1) | ||
{ | ||
SoundPlay("End.ogg", 0); | ||
return; | ||
} | ||
SoundPlay("Scrol.ogg", 0); | ||
MouseClick("Left", P[1]+575, P[2]+220, 1, 0, 0, 10); | ||
MouseClick("Right", P[1]+450, P[2]+105, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
IntPtr HWND = WinExistsHandle("", "#32768"); | ||
IntPtr HMenu = SendMessage(HWND, 0x01E1, 0, IntPtr.Zero); | ||
int[] MRect = GetMIRect(HWND, HMenu, 1); | ||
MouseClick("Left", MRect[0]+15,MRect[1]+15, 1, 0, 0, 10); | ||
Thread.Sleep(100); | ||
string Patch = ControlGetText(API.GetWTitle(), API.GetWClass(), "Edit"); | ||
Keyboard.KeyDown(Keys.Enter); | ||
Keyboard.KeyUp(Keys.Enter); | ||
MouseClick("Left", P[1]+450, P[2]+105, 2, 0, 0, 10); | ||
Speak(Patch); | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.