[C++] WoW button presses menu

User Tag List

Results 1 to 5 of 5
  1. #1
    0_00_0's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] WoW button presses

    I'm trying to send keys to the WoW window. PostMessage() used to work... but for some reason its not working anymore :S. I've tried PostMessage(), SendInput(), SendMessage() and keybd_event. What is the generally accepted send keys function for WoW?

    or am I using them incorrectly?

    Code:
    SetForegroundWindow(hWnd);
         
    keybd_event(VkKeyScan('1'), 0, KEYEVENTF_KEYDOWN, 0 );
    Sleep(100);
    keybd_event(VkKeyScan('1'), 0, KEYEVENTF_KEYUP, 0 ); 
    Sleep(2500);
         
    SendMessage(hWnd,WM_KEYDOWN,VkKeyScan('2'),0);
    Sleep(100);
    SendMessage(hWnd,WM_KEYUP,VkKeyScan('2'),0);
    Sleep(2500);
         
    PostMessage(hWnd,WM_KEYDOWN,VkKeyScan('3'),0);
    Sleep(100);
    PostMessage(hWnd,WM_KEYUP,VkKeyScan('3'),0);
    Sleep(2500);
    Sleep(5000);

    [C++] WoW button presses
  2. #2
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no problems using PostMessage, how do you get the window handle?

  3. #3
    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)
    Yes. How do you get the Window Handle? Thats one of my problems

  4. #4
    0_00_0's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use pass the hWnd in as a parameter to the method. Before i pass it into the method, i get the handle using the basic:

    Code:
    HWND hWnd = FindWindow(NULL, "World of Warcraft");
    The handle seems to work for pretty much everything else.

  5. #5
    0_00_0's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I could really still use help with clicking WoW in the background... . I wish i could post this one in a thread with more views.
    Last edited by 0_00_0; 06-11-2009 at 12:22 AM.

Similar Threads

  1. Automatic 1 Button Press/Spam.
    By Sikas in forum WoW UI, Macros and Talent Specs
    Replies: 9
    Last Post: 10-27-2014, 01:01 AM
  2. Is there a way to reverse PQR button presses
    By tek.crx in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 12-18-2013, 06:27 PM
  3. Replies: 3
    Last Post: 10-14-2012, 05:28 PM
  4. wow buttons
    By Gobbyx in forum WoW PvP & Battlegrounds
    Replies: 0
    Last Post: 02-26-2012, 11:50 AM
  5. [Button] Need of WoW Button
    By Mitron in forum Art & Graphic Design
    Replies: 5
    Last Post: 04-18-2009, 07:48 PM
All times are GMT -5. The time now is 02:28 AM. 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