[VB 2010] Help menu

User Tag List

Results 1 to 2 of 2
  1. #1
    DercLx's Avatar Private
    Reputation
    1
    Join Date
    Mar 2012
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [VB 2010] Help

    Hey i have a Problem with my little tool
    I want to create a Anti- AFK Tool 4 World of Warcraft
    but i have a little Problem with the If sentence.

    Code:
            If AppActivate("World of Warcraft") Then
                SendKeys.Send("W")
                SendKeys.Send("W")
                SendKeys.Send("W")
                SendKeys.Send("Space")
            Else
                MsgBox("Es wurde kein World of Warcraft gefunden", MsgBoxStyle.Critical)
            End If
    ~cLx

    [VB 2010] Help
  2. #2
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What problem do you have ? Would be alot easier to answer if you added what the error log gave you

    EDIT: AppActivate isnt used in a If statement in VB 2010 Express it says "Activates an Application already running"
    I take it you want the program to check if the program is running then send the keys ?
    if so then you need to do this

    Add this above the function in which you check if the process is running
    Public Function ProcessesRunning(ByVal ProcessName As String) As Integer
    '
    Try
    Return Process.GetProcessesByName(ProcessName).GetUpperBound(0) + 1
    Catch
    Return 0
    End Try

    End Function
    then use this instead of your code
    If ProcessesRunning("Wow") = 1 Then
    SendKeys.Send("W")
    SendKeys.Send("W")
    SendKeys.Send("W")
    SendKeys.Send("Space")
    Else
    MsgBox("Es wurde kein World of Warcraft gefunden", MsgBoxStyle.Critical)
    End If
    That should work to Check if World of Warcraft is running and if it is then send the keys 'W' 3 times then send 'Space'
    but if you want to activate the app then send the keys do this instead
    If ProcessesRunning("Wow") = 1 Then
    AppActivate("World of Warcraft")
    SendKeys.Send("W")
    SendKeys.Send("W")
    SendKeys.Send("W")
    SendKeys.Send("Space")
    Else
    MsgBox("Es wurde kein World of Warcraft gefunden", MsgBoxStyle.Critical)
    End If
    Hope this helps !
    Last edited by Deathbringer123; 04-10-2012 at 04:50 AM.

Similar Threads

  1. [HELP] Visual Basic 2010 Random gernerated from name?
    By HighlineTV in forum Programming
    Replies: 1
    Last Post: 12-12-2016, 10:55 PM
  2. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  3. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 1
    Last Post: 05-07-2006, 08:36 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 04:37 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search