Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 21:46

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

Advertisement



c# Help Code hotkey

Discussion on c# Help Code hotkey within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1
Received Thanks: 1
c# Help Code hotkey

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F5)
{

timer1.Start();
}
else
{
timer1.Stop();
}
}
^^^^Code not work
I want code is press F5 first >>timer1.Start();
press F5 again >>>timer1.Stop();
Thank-you Help me
it-ty is offline  
Thanks
1 User
Old 01/17/2015, 09:47   #2
 
elite*gold: 0
Join Date: Aug 2005
Posts: 80
Received Thanks: 13
your if statement is wrong


PHP Code:
if (e.KeyCode == Keys.F5)
{
    if (!
timer1.Enabled)
    {
        
timer1.Start();
    } else {
        
timer1.Stop();
    }

teto is offline  
Thanks
1 User
Old 01/21/2015, 21:46   #3
 
elite*gold: 0
Join Date: Dec 2008
Posts: 11
Received Thanks: 1
Code:
private void MainForm_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F6)
                timer1.Enabled = !timer1.Enabled;
        }
Attached Images
File Type: jpg 2015-01-21_21-57-19.jpg (12.2 KB, 24 views)
gerrus is offline  
Reply


Similar Threads Similar Threads
Hotkey
06/14/2013 - AutoIt - 5 Replies
Hey leute ich will das wenn ich z.b F1 drücke dass ich eine form öffne wie mache ich das ?
[HELP] For HotKey
06/13/2013 - Flyff Private Server - 4 Replies
Help please ! How to add GlowChange Hotkey ? Or How to Put GlowChange to Start Menu ? Please me please T.T Reply please i need Help !
Hotkey
06/09/2013 - AutoIt - 1 Replies
Hallo ich habe einen s4 hack gemacht man muss erst thanks drücken um ihn zu benutzen bei wenigen funkt das nicht deswegen möchte ich z.b f12 benutzen um das thanls zu über springen wie geht das ich wollte denen das den per pb senden danke
Suche Hotkey Code
10/26/2010 - General Coding - 10 Replies
Hallo, Ich suche ein Code wenn man den Button 3 drückt dass der Taskmanager kommt also die Keys: Strg + alt + entf Danke im Vorraus mfg.:bandit:
Need help with line code for looting Rare Items with auto hotkey
08/04/2009 - 12Sky2 - 10 Replies
Hi currently i have a fully working aoeing , 2-4 buff using , loooting , potting macro , it only loots all loots atm including junk unis , ive tried mesing with it to just pick up rares but ive made no progreas , was wondering if anyone can help me with the line of code i owuld need for it to select Rares within the ts2 window with the mouse click rather than just spamming loot key , any hints or ideas would be appreciated thanks



All times are GMT +2. The time now is 21:46.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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