Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Updated Question] Extremely noob question [Updated Question]

PLEASE LOOK AT MY POST BELOW I HAVE A NEW QUESTION
[Image: h7l5r.gif]
My suggestion would either be an integer or a boolean value and use a do-while loop.
Code
Boolean booleanLoop
  Do Until booleanLoop = false
    [code here]
and then in the button code, use
Code
booleanLoop = false

Obviously this isn't, or shouldn't be real code. It is just an idea to get you started.

~Virtuous
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.
(Jan 16, 1970 02:40 AM)Reject Wrote:  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.

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.
[Image: h7l5r.gif]
(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.

(Jan 16, 1970 02:40 AM)Reject Wrote:  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.
It'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.
(Jan 16, 1970 02:40 AM)Reject Wrote:  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.

lol .. someone thinks that he is too smart..! i salute you the great programmer..! the best ! LMAO! 😁
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?
[Image: h7l5r.gif]
Use GetAsyncKeyState, like this:

Code
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer

  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    Dim f1key,f2key As Boolean
    f1key = GetAsyncKeyState(Keys.F1)
    f2key = GetAsyncKeyState(Keys.F2)
    If f1key = True Then
  'start
    ElseIf f2key = True Then
  'stop
    End If
  End Sub


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SIM-2362662Jan 12, 2020 05:30 PM 5 216 Jan 12, 2020 05:30 PM
Last Post: Riԁdle
[C#] by ДжеймсFeb 9, 2015 06:44 AM 17 969 Feb 9, 2015 06:44 AM
Last Post: Джеймс
[C] by ๖ۣۜOpulenceJul 23, 2014 12:54 PM 2 402 Jul 23, 2014 12:54 PM
Last Post: ๖ۣۜOpulence