Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


9dragons keystroke program

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Spleshmen
Cheater
Reputation: 0

Joined: 11 Feb 2008
Posts: 25

PostPosted: Thu Feb 14, 2008 2:44 pm    Post subject: 9dragons keystroke program Reply with quote

i am tryng to make a program to make a program that will simulate the keystroke of different buttons...but i have some problems ,for example if i change the window class name to notepad and open notepad the program will type the numbers but it wont work on the 9dragon game,if i put a message to show me if the forground window is 9dragon it works but if i put the code for the keystroks it wont work.here is my code
Code:
#include <string.h>
#include <iostream>
#include <windows.h>

using namespace std;
int main () {
    HWND window,hh,hw;
    int contor = 0;
    while (contor!=1) {
          hh = GetForegroundWindow();
          hw = FindWindow("X3DKernel",NULL);
          if (hh=hw)
          contor = 1;
    }     
    if (contor == 1) {
          for (int i=0;i<500;i++) {
          keybd_event(VkKeyScan('1'),0x02,0 , 0);
          keybd_event(VkKeyScan('1'),0x02, KEYEVENTF_KEYUP,0);
          Sleep(1500);
          keybd_event(VkKeyScan('5'),0x06,0 , 0);
          keybd_event(VkKeyScan('5'),0x06, KEYEVENTF_KEYUP,0);
          Sleep(3000);
          }     
    system("pause");
    }



untitled.PNG
 Description:
picture of the class name of the 9dragon window
 Filesize:  884.82 KB
 Viewed:  9244 Time(s)

untitled.PNG


Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Fri Feb 15, 2008 1:56 am    Post subject: Reply with quote

nice try, but the basic functions are usually blocked by the game (keydb_event) what kind of protection does it have?
_________________
Back to top
View user's profile Send private message
Semeii
How do I cheat?
Reputation: 0

Joined: 14 Feb 2008
Posts: 3

PostPosted: Fri Feb 15, 2008 2:05 am    Post subject: Reply with quote

Try to put some sleep before it detects game, to ensure that when you try to cilck you'r in correct game screen (playing)

Also check if you ever have contor set to 1 Razz
Back to top
View user's profile Send private message
Spleshmen
Cheater
Reputation: 0

Joined: 11 Feb 2008
Posts: 25

PostPosted: Fri Feb 15, 2008 3:28 am    Post subject: Reply with quote

gameguard,is there another way i can simulate keystrokes for this game?some1 told me i should try to make a program that will simulate the keystroks for directx or something like this...
Back to top
View user's profile Send private message
Pwnzistor
How do I cheat?
Reputation: 0

Joined: 15 Feb 2008
Posts: 1

PostPosted: Fri Feb 15, 2008 12:51 pm    Post subject: Reply with quote

I registered just to make this post :p. Anyways, I am curious to whether or not it would be a viable option for you to make a looping macro for this? I have a small history with macro creating with my G15 programming software and other miscellaneous programs. Also, I am curious to the possibility for you to program some sort of packet sniffer that would allow you to find specific values in incoming packets that may contain information on this " sleep " so that you may avoid it. I have experience with some automation in a game called World of Warcraft, FISHING, because seriously.. who wants to sit and fish Sad. You would be able to take a dropper that gathered the color information of the bobber, and would automatically enter the keystroke to pull in the like when that color moved, and I was wondering if this same technique may be useful in 9dragons.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites