| View previous topic :: View next topic |
| Author |
Message |
KilaKali209 Cheater
Reputation: 0
Joined: 06 May 2008 Posts: 39
|
Posted: Sun Jul 20, 2008 3:56 am Post subject: i wanna leaarn |
|
|
| 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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Sun Jul 20, 2008 7:04 am Post subject: |
|
|
i might be able to help you but we really need more information, what does this 'autoshifter' do?
_________________
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Sun Jul 20, 2008 2:04 pm Post subject: |
|
|
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 |
|
 |
KilaKali209 Cheater
Reputation: 0
Joined: 06 May 2008 Posts: 39
|
Posted: Mon Jul 21, 2008 2:25 am Post subject: |
|
|
| 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 |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Mon Jul 21, 2008 3:25 am Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Jul 21, 2008 3:30 am Post subject: |
|
|
| 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 |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Mon Jul 21, 2008 8:54 am Post subject: |
|
|
| Quick question, is the memset required? Why do you need to zero out a freshly defined structure?
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Mon Jul 21, 2008 10:39 am Post subject: |
|
|
| 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 |
|
 |
KilaKali209 Cheater
Reputation: 0
Joined: 06 May 2008 Posts: 39
|
Posted: Mon Jul 21, 2008 3:40 pm Post subject: |
|
|
| 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 |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Mon Jul 21, 2008 3:45 pm Post subject: |
|
|
| 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 |
|
 |
KilaKali209 Cheater
Reputation: 0
Joined: 06 May 2008 Posts: 39
|
Posted: Mon Jul 21, 2008 4:31 pm Post subject: |
|
|
| Aznboy what game are u usin this code for? and how do i input these codes to nittolegends?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Jul 21, 2008 5:05 pm Post subject: |
|
|
| 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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jul 21, 2008 5:30 pm Post subject: |
|
|
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 |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Jul 21, 2008 7:05 pm Post subject: |
|
|
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 |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Tue Jul 22, 2008 10:00 am Post subject: |
|
|
| 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 |
|
 |
|