Register for your free account! | Forgot your password?

You last visited: Today at 02:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB Code Help

Discussion on VB Code Help within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 461
Received Thanks: 65
VB Code Help

Hey, Im just trying to make a simple ammo changer for practice, since its been some time since I last coded. However, I run the program, and it doesn't work.

So far, ive only programmed the x-4 key




What am I doing wrong? I press CTRL and nothing happens...
harman101 is offline  
Old 06/24/2014, 22:48   #2
 
jmpl3's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 407
Received Thanks: 274
Use the function GetAsyncKeystate ...
jmpl3 is offline  
Thanks
1 User
Old 06/24/2014, 22:49   #3


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Because it only checks for it, if the Form is active.

This should help you:
Requi is offline  
Thanks
1 User
Old 06/24/2014, 22:54   #4
 
elite*gold: 0
Join Date: Dec 2010
Posts: 461
Received Thanks: 65
?

Quote:
Originally Posted by Requi View Post
Because it only checks for it, if the Form is active.

This should help you:
What do you mean, it only 'checks for it', I thought if the user has pressed ctrl, then it sends key?
harman101 is offline  
Old 06/24/2014, 23:10   #5
 
mustangv7's Avatar
 
elite*gold: 50
Join Date: Aug 2011
Posts: 630
Received Thanks: 340
Quote:
Originally Posted by harman101 View Post
What do you mean, it only 'checks for it', I thought if the user has pressed ctrl, then it sends key?
The way you code it needs to have the form on focus. Instead of writing the ammo changer code into Form1_KeyDown, put it into a timer with interval 100ms for example.
mustangv7 is offline  
Thanks
4 Users
Old 06/25/2014, 13:19   #6

 
Arby's Avatar
 
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,037
Arrow DarkOrbit -> .NET Languages

#moved
Arby is offline  
Old 06/25/2014, 18:16   #7
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200


Better use this low level keyboard hook
'Heaven. is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[GAMESCOM-SHOP] Vindictus Code, FireFall BETA Code, McGame.com Code, Victory Ukash
10/18/2012 - elite*gold Trading - 8 Replies
Hallo Leute hab ein paar Sachen auf der Gamescom gesammelt und übrig, diese möchte ich hier verkaufen. Ich akzeptiere nur Paypal, E*gold und Paysafecards! Hier ist eine Liste mit Bildern (natürlich sind die Codes zensiert :D): 1. Firefall Beta KEY Ihr macht den Preis! Bild 2. Vindictus Code 50 e*gold Bild
used king Rammus code OR katarina kitty cat code (KR) → used PAX sivir code (NA / EU)
08/23/2012 - League of Legends Trading - 2 Replies
Hello Korea is my server users. I NA / EU servers have already been used in the "Pax Sivir Code" wants As a reward, "king Rammus code OR Katarina kitty cat code" I will send you to gift. Have already used the code, Feel free to do the exchange! Please send mail [email protected]
used king Rammus code OR katarina kitty cat code (KR) → used PAX sivir code (NA / EU)
08/21/2012 - League of Legends Trading - 1 Replies
your "already used in the NA / EU servers is Pax Sivir Code" Do you have? Want to exchange "Pax Sivir Code" I "king Rammus code OR Katarina kitty cat code" will provide I use this code in the NA / EU servers did not. just. South Korea on a server, you should not use Pax Sivir Code. If you are interested in this deal, contact me. e-mail: [email protected]



All times are GMT +1. The time now is 02:06.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.