Valhalla Legends Forums Archive | Visual Basic Programming | SendKeys

AuthorMessageTime
Forged
I am making a war3 spambot, and I am having a problem with it, it only sends the text when war3 is in focus. I know that is what sendkeys is supposed to do, but I thought using AppActivate made it the main window it just didn't show it in focus.

[code]
Private Sub Command1_Click()
'ChannelTimer.Enabled = True
MessageTimer.Enabled = True
End Sub
Private Sub Form_Load()
ChannelTimer.Enabled = False
MessageTimer.Enabled = False
End Sub

Private Sub MessageTimer_Timer()
AppActivate "Warcraft III"
SendKeys Text1.Text & "{enter}"
End Sub
[/code]

Any Help with a way around having to have war3 maximized would be nice.
June 11, 2004, 2:08 AM
Adron
Send the messages directly to the right window in war3. Try sending a bunch of wm_keydown or wm_char type messages.
June 11, 2004, 4:19 PM
SPY-3
a way that might work is
Private Sub Command1_Click()
'ChannelTimer.Enabled = True
MessageTimer.Enabled = True
End Sub
Private Sub Form_Load()
ChannelTimer.Enabled = False
MessageTimer.Enabled = False
End Sub

Private Sub MessageTimer_Timer()
AppActivate "Warcraft III"
SendKeys Text1.Text & chr(13)
appactivate "your program title"
End Sub

this will make it spam but it will make it so you cant read whay your spamming from wc3 or what ppl r saying unles su put a bot there to get the text. but this should work
August 27, 2004, 1:03 PM

Search