Short cut to stop autoclicker when its clickin in rs?

Discussion in 'Programming General' started by elborio, Jan 12, 2008.

Short cut to stop autoclicker when its clickin in rs?
  1. Unread #1 - Jan 12, 2008 at 2:11 PM
  2. elborio
    Referrals:
    0

    elborio Guest

    Short cut to stop autoclicker when its clickin in rs?

    just the title.

    i want to stop the script when i press a key like f9 orsomething like that
     
  3. Unread #2 - Jan 12, 2008 at 2:55 PM
  4. Varreon
    Joined:
    Nov 23, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0

    Varreon Member

    Short cut to stop autoclicker when its clickin in rs?

    I know C++ has registerhotkeyex. Search for it on msdn, and you should find something.
     
  5. Unread #3 - Jan 12, 2008 at 3:17 PM
  6. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Short cut to stop autoclicker when its clickin in rs?

    Code:
    Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    
    Public Const VK_F9 = &H78 'I determined that this was the key value for VK_F9 by looking for it in the C++ include files – dunno where you can find different key codes, try Google…
    Code:
    While GetAsyncKeyState(VK_F9) = 0
    'Code
    End While 'or Wend if you’re using VB6.
     
  7. Unread #4 - Jan 13, 2008 at 8:21 AM
  8. imma archer1
    Referrals:
    0

    imma archer1 Guest

    Short cut to stop autoclicker when its clickin in rs?

    im to stupid to comprehend, can you translate that in2 baby language plz?
     
  9. Unread #5 - Jan 13, 2008 at 12:36 PM
  10. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Short cut to stop autoclicker when its clickin in rs?

    >_> I don't think it's possible to simplify it more than that...
     
  11. Unread #6 - Jan 14, 2008 at 8:38 PM
  12. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    Short cut to stop autoclicker when its clickin in rs?

    [sarcasm]you have not spoon fed him enough[/sarcasm], i'm guessing he would like to know where to put the lines of code. if that is the case then for declaring GetAsyncKeyState that would go at the top of all your code (obviously under Public Class Form1). as for writing code to make it work, add a timer and in the timer add this line of code.

    Code:
    if GetAsyncKeyState(keys.F1) then
    timer1.enabled = true
    end if
    if GetAsyncKeyState(keys.F2) then
    timer1.enabled = false
    end if
    timer1 being used for the mouse events (up and down). then of course you will need to add code to enable timer2, possibly at the start up of your program so during form1_load write
    Code:
    timer2.enabled = true
     
< Adding Users To Active Directory | a .txt/TEXT to .exe/EXE >

Users viewing this thread
1 guest


 
 
Adblock breaks this site