I did some testing on a spammer that I have recently made, and I found out the hard way that the
keystrokes don't register into the program half the time.
I'm not sure what the issue is exactly, but is there any way to designate the keystrokes to one
specific application? Somewhat like an injector, where you choose what process you're injecting.
Makes sense to me, but I'm not sure how to explain it. Having the keystrokes set to work in a specific
application would be extremely helpful seeing as any keystrokes that my program was making
didn't work properly in-game.
I'm trying to make a 'farming' tool so that the character drops the weapon(G key drops the weapon)
I had it setup like:
Code:
Private Sub farm_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles farm.Tick
SendKeys.Send("g")
End Sub
As you can see, when the timer ticks, the 'g' key is pressed. BUT when 'g' is pressed, nothing
happens, not even an acknowledgment that the key has been pressed. But when I open notepad
it works fine..
If anyone knows a solution, or something that might help me, I would be grateful ;D
I did some testing on a spammer that I have recently made, and I found out the hard way that the
keystrokes don't register into the program half the time.
I'm not sure what the issue is exactly, but is there any way to designate the keystrokes to one
specific application? Somewhat like an injector, where you choose what process you're injecting.
Makes sense to me, but I'm not sure how to explain it. Having the keystrokes set to work in a specific
application would be extremely helpful seeing as any keystrokes that my program was making
didn't work properly in-game.
I'm trying to make a 'farming' tool so that the character drops the weapon(G key drops the weapon)
I had it setup like:
Code:
Private Sub farm_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles farm.Tick
SendKeys.Send("g")
End Sub
As you can see, when the timer ticks, the 'g' key is pressed. BUT when 'g' is pressed, nothing
happens, not even an acknowledgment that the key has been pressed. But when I open notepad
it works fine..
If anyone knows a solution, or something that might help me, I would be grateful ;D
Hmm.. I am not good with keystrokes and spammers stuff, but I can see that the application need to focus the application you want to spam in !!!
To do this, before enabling the timer put this code:
Code:
Appactivate("Application Title")
If you open a new notepad file Application Title it will be "Untitled - Notepad". So enter that..../....
This will bring Notepad to front and then when you enable the timer, spamming will start in the notepad !!!
[php]
<DllImport("User32.dll")> _
Public Shared Function FindWindow(ByVal lpClassName As [String], ByVal lpWindowName As [String]) As Int32
End Function
[/php]
This will allow you to find a window using it's title
Then use the find window function, and get focus that way .
plus there is a more elaborate way , but no need for it here, Tough My SDK will have it
The program can be on top of other, the game for instance.
It can be on top, but the keys will not work properly in-game.
I'll try these and see if they work, if not, I'll post back here =/
SendKeys won't work in most DX games (alot of companys patch sendkeys)
Ohhh, so I should use another one of the methods listed above?
Alright, good to know.
There is a send key alternative which uses windows API.