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 


[C++]How to make a configurable key to spam?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Jul 28, 2008 4:32 am    Post subject: Reply with quote

sponge wrote:
noz3001 wrote:
Bit offtopic, but I always thought Ghost Online used DInput?
It does. =/ If you check the WNDPROC, you will see no cmps with WM_KEYDOWN, WM_CHAR or WM_UNICHAR.


Then why not visit that forum which specialises in this stuff and get a DInput hook?
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Jul 29, 2008 11:05 am    Post subject: Reply with quote

ReadFile for a VK code and use that (since you are using a console app) ?
Back to top
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jul 29, 2008 11:39 am    Post subject: Reply with quote

If it's a console application, I recommend ReadConsoleInput.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Jul 29, 2008 12:53 pm    Post subject: Reply with quote

Or call GetStdHandle, use that to FlushConsoleInputBuffer, then loop Sleep with kbhit until it returns true. When that happens, call getch and the return should be scancode of the key pressed. However, from memory this will not work for control keys or F-keys.

nb. kbhit and getch are declared in conio.h
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 programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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