![]() |
|
[.NET] [Updated Question] Extremely noob question [Updated Question] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [Updated Question] Extremely noob question [Updated Question] (/showthread.php?tid=2270655) |
[Updated Question] Extremely noob question [Updated Question] - Scum - Mar 3, 2012 PLEASE LOOK AT MY POST BELOW I HAVE A NEW QUESTION * - ᒪeumonic - Mar 3, 2012 My suggestion would either be an integer or a boolean value and use a do-while loop. Code Boolean booleanLoopCode booleanLoop = falseObviously this isn't, or shouldn't be real code. It is just an idea to get you started. ~Virtuous * - Reject - Mar 4, 2012 Use a timer. Then when the button is press just do timer1.stop Btw, I made the skype crasher and it's not exactly easy to program, good luck. P.S. You're not going to be able to code one better than me, about 4 people have tried. * - Scum - Mar 4, 2012 (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just do I didn't plan on making mine better than yours. I just think that its cheap of you asking $10 for a free code. Thanks for the help though. * - Deceptive - Mar 4, 2012 (Jan 16, 1970 02:40 AM)Reject Wrote: P.S. You're not going to be able to code one better than me, about 4 people have tried. Challenge accepted to the max. Going to post it open source. * - dnEehT - Mar 4, 2012 (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just doIt's people like you that deter people from coding "you're not going to be able to code one better than me" sound's like your butt-hurt. * - xcodecracker - Mar 4, 2012 (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just do lol .. someone thinks that he is too smart..! i salute you the great programmer..! the best ! LMAO! 😁 * - Scum - Mar 4, 2012 Ok I now need one last thing then im releasing the program, how do I assing the F1 key to start and the F2 Key to stop. I tried using this code for F1: Private Sub Button1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Button1.KeyPress If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.F1) Then Timer1.Enabled = True But it did not work : \ Any suggestions? * - tokzikate - Mar 4, 2012 Use GetAsyncKeyState, like this: Code Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer |