Send Message to Other Program

Hi guys.

I am the new. I want to make a program that changes the game score. I know address of game score. But I can't change. When I run the program, Program has stopped working. How can i do that?

(I want to do that with C++ or Qt)

This is my part of code. Rest of code is general Win API codes.
1
2
3
4
5
6
7
8
9
HWND handle1 = FindWindow(NULL, "Spider Solitaire");

    if(handle1 != NULL){
    cout << "HWND: " << handle1 << " captured." << endl;

    int *p = (int *)0x00388344; //Address of game score 

    *p = 100000;
}
Last edited on
Topic archived. No new replies allowed.