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...
Type: Posts; User: reefa
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...
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:
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.
...
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:...
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...
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...
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...
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...