I have been working on a small library in C#. My original plan was to make a shell for mouse clicks and the like so I could make that old Fossil Restoration script in C# that isn't detected since the AHK/AU3 versions are. So far I've gotten clicks and things to work. My only problem is sending text but that's not important.
I haven't played Mabi in forever and haven't been looking on here in even longer, so did I miss something about fossil restoration? Is there already a script out there that doesn't get detected or should I continue to make my own?
Also my current class map is below. Assume working unless otherwise stated. Included overloads for I don't know why.
Code:
namespace AutoLibrary
namespace AutoLib
class Window
["user32.dll" functions]
MoveWindow(IntPtr, int, int , int, int, bool)
FindWindow(string, string)
SetForegroundWindow(IntPtr)
GetForegroundWindow(void)
GetWindow(IntPtr, uint)
[User Defined Methods]
GetAllChildHandles(IntPtr)
FindHandle(string, int)
GetHandle(string)
Active(string)
Active(IntPtr)
Activate(string)
Activate(IntPtr)
class Text
["user32.dll" functions]
PostMessage(IntPtr, uint, IntPtr, IntPtr)
["Kernel32.dll" functions]
GetLastError(void)
[User Defined Methods]
PostText(IntPtr, uint, IntPtr, IntPtr)
ManagedSendKeys(string, string) // Got from somewhere else. Can't remember exactly where.
class MouseButton //Just holds data for Mouse class. Probably going to be moved.
class Mouse
["user32.dll" functions]
mouse_event(uint, uint, uint, uint, uint)
SetCursorPos(int, int)
__BlockInput(bool)
[User Defined Methods]
BlockInput(bool)
BlockInput(int)
CurrentPosition(void)
Move(int, int)
Move(Point)
Click(int, int, [int])
Click(Point, [int])
Click([int])
ClickDown(int, int, [int])
ClickUp(int, int, [int])
ClickDown(Point, [int])
ClickUp(Point, [int])
ClickDown([int])
ClickUp([int])
ClickDrag(int, int, int, int, [int])
ClickDrag(Point, Point, [int])