• Welcome to Valhalla Legends Archive.
 

SendKeys

Started by Forged, June 10, 2004, 09:08 PM

Previous topic - Next topic

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.  


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


Any Help with a way around having to have war3 maximized would be nice.
QuoteI wish my grass was Goth so it would cut itself

Adron

Send the messages directly to the right window in war3. Try sending a bunch of wm_keydown or wm_char type messages.

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