Clicking-graphics/help-c++

This is a discussion on Clicking-graphics/help-c++ within the C++ Programming forums, part of the General Programming Boards category; I know, but now I know they are supposed to be class's or structures, and I must admit I didn't ...

  1. #16
    Registered User
    Join Date
    Dec 2010
    Posts
    21
    I know, but now I know they are supposed to be class's or structures, and I must admit I didn't read thuroly(however you spell that) enough on those. Thanks, i'll re-read those tutorials and i'll figure it out. I have been working on re-reading all of the learning C++ tutorials and then reading all the advanced tutorials once I reach that point. THANKS again bubba

    As for you tabstop I have no idea how he got that script, but when I posed this code:

    Code:
        HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );
        WORD wOldColorAttrs;
        CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
    
                          GetConsoleScreenBufferInfo(h, &csbiInfo);
                        wOldColorAttrs = csbiInfo.wAttributes;
    
        GetConsoleScreenBufferInfo(h, &csbiInfo);
        wOldColorAttrs = csbiInfo.wAttributes;
    
        SetConsoleTextAttribute ( h, FOREGROUND_BLUE | FOREGROUND_INTENSITY );
    it did say: the wOldColorAttrs a couple of times

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by tabstop View Post
    MSDN is down for me right now, but going through Google cached pages suggests that you can use GetConsoleScreenBufferInfo to get the original attributes, which you can then restore later.
    Quote Originally Posted by MrHoboMe View Post

    Code:
                          GetConsoleScreenBufferInfo(h, &csbiInfo);
    Wahey.

    My advice is to stop thinking of code (note: these aren't scripts) as something other than magic. Something that can be read, and thought about, and understood.

  3. #18
    Registered User
    Join Date
    Dec 2010
    Posts
    21
    Hah, thats true, I understand a lot of what i know, but I don't understand, some of it, I just know what it does... But that s the first step, then once I mes with it, I tend to understand it.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Draw rect by clicking button
    By fanta in forum C++ Programming
    Replies: 1
    Last Post: 12-22-2009, 11:58 PM
  2. PC makes clicking noise - now won't start up
    By hk_mp5kpdw in forum Tech Board
    Replies: 9
    Last Post: 09-25-2007, 11:34 PM
  3. Programmically simulate clicking on webbrowser2 object
    By hanhao in forum Windows Programming
    Replies: 1
    Last Post: 06-25-2007, 01:19 PM
  4. Programmically simulate clicking on webbrowser2 object
    By hanhao in forum Windows Programming
    Replies: 1
    Last Post: 06-24-2007, 10:34 PM
  5. Automatic clicking
    By gustavosserra in forum C++ Programming
    Replies: 3
    Last Post: 12-07-2004, 07:25 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21