Key Macro

01/22/2017 16:48 DrPew#1
Any working key macro up ?
01/22/2017 18:20 dinozof#2
Quote:
Originally Posted by DrPew View Post
Any working key macro up ?
Sure , AutoIT is very easy to use and you can make the macros you desire. Use "ControlSend" to specifically send the macros to your target game-window
01/22/2017 19:34 KillerExtreme#3
auto it is detected from the x trap hackshield oO
01/23/2017 00:55 katze123#4
Quote:
Originally Posted by KillerExtreme View Post
auto it is detected from the x trap hackshield oO
best hackshield x)
01/23/2017 17:12 asdfg177#5
PostMessage: [Only registered and activated users can see links. Click Here To Register...]
You can simulate mouse presses and key presses with it. And it will work background too which is awesome as well. The Function Parameters you can get with spy++ easily (this program is self explanory trust me)

Example code for sending Space button (c#)
Code:
public static void SendSpace(IntPtr hWnd)
        {
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_KEYDOWN, (IntPtr)0x20, (IntPtr)0x390001);
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_CHAR, (IntPtr)0x20, (IntPtr)0x390001);
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_KEYUP, (IntPtr)0x20, (IntPtr)0xC0390001);
        }
Example code for sending right mouse click relative to the top left point of the KalOnline Window (c#)
Code:
public static void RightMouseClickRelative(IntPtr hWnd, int relativX, int relativY)
        {
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_RBUTTONDOWN, (IntPtr)HitTestValues.HTCLIENT, (IntPtr)((relativY << 16) | relativX));
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_RBUTTONUP, (IntPtr)HitTestValues.HTNOWHERE, (IntPtr)((relativY << 16) | relativX));
        }
Have fun
01/23/2017 23:36 DrPew#6
Thanks
01/28/2017 16:35 dinozof#7
Quote:
Originally Posted by KillerExtreme View Post
auto it is detected from the x trap hackshield oO
is not if you compile to exe. I have no issues
01/30/2017 08:10 KillerExtreme#8
wtf, my exe auto it makros get detected and get closed from the game what windows did you use?
01/30/2017 10:09 dinozof#9
Quote:
Originally Posted by KillerExtreme View Post
wtf, my exe auto it makros get detected and get closed from the game what windows did you use?
I have windows 7 64. I am writing my macros in AutoIT (macro.au3) and compile it to macro.exe. The "exe" is not detected.
02/01/2017 05:04 hawkagent#10
Quote:
Originally Posted by asdfg177 View Post
PostMessage: [Only registered and activated users can see links. Click Here To Register...]
You can simulate mouse presses and key presses with it. And it will work background too which is awesome as well. The Function Parameters you can get with spy++ easily (this program is self explanory trust me)

Example code for sending Space button (c#)
Code:
public static void SendSpace(IntPtr hWnd)
        {
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_KEYDOWN, (IntPtr)0x20, (IntPtr)0x390001);
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_CHAR, (IntPtr)0x20, (IntPtr)0x390001);
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_KEYUP, (IntPtr)0x20, (IntPtr)0xC0390001);
        }
Example code for sending right mouse click relative to the top left point of the KalOnline Window (c#)
Code:
public static void RightMouseClickRelative(IntPtr hWnd, int relativX, int relativY)
        {
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_RBUTTONDOWN, (IntPtr)HitTestValues.HTCLIENT, (IntPtr)((relativY << 16) | relativX));
            PostMessage(hWnd, (IntPtr)WindowsMessage.WM_RBUTTONUP, (IntPtr)HitTestValues.HTNOWHERE, (IntPtr)((relativY << 16) | relativX));
        }
Have fun
PostMessage is not working for me. It works on notepad, but not on KalOnline. I took your RightMouseClickRelative function. What could be the problem?
02/02/2017 09:59 asdfg177#11
Quote:
Originally Posted by hawkagent View Post
PostMessage is not working for me. It works on notepad, but not on KalOnline. I took your RightMouseClickRelative function. What could be the problem?
Same think happended to me too when I tested and I was confused too. For me case 1 helped.

case 1: You probably havent run your .exe as administrator
case 2: Function parameters incorrect
02/04/2017 22:52 KillerExtreme#12
wow thanks dude i will check this tomorrow and test it.
02/05/2017 00:48 dinozof#13
Quote:
Originally Posted by KillerExtreme View Post
wow thanks dude i will check this tomorrow and test it.
As I've already mentioned, it works on win7 and win10 , 64 bit systems