How do  i make c# open wow.exe menu

User Tag List

Results 1 to 10 of 10
  1. #1
    xxxkilldogxxxx's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i make c# open wow.exe

    How would i use a button to open up a directory to browse for wow.exe, im making a wow auto login its my first c# project somthing simple as i know it would be stupid to dive straight in.

    How do  i make c# open wow.exe
  2. #2
    Krillere's Avatar Contributor
    Reputation
    112
    Join Date
    Nov 2007
    Posts
    668
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    using System;
    using System.Diagnostics;
    
    int main()
    {
    
    Process.Start(@"C:/Program Files/World of Warcraft/Wow.exe");
    
    }
    Just wrote this, just change the path to your Wow.exe :-)
    Last edited by Krillere; 07-13-2010 at 04:31 AM.

  3. #3
    jaakko's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it's just Process.Start(). Am i right?

  4. #4
    Krillere's Avatar Contributor
    Reputation
    112
    Join Date
    Nov 2007
    Posts
    668
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wait yes sorry, I just wrote that code out of my head, was thinking of another function, I'll just change the codeblock :-)

  5. #5
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    If you need to run as Admin use this,

    Code:
                    ProcessStartInfo processInfo = new ProcessStartInfo();
                    processInfo.Verb = "runas";
                    processInfo.FileName = location;
                    Process.Start(processInfo);

  6. #6
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    None of you directly answered his question.

    He wants a dialog to popup where he can select the file WoW.exe

    In your form, create a new "OpenFileDialog" option from the list, then create a new button and put this code:

    Code:
                if (openFileDialog1.ShowDialog() == DialogResult.OK )
                {
                    ProcessStartInfo processInfo = new ProcessStartInfo();
                    processInfo.Verb = "runas";
                    processInfo.FileName = openFileDialog1.FileName;
                }
    Then you can invoke the launching the program.




  7. #7
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Then this should also work,

    Code:
                // create an open file dialog
                OpenFileDialog dlgOpen = new OpenFileDialog();
                dlgOpen.Filter = "World Of Warcraft (WoW.exe)|wow.exe";
                dlgOpen.Title = "Type File";
                dlgOpen.InitialDirectory = ("C:\\Program Files\\World of Warcraft\\");
                // set properties for the dialog
                dlgOpen.Title = "Select World Of Warcraft File";
                dlgOpen.ShowReadOnly = true;
                dlgOpen.Multiselect = false;
    
                // display the dialog and return results
                if (dlgOpen.ShowDialog() == DialogResult.OK)
                {
                     ProcessStartInfo processInfo = new ProcessStartInfo();
                    processInfo.Verb = "runas";
                    processInfo.FileName = dlgOpen.FileName;;
                    Process.Start(processInfo);
                }
    This is off the top of my head, so I do not know if it will work.

  8. #8
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^^ This is the more defined way to do it; however if you want the give the user control over the file then use my one, however DarkLinux's code is better.




  9. #9
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    I was rereading your question, the auto login in part will be more difficult I think. You might need to hook wow to use some APIs. Thats the only way I can think of auto logging in. Or you could just use the keyboard functions, but then you could not do anything els with the computer. You could not run it in the background, thats all.

    WoW APIs World of Warcraft API - WoWWiki - Your guide to the World of Warcraft

  10. #10
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Also found this post, if you are going with the non hook method.

    http://www.devasp.net/net/articles/display/690.html

    Or

    [2008] Sending BM_Click to Calculator doesn't work? - VBForums

    This will help you with the logging in button

Similar Threads

  1. wowMe Messed my woww up Error went i try to open wow.exe
    By riki in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 07-30-2008, 06:42 AM
  2. [Easy] How to Make Your Own WoW Forum Avatar!
    By Roflcopterzzz in forum Art & Graphic Design
    Replies: 21
    Last Post: 05-28-2007, 10:09 AM
  3. Can someone tell me how to open WoW in windows mode?
    By _alliance_elune_ in forum World of Warcraft General
    Replies: 6
    Last Post: 11-01-2006, 02:18 AM
  4. How do u make wow movies?
    By frigget in forum World of Warcraft General
    Replies: 2
    Last Post: 10-25-2006, 02:59 PM
  5. How do i make WOW screenshots i can it game into jpegs or something i can send?
    By Kaiserdog8390 in forum World of Warcraft General
    Replies: 4
    Last Post: 09-20-2006, 04:45 PM
All times are GMT -5. The time now is 04:00 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search