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 


i wanna leaarn

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

Joined: 06 May 2008
Posts: 39

PostPosted: Sun Jul 20, 2008 3:56 am    Post subject: i wanna leaarn Reply with quote

hey i was wondering if someone can teach me or give me a tut on how to make a autoshfiter for an online game i play its called nittolegends..is it possible? thx in advance..
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

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

PostPosted: Sun Jul 20, 2008 7:04 am    Post subject: Reply with quote

i might be able to help you but we really need more information, what does this 'autoshifter' do?
_________________
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Sun Jul 20, 2008 2:04 pm    Post subject: Reply with quote

I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));

_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
KilaKali209
Cheater
Reputation: 0

Joined: 06 May 2008
Posts: 39

PostPosted: Mon Jul 21, 2008 2:25 am    Post subject: Reply with quote

HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


hey im a noob at this so yea where do i put this code to?


Snootae wrote:
i might be able to help you but we really need more information, what does this 'autoshifter' do?


all it does is shift the gears of the car..and can u make it so it like can shift from an r/t = reaction time ranging from .500 - .510?


and the game is called nittolegends
Back to top
View user's profile Send private message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Mon Jul 21, 2008 3:25 am    Post subject: Reply with quote

Hes talking about an online racing game http://www.nittolegends.com

He wants to make a program that will shift gears for his car I assume?
If you want any help your going to have to provide more information most likely.

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jul 21, 2008 3:30 am    Post subject: Reply with quote

HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


Why are you using SendInput twice when it can be done once?
Back to top
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Mon Jul 21, 2008 8:54 am    Post subject: Reply with quote

Quick question, is the memset required? Why do you need to zero out a freshly defined structure?
Back to top
View user's profile Send private message AIM Address MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Jul 21, 2008 10:39 am    Post subject: Reply with quote

slovach wrote:
HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


Why are you using SendInput twice when it can be done once?


Yep you only need:

Code:
   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));


KEYEVENTF_KEYUP is not needed.
Back to top
View user's profile Send private message Send e-mail
KilaKali209
Cheater
Reputation: 0

Joined: 06 May 2008
Posts: 39

PostPosted: Mon Jul 21, 2008 3:40 pm    Post subject: Reply with quote

manc wrote:
Hes talking about an online racing game http://www.nittolegends.com

He wants to make a program that will shift gears for his car I assume?
If you want any help your going to have to provide more information most likely.


yes thats correct what kinda info do u guys need? heres a link on how the game works http://youtube.com/watch?v=Hkqu9PNmDUM
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Mon Jul 21, 2008 3:45 pm    Post subject: Reply with quote

slovach wrote:
HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


Why are you using SendInput twice when it can be done once?


The second one is to release the key. I never tried it without releaseing the key, does it also work that way?

_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
KilaKali209
Cheater
Reputation: 0

Joined: 06 May 2008
Posts: 39

PostPosted: Mon Jul 21, 2008 4:31 pm    Post subject: Reply with quote

Aznboy what game are u usin this code for? and how do i input these codes to nittolegends?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jul 21, 2008 5:05 pm    Post subject: Reply with quote

HornyAZNBoy wrote:
slovach wrote:
HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


Why are you using SendInput twice when it can be done once?


The second one is to release the key. I never tried it without releaseing the key, does it also work that way?


I'm not saying to skip the keyup, but rather it can all be done at once.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jul 21, 2008 5:30 pm    Post subject: Reply with quote

He don't have to "release" the key, its not really down, when you hold a button down for a few milliseconds it just sends another WM_KEYDOWN message with diffrent information.

By sending WM_KEYDOWN message only once it's still not gonna spam the key until WM_KEYUP message is recived.
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Mon Jul 21, 2008 7:05 pm    Post subject: Reply with quote

What you'll probably have to do it make a DLL you can inject into the process. I'm assuming it has some sort of anti-hack, so you can't use Read/WriteProcessMemory. Then, you''ll have to find the RPM value in memory. Then, in the DLL, you'll have to make a loop that constatntly checks the RPM value to see if you need to shift. if so, use sendinput or sendmessage to send it the shifter key.
_________________
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Tue Jul 22, 2008 10:00 am    Post subject: Reply with quote

slovach wrote:
HornyAZNBoy wrote:
slovach wrote:
HornyAZNBoy wrote:
I thinks 'autoshifter' is just pressing shift... Well here is a code for your 'autoshifter' using SendInput():


Code:

   INPUT Input;
   
   memset(&Input, 0, sizeof(INPUT));

   //Press shift down
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
   SendInput(1, &Input, sizeof(INPUT));
   
   //Release shift key
   Input.type = INPUT_KEYBOARD;
   Input.ki.wVk = VK_LSHIFT;
   Input.ki.dwFlags = KEYEVENTF_KEYUP;
   SendInput(1, &Input, sizeof(INPUT));


Why are you using SendInput twice when it can be done once?


The second one is to release the key. I never tried it without releaseing the key, does it also work that way?


I'm not saying to skip the keyup, but rather it can all be done at once.


I understand what you are talking about, but... I do no know how to do it woth at the same time. I also do it with 2 SendInputs because I can add a delay in the middle.

_________________
What dosen't kill you, usually does the second time.
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
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