Silent mouse clicks?

Discussion in 'Programming General' started by I 1337 I, Aug 18, 2009.

Silent mouse clicks?
  1. Unread #1 - Aug 18, 2009 at 9:25 AM
  2. I 1337 I
    Joined:
    Aug 18, 2007
    Posts:
    1,158
    Referrals:
    1
    Sythe Gold:
    0

    I 1337 I Guru
    Banned

    Silent mouse clicks?

    Im creating a bot (not for rs) in VB.net but how do i make it so it clicks a position silent. Like so it wouldnt use my mouse? I know how to make it click positions but how to make it do it silent, like when the program is minimized it would still click the spot in the bot so the click wouldnt effect anythingf else.

    I mean like rsbots click, it works even when the program is minimized etc. (yes i know its made in Java)
     
  3. Unread #2 - Aug 18, 2009 at 5:54 PM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    Silent mouse clicks?

    SendMessage most likely.
     
  5. Unread #3 - Sep 17, 2009 at 2:22 AM
  6. ipivb
    Joined:
    Sep 17, 2009
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0

    ipivb Newcomer

    Silent mouse clicks?

    here i use this
    Code:
      Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" ( _
       ByVal hwnd As IntPtr, _
       ByVal wMsg As Int32, _
       ByVal wParam As Int32, _
       ByVal lParam As Int32) As Int32
        Public Declare Function WindowFromPoint Lib "user32" ( _
        ByVal stPoint As Point) As IntPtr
        Public Const WM_LBUTTONDOWN = &H201
        Public Const WM_LBUTTONUP = &H202
        Public Sub DoClick()
            Dim MyPoint As Point
            MyPoint.X = textbox1.text.Text
            MyPoint.Y = textbox2.text.Text
            Dim ptHwnd As IntPtr = WindowFromPoint(MyPoint)
            Dim retVal As Int32 = PostMessage(ptHwnd, WM_LBUTTONDOWN, 0, 0&)
            retVal = PostMessage(ptHwnd, WM_LBUTTONUP, 0, 0&)
        End Sub
    
    i think ive seen you before are you planing on using this fir CB,CL ? if you are i can give you some other code that will work for that
     
  7. Unread #4 - Sep 24, 2009 at 1:11 PM
  8. I 1337 I
    Joined:
    Aug 18, 2007
    Posts:
    1,158
    Referrals:
    1
    Sythe Gold:
    0

    I 1337 I Guru
    Banned

    Silent mouse clicks?

    Not only for CB, but for other games :) Thanks for that, trying it out soon.


    E: Doesnt work when program minimized, but thanks for it, as it doesnt use my own mouse :)
     
< [RuneScape] Howto Make an AutoTalker [RuneScape] | Minimizing >

Users viewing this thread
1 guest


 
 
Adblock breaks this site