Sending keys in Warcraft 3 (visual basic)

This is a discussion on Sending keys in Warcraft 3 (visual basic) within the Warcraft 3 forum board part of the Hot Games category; Greetings. Today I've tried to automate some stuff in warcraft3 using visual basic 2008. I've tried using the sendkeys.send method, ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Freaking-Panda is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Question Sending keys in Warcraft 3 (visual basic)

    Greetings.
    Today I've tried to automate some stuff in warcraft3 using visual basic 2008. I've tried using the sendkeys.send method, however it seems like it never responds when warcraft 3 is open.

    Here is my code so far:



    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            System.Diagnostics.Process.Start("C:\Users\Anders\Desktop\Warcraft III - The Frozen Throne")
            Sleep(9000)
            SendKeys.Send("s")
            Sleep(1500)
            SendKeys.Send("g")
            Sleep(2000)
            SendKeys.Send("{Enter}")
    
        End Sub
    Whenever I'm not in warcraft 3 it works and sends the keys just fine, however whenever the wc3 windows is active nothing happens.
    Would really appreciate if you guys could help me solve the problem.
    Thanks in advance =)

  2. #2
    Mads's Avatar
    Mads is offline Formerly Zo8

    Array
    Join Date
    Nov 2008
    Location
    Denmark
    Posts
    2,290
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    18
    Reputation
    1647
    Moved to support forum.

  3. #3
    mew
    mew is offline Banned User
    Array
    Join Date
    Jun 2010
    Location
    Washington State
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Um...

    ---------- Post added at 06:54 PM ---------- Previous post was at 06:53 PM ----------

    Have you....

    ---------- Post added at 06:54 PM ---------- Previous post was at 06:54 PM ----------

    Tried... um... Basing a script of a bot?

  4. #4
    Freaking-Panda is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Quote Originally Posted by The Crazed Azn View Post
    Um...

    ---------- Post added at 06:54 PM ---------- Previous post was at 06:53 PM ----------

    Have you....

    ---------- Post added at 06:54 PM ---------- Previous post was at 06:54 PM ----------

    Tried... um... Basing a script of a bot?
    Well I haven't really been able to find any that are written in vb with source code.
    If you got one then kindly share it and I'll appreciate it =)

  5. #5
    Freaking-Panda is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    BUMP
    Could anyone who have previously programmed a lossbot or whatever help me?

  6. #6
    NickSauce's Avatar
    NickSauce is offline Hacker
    Array
    Join Date
    Apr 2010
    Location
    Brisbane, Australia
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    121
    Erm, Send me your entire code.


    [email protected]

    Forms and all
    Last edited by NickSauce; 06-15-2010 at 09:39 AM.

  7. #7
    Freaking-Panda is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Quote Originally Posted by NickSauce View Post
    Erm, Send me your entire code.




    Forms and all
    Okay I've sent a mail with it

  8. #8
    Freaking-Panda is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Still looking for help guys:S

  9. #9
    4GoTeN_Ho3 is offline Banned User Array
    Join Date
    Jun 2010
    Location
    Montreal, Quebec
    Posts
    1,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    376
    umm whts the point of this?

  10. #10
    NickSauce's Avatar
    NickSauce is offline Hacker
    Array
    Join Date
    Apr 2010
    Location
    Brisbane, Australia
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    121
    Code:
    System.Diagnostics.Process.Start("C:\Users\Anders\Desktop\Warcraft III - The Frozen Throne")
    Change that line to

    Code:
    System.Diagnostics.Process.Start("C:\Program Files\Warcraft III\Frozen Throne.exe")

    Thats not what your path may be but hopefully you get the idea that this is just a general rule of thumb.

    The program did EVERYTHING it was supposed to do. But I had changed that line (no shortcuts cus im a ricer)

Page 1 of 2 12 LastLast

Similar Threads

  1. Help on Visual Basic
    By HackED in forum Development
    Replies: 6
    Last Post: 10-24-2009, 04:02 PM
  2. [GUIDE] (Visual Basic) Make a basic MsgBox
    By Toxik in forum Development
    Replies: 4
    Last Post: 12-22-2008, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •