[Question] Active window with C++ menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Xel's Avatar ★ Elder ★
    Authenticator enabled
    Reputation
    1179
    Join Date
    Jul 2008
    Posts
    2,906
    Thanks G/R
    94/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Active window with C++

    So my question is, how to get the program to write/do commands (like alt + F4)
    to the current (active) window.

    Ex. I start the program
    => I pick notepad
    => It writes something to the notepad
    => I pick IE and select the address bar
    => It continues writing to the address bar?

    I need a way to close the window when it gets selected so ex.
    if I start my program and pick Notepad, it will close Notepad.

    I tried things like PostMessage(GetActiveWindow(), "something", 1) but they didn't
    work.

    Thanks for your help.
    Last edited by Xel; 01-20-2010 at 06:14 AM.

    [Question] Active window with C++
  2. #2
    WhiteShizzle's Avatar Active Member
    Reputation
    17
    Join Date
    Jun 2008
    Posts
    248
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couldn't you use
    Code:
    GetForegroundWindow()
    with
    Code:
    BOOL DestroyWindow(HWND hWnd);
    ?

  3. #3
    Molleren's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BOOL SetForegroundWindow(
    HWND hWnd
    );

    ?

Similar Threads

  1. [Question] Draenei horn with helm possible?
    By rykaerdoe in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-14-2007, 06:43 PM
  2. [Question] Camera Issue with Model Editing.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-12-2007, 03:57 PM
  3. [Question] weapon editing with itemcache.
    By Daimao in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-03-2007, 07:42 PM
  4. [Question] Need help with Editing...
    By Gerudion in forum WoW ME Questions and Requests
    Replies: 9
    Last Post: 10-01-2007, 07:38 PM
  5. Question: Fly mode with WoWemuhacker on Emu servers
    By Bareno in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 09-30-2007, 03:37 PM
All times are GMT -5. The time now is 03:34 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