Results 1 to 6 of 6
  1. #1
    Izochor's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    511
    Reputation
    33
    Thanks
    146
    My Mood
    Lurking

    Toggle function in vb net

    Can anybody help me with this?

    Example: H key is binded to address(maxfps) and it should write 125 and 250 in turns if I press it.

  2. #2
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,990
    My Mood
    Cheerful
    Code:
    Dim flag as Boolean 
    flag = False
    'timer
    'checks
    If flag = False Then
    'enable
    flag = True
    Else
    'disable
    flag = False
    End If
    Something like this..
    This is ON/OF function tho.
    Last edited by Lovroman; 01-27-2014 at 01:56 PM.

  3. #3
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,920
    Reputation
    574
    Thanks
    5,050
    My Mood
    Twisted
    Quote Originally Posted by Lovroman View Post
    Something like this..
    All you need is to include the actual write function in this one and it should be good to go
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  4. #4
    Minnesota Dabs's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    USA
    Posts
    4,241
    Reputation
    619
    Thanks
    1,078
    My Mood
    Relaxed
    Quote Originally Posted by Lovroman View Post
    Code:
    Dim flag as Boolean 
    flag = False
    'timer
    'checks
    If flag = False Then
    'enable
    flag = True
    Else
    'disable
    flag = False
    End If
    Something like this..
    This is ON/OF function tho.
    What season of HIMYM are you on?
    Successful Trades: 52

    Scammed Trades: 6

    Vouch Profile!

  5. #5
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,990
    My Mood
    Cheerful
    Quote Originally Posted by BlueTreesTV View Post


    What season of HIMYM are you on?
    Dunno.
    I don't keep a track.

  6. #6
    Izochor's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    511
    Reputation
    33
    Thanks
    146
    My Mood
    Lurking
    Thx for the help it works!

Similar Threads

  1. [Release] How do i call .net reference function from vb6 application?
    By XTIANZKIE21 in forum Visual Basic Programming
    Replies: 0
    Last Post: 10-07-2012, 07:59 AM
  2. [Help Request] How To Create A Toggle Function CE
    By Hikaru87 in forum C++/C Programming
    Replies: 4
    Last Post: 07-22-2012, 04:12 AM
  3. [VB.NET] ReadOnlineFile (WebClient) [Function]
    By Callo in forum Visual Basic Programming
    Replies: 4
    Last Post: 07-04-2010, 11:23 PM
  4. [VB.NET] IsAutoITFile [Function]
    By Callo in forum Visual Basic Programming
    Replies: 4
    Last Post: 07-04-2010, 11:23 PM
  5. what functions can be used in a vb.net dll?
    By t7ancients in forum Visual Basic Programming
    Replies: 0
    Last Post: 04-01-2009, 07:20 PM