To Autoit Coders

02/15/2010 10:01 andrewfam#1
Hi,

Is there a way to stimulate keypress without using "send" method in 12sky2?

I've tried to use "ControlSend", "SendMessage", "PostMessage" without any success.

Anyone got any solution? Perhaps, using "MemoryWrite" but we need to know the addresses and values.
02/15/2010 21:03 Mega Byte#2
..... first of all use a decent programming language not a scripting language. Google like C++ or C# Simulate a Keyboard Press. Theres billions of examples and such for such code and its better than autoit...
02/16/2010 00:41 andrewfam#3
Thanks for your suggestion. Now, back to my question. Dose anyone have any idea how to do it?
02/16/2010 00:59 spare2#4
SendMessage/PostMessage are background clicks. The client checks for that, so it does not work.
02/16/2010 02:26 andrewfam#5
Alright, SendMessage/PostMessage doesn't work. That's is the fact.

So what is left?
02/23/2010 05:24 rhotar#6
Quote:
Originally Posted by andrewfam View Post
Hi,

Is there a way to stimulate keypress without using "send" method in 12sky2?

I've tried to use "ControlSend", "SendMessage", "PostMessage" without any success.

Anyone got any solution? Perhaps, using "MemoryWrite" but we need to know the addresses and values.
perhaps you could elaborate of WHY u wanna use a different function, what are the negative effects on using the Send function, or plainly what u wanna achieve.
02/23/2010 07:59 strikeraid#7
Most likely a way to use keys without TS2 being open/active. In other words, send keypresses to a minimized TS2.
02/23/2010 20:27 rhotar#8
Quote:
Originally Posted by strikeraid View Post
Most likely a way to use keys without TS2 being open/active. In other words, send keypresses to a minimized TS2.

humm the joys of a background bot and multiple instances of the game running uh? gold farmer anyone?

Well back to the topic i guess hooking into the windows message system or injecting the key from a dll loaded to the game could do the trick or if you are up for the challenge and like to have full control a kernel mode driver is your friend.