Is this even worth the time?

12/27/2011 21:37 AutoLib#1
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])
12/27/2011 23:17 lilaznboy2#2
Since when did AU3 start getting detected?
12/27/2011 23:39 AutoLib#3
I'm not sure if it's just that script or something I've done wrong, but every time I start up Fossil Restoration 9.5 or 10.whatever either AHK or AU3 my client closes with the hacking message.

Edit: Also the hotkeys never wanted to start. Everything looks fine, but doesn't want to work. I work a lot in AHK and couldn't find a problem.

On another note, I just successfully made an autotyper that works with the client minimized. Seems like a nice addition for the library.
12/28/2011 03:17 Blade3575#4
AHK is literally ripped off of AutoIt. AutoIt isn't detected (run a script directly; if you're using ImageSearch, make sure you run as x86) and hotkeys only work with a hook. If you're looking to send anything to a minimized window with AI3 you can use ControlClick, ControlSend, etc. AutoIt can do anything in MSDN.