Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalbad and fail of steam Pin
George_George17-Feb-08 15:27
George_George17-Feb-08 15:27 
GeneralRe: bad and fail of steam Pin
Hamid_RT17-Feb-08 19:35
Hamid_RT17-Feb-08 19:35 
GeneralRe: bad and fail of steam Pin
George_George18-Feb-08 1:11
George_George18-Feb-08 1:11 
GeneralRe: bad and fail of steam Pin
CPallini17-Feb-08 22:13
mveCPallini17-Feb-08 22:13 
GeneralRe: bad and fail of steam Pin
George_George18-Feb-08 1:06
George_George18-Feb-08 1:06 
GeneralVista SDK Build Problem Pin
Akin Ocal17-Feb-08 12:40
Akin Ocal17-Feb-08 12:40 
QuestionEasiest way to change owner on all object's child objects ? Pin
vilius_m17-Feb-08 9:20
vilius_m17-Feb-08 9:20 
Questiongame keyboard simulation Pin
Spleshmen17-Feb-08 8:19
Spleshmen17-Feb-08 8:19 
hy,i am new to this and have a little problem.
i am tryng to simulate a keystroke in a game calld 9dragons,but he has a protection calld GameGuard that is blocking my program.i am using keybd_event to send the keystroks,but this GameGuard blocks them,sendinput() and send();i have noticed that if i you "on screen keyboard" from windows it works,i can send keystrokes with that program,can some1 tell me another way i can send the keystrokes to the game or how dose on screen keyboard works.the game is mayd in directX if it mathers...
here is my code :
<br />
#include <string.h><br />
#include <iostream><br />
#include <windows.h><br />
<br />
using namespace std;<br />
int main () {<br />
    HWND window,hh,hw;<br />
    int contor = 0;<br />
    while (contor!=1) {<br />
          hh = GetForegroundWindow(); <br />
          hw = FindWindow("X3DKernel",NULL);<br />
          if (hh=hw)<br />
          contor = 1;<br />
    }      <br />
    if (contor == 1) {<br />
          for (int i=0;i<500;i++) {<br />
          keybd_event(VkKeyScan('1'),0x02,0 , 0);<br />
          keybd_event(VkKeyScan('1'),0x02, KEYEVENTF_KEYUP,0);<br />
          Sleep(1500);<br />
          keybd_event(VkKeyScan('5'),0x06,0 , 0);<br />
          keybd_event(VkKeyScan('5'),0x06, KEYEVENTF_KEYUP,0);<br />
          Sleep(3000);<br />
          }      <br />
    system("pause");<br />
    }<br />
}  <br />
</windows.h></iostream></string.h>

the code works for programs like notepad Smile | :)
GeneralRe: game keyboard simulation Pin
Randor 18-Feb-08 8:13
professional Randor 18-Feb-08 8:13 
GeneralRe: game keyboard simulation Pin
Spleshmen19-Feb-08 1:49
Spleshmen19-Feb-08 1:49 
QuestionSimple socks TCP connecting Pin
Johpoke17-Feb-08 4:18
Johpoke17-Feb-08 4:18 
GeneralRe: Simple socks TCP connecting Pin
Moak21-Feb-08 12:11
Moak21-Feb-08 12:11 
GeneralRe: Simple socks TCP connecting Pin
Johpoke22-Feb-08 4:30
Johpoke22-Feb-08 4:30 
GeneralRe: Simple socks TCP connecting Pin
Moak22-Feb-08 4:42
Moak22-Feb-08 4:42 
GeneralRe: Simple socks TCP connecting Pin
Johpoke23-Feb-08 2:37
Johpoke23-Feb-08 2:37 
GeneralRe: Simple socks TCP connecting Pin
Moak26-Feb-08 0:08
Moak26-Feb-08 0:08 
GeneralRe: Simple socks TCP connecting Pin
Johpoke29-Feb-08 21:55
Johpoke29-Feb-08 21:55 
GeneralRe: Simple socks TCP connecting Pin
Moak29-Feb-08 22:52
Moak29-Feb-08 22:52 
QuestionRe: Simple socks TCP connecting Pin
Moak23-Feb-08 3:01
Moak23-Feb-08 3:01 
GeneralRe: Simple socks TCP connecting Pin
Johpoke23-Feb-08 3:06
Johpoke23-Feb-08 3:06 
GeneralRe: Simple socks TCP connecting Pin
Moak26-Feb-08 0:34
Moak26-Feb-08 0:34 
Questionproblems with cap and vfw Pin
cmos17-Feb-08 4:09
cmos17-Feb-08 4:09 
QuestionRe: problems with cap and vfw Pin
cmos17-Feb-08 5:02
cmos17-Feb-08 5:02 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 9:46
Mark Salsbery17-Feb-08 9:46 
AnswerRe: problems with cap and vfw Pin
cmos17-Feb-08 10:07
cmos17-Feb-08 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.