WindowsInputSimulator (or how to send keys to s4)

10/06/2010 03:26 iRook#1
I don't know how many of you have used this but..
I was playing around with it.
Code:
void WaveDashThing()
        {
            System.Threading.Thread.Sleep(2000);
            InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
            InputSimulator.SimulateKeyDown(VirtualKeyCode.VK_A);
            InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
            InputSimulator.SimulateKeyUp(VirtualKeyCode.VK_A);
            InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
            InputSimulator.SimulateKeyDown(VirtualKeyCode.VK_A);
            InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
            InputSimulator.SimulateKeyUp(VirtualKeyCode.VK_A);
            

        }
I have this method called when I click a random button I made in windows forms. So I open S4 and click it: Absolutely nothing happens. Can S4 recieve this input? It says on the site ([Only registered and activated users can see links. Click Here To Register...]) that it actually simulates the key stroke, up and down and all.
Why does this not work for s4..or amidoinitwrong.


Oooo....I should know this but does S4 use DirectX [edit: it does right] if so thats why...says that they are ignored by games using dx. [Only registered and activated users can see links. Click Here To Register...]
Is there another way to do this?
I remember someone had a trainer that moved the character (I think?)


Just did some searching around. If i reference Microsoft.DirectX.DirectInput and then use that..might work..if its a direct x game

But how would I go about doing this.
10/06/2010 05:01 Al Kappaccino#2
No you canīt use this for Hotkeys, but you can use GetAsyncKeyState... it should work like it works for me
10/06/2010 05:42 luqiitas#3
Quote:
Originally Posted by iRook View Post

look i use this program i found a lot of time ago and its Undetected, Its Like A Macro! u know. look at this "WorkSpace Macro" wait ill gonna give u the url.

Download Link 01

Download Link 02


If i Help You ^^Thanks^^
10/06/2010 08:53 EasyCool#4
VT?
Btw Jake wie hast du das gemacht?
10/06/2010 15:15 PenGuin :O#5
Wie hat er was gemacht?
10/06/2010 20:24 iRook#6
Jake i'll try that. Il see how it works

Edit: That only gets the state..I want to press them.


One post I found says SendInput() sends keys directly to the driver so would that work
10/06/2010 21:05 ♠As♠#7
Ich glaube er meint das es in S4 league Clickt
10/06/2010 21:17 iRook#8
Could you guys speak type in English as this post was in English? And I still cant find anything on google. I found something SendMsg(), that doesnt work either.
10/07/2010 04:55 Al Kappaccino#9
Erm... i know that this works with AutoIT - tried it with a bot -.
Itīs just "Send("[W]")" for example, but how this gonna work with your language... i donīt know^^