Search:

Type: Posts; User: reefa

Search: Search took 0.01 seconds.

  1. Thread: Inkey$ in C++?

    by reefa
    Replies
    5
    Views
    2,582

    Inkey$ in C++?

    I've looked around teh world and I stumbled on this code here, but I want to beable to make this loop printf the a++ postincrement while at the same time reading to see if a key has been pressed, if...
  2. Replies
    3
    Views
    1,154

    I figured a way to do this and this is how its...

    I figured a way to do this and this is how its done.



    s = "apples taste good";
    ss = s.substr(0,6);
    cout << ss << endl;


    the output is:
  3. Replies
    3
    Views
    1,154

    hello, thank you for your quick reply, but im...

    hello, thank you for your quick reply, but im still confused here, do i add "\0" to the end of my source variable? how does this change anything? this is what i tried doing from what you said.


    ...
  4. Replies
    3
    Views
    1,154

    problems with strncpy

    Hello, I'm trying to write a simple code that gets the word "apples" from the line "apples taste good", I tried using the source below but the source variable ended up returning something like this:...
  5. Thread: SendMessage

    by reefa
    Replies
    15
    Views
    20,103

    Hello there, I tried using WM_KEYDOWN and...

    Hello there, I tried using WM_KEYDOWN and WM_KEYUP with this following code segment:



    SetForegroundWindow(hwnd);
    SendMessage(hwnd,WM_KEYDOWN, 0x00000011, 0x001D0001); // CTRL keydown...
  6. Thread: SendMessage

    by reefa
    Replies
    15
    Views
    20,103

    I'm not sure if its called stimulating a hot-key...

    I'm not sure if its called stimulating a hot-key or what not, but what I want to do is send CTRL+S so notepad recognizes that as the Hotkey and then opens up the "Save As..." dialog.
    I can use...
  7. Thread: SendMessage

    by reefa
    Replies
    15
    Views
    20,103

    I tried to replace it with WM_KEYDOWN, then I...

    I tried to replace it with WM_KEYDOWN, then I tried it followed by a WM_KEYUP.
    I have read that WM_KEYDOWN and WM_KEYUP are notification messages, that tell you something happend, sending messages...
  8. Thread: SendMessage

    by reefa
    Replies
    15
    Views
    20,103

    SendMessage

    Hello, I am trying to use the SendMessage function to send CTRL+S to notepad, what I have figured out so far is that I need both the parent "Notepad" and child handle "Edit" for notepad using...
Results 1 to 8 of 9