Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
free forum
 



Need help with C# xD

View previous topic View next topic Go down

Need help with C# xD

Post by Prototype on Tue Dec 01, 2009 11:11 pm

Lol I am bored so i decided to make a flooder. It is actually done but I just cannot find how to make it start when I press in example: F11 and Stop in example: F12

Thanks in advanced,
Kevin xD

Prototype
New member

Posts : 2
Join date : 2009-11-10

Back to top Go down

Re: Need help with C# xD

Post by Wallz on Wed Dec 02, 2009 1:24 am

Here is an example off the top of my head which you could use:
Code:
 public Flooder()
        {
            InitializeComponent();
            RegisterHotKey(this.Handle, 9000, 2, (int)Keys.F11); //On
        }

 protected override void WndProc(ref Message m) //Controls what to do when hotkey is pressed
        {
            base.WndProc(ref m);
            switch (m.Msg)
            {
                case 0x312:
                    switch (m.WParam.ToInt32())
                    {
                        case 9000: //this is the hotkey ID as you can see above
                              FlooderTimer.Enabled = true; //put here the code when the hotkey is pressed
                            break;
                    }
                    break;
              }

This should also help: http://msdn.microsoft.com/en-us/library/ms646309%28VS.85%29.aspx

Wallz
Bronze Member
Bronze Member

Posts : 104
Join date : 2009-08-15

Back to top Go down

Re: Need help with C# xD

Post by Prototype on Thu Dec 03, 2009 3:25 pm

Ty :3

Prototype
New member

Posts : 2
Join date : 2009-11-10

Back to top Go down

Re: Need help with C# xD

Post by wafflemaster on Mon Dec 14, 2009 9:43 am

btw, if you're wondering what 0x312 means, it's the definition of WM_HOTKEY

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with C# xD

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum