Thread: clicking in full screen mode

  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267

    clicking in full screen mode

    how do you make the mouse click while a full screen program is open?

    Code:
    #include <windows.h>
    #include <conio.h>
    
    int main()
    {
        keybd_event(VK_MENU,
                    0x38,
                    0,
                    0);
        keybd_event(VK_TAB,
                    0x09,
                    0,
                    0);
        keybd_event(VK_TAB,
                    0x09,
                    KEYEVENTF_KEYUP,
                    0);
        keybd_event(VK_MENU,
                    0x38,
                    KEYEVENTF_KEYUP,
                    0);
        while (!kbhit())
        {
              mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
              Sleep(1);
              mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
              Sleep(1);
        }
    }
    i read adrianxw's tutorial and this the the best i can do, it alt+tebs to the full screen program but then it doesnt click

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Trying to write a hack for a 3D game?

    I doubt anything will work short of modifying a game DLL to wait for IPC communications and then execute some DirectX call or another as directed.

    @mods: Don't ban me yet. I'm speaking completely hypothetically, and the OP wouldn't know what I was talking about anyway, if I wasn't; and if they did, they wouldn't know what to do about it.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    ---
    Join Date
    May 2004
    Posts
    1,379
    This does seem kind of dodgy doesn't it?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Detecting Full Screen Mode
    By ldd7812 in forum Windows Programming
    Replies: 2
    Last Post: 05-29-2008, 10:36 PM
  3. Full Screen
    By west in forum C++ Programming
    Replies: 4
    Last Post: 03-08-2005, 08:40 AM
  4. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  5. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM