Ok, ive been taking apart *M*s source code for his multi hack... trying to figure out how it works etc, but as of yet, still cannot find out how to send mouse events PURELY to a hooked client... This is the entire code for the main form. (ive edited out loads of code which didnt relate to the clicker function.
So if someone could possibly give me the syntax for sending clicks to a specific window handle plzz letme know...
I heard something about SendMessage (hWnd, event, reply) :confused:
And question for *M*.. is this where you got the click code from?[Only registered and activated users can see links. Click Here To Register...]
Code:
[SIZE=1]Dim Handle As Long[/SIZE]
[SIZE=1]Dim ProcessID As Long[/SIZE]
[SIZE=1]Dim ProcessHandle As Long[/SIZE]
[SIZE=1]Dim POINT_API As POINTAPI[/SIZE]
[SIZE=1]Dim X As Long, Y As Long, Z As Long, A As Long[/SIZE]
[SIZE=1]Private Const PROCESS_ALL_ACCESS = &H1F0FFF[/SIZE]
[SIZE=1]Option Explicit[/SIZE]
[SIZE=1]Private Sub LeftClick()[/SIZE]
[SIZE=1][COLOR=black]' mouse_event LEFT_DOWN, 0&, 0&, X, Y[/COLOR][/SIZE]
[SIZE=1][COLOR=black]' mouse_event LEFT_UP, 0&, 0&, X, Y[/COLOR][/SIZE]
[SIZE=1][COLOR=blue] mouse_event RIGHT_DOWN, 0&, 0&, X, Y - For testing ive only enabled these clicks.[/COLOR][/SIZE]
[SIZE=1][COLOR=blue] mouse_event RIGHT_UP, 0&, 0&, X, Y[/COLOR][/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Function GetMousePosX() As Long[/SIZE]
[SIZE=1] Z = GetCursorPos(POINT_API)[/SIZE]
[SIZE=1] GetMousePosX = POINT_API.X[/SIZE]
[SIZE=1]End Function[/SIZE]
[SIZE=1]Private Function GetMousePosY() As Long[/SIZE]
[SIZE=1] Z = GetCursorPos(POINT_API)[/SIZE]
[SIZE=1] GetMousePosY = POINT_API.Y[/SIZE]
[SIZE=1]End Function[/SIZE]
[SIZE=1]Private Function GetKeyState(Key As Integer) As Boolean[/SIZE]
[SIZE=1] GetKeyState = CBool(GetAsyncKeyState(Key))[/SIZE]
[SIZE=1]End Function[/SIZE]
[SIZE=1]Private Sub StartClick()[/SIZE]
[SIZE=1] If Clicker.Enabled = False Then[/SIZE]
[SIZE=1] Clicker.Interval = CInt(Val(Text8.Text))[/SIZE]
[SIZE=1] Clicker.Enabled = True[/SIZE]
[SIZE=1] Label13.Caption = " Status: Clicking..."[/SIZE]
[SIZE=1] End If[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub StopClick()[/SIZE]
[SIZE=1] If Clicker.Enabled = True Then[/SIZE]
[SIZE=1] Clicker.Enabled = False[/SIZE]
[SIZE=1] Label13.Caption = " Status: Clicking Stopped!"[/SIZE]
[SIZE=1] End If[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub ClickCounter_Timer()[/SIZE]
[SIZE=1] If A = 0 Then[/SIZE]
[SIZE=1] ClickCounter.Enabled = False[/SIZE]
[SIZE=1] Command24.Caption = "Click"[/SIZE]
[SIZE=1] Label3.Caption = "0 Clicks Per Sec"[/SIZE]
[SIZE=1] Else[/SIZE]
[SIZE=1] Label3.Caption = CStr(A * 0.25) & " Clicks Per Sec"[/SIZE]
[SIZE=1] A = 0[/SIZE]
[SIZE=1] End If[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Clicker_Timer()[/SIZE]
[SIZE=1] Call LeftClick[/SIZE]
[SIZE=1] DoEvents[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Command22_Click()[/SIZE]
[SIZE=1] Call StartClick[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Command23_Click()[/SIZE]
[SIZE=1] Call StopClick[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Command24_Click()[/SIZE]
[SIZE=1] If ClickCounter.Enabled = False Then ClickCounter.Enabled = True[/SIZE]
[SIZE=1] If Label3.Caption <> "Counting..." Then Label3.Caption = "Testing..."[/SIZE]
[SIZE=1] A = A + 1[/SIZE]
[SIZE=1] Command24.Caption = CStr(A)[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Hotkey_XY_Timer()[/SIZE]
[SIZE=1] If GetKeyState(vbKeyF9) = True Then Call StartClick[/SIZE]
[SIZE=1] If GetKeyState(vbKeyF10) = True Then Call StopClick[/SIZE]
[SIZE=1] Label14.Caption = "X: " & CStr(GetMousePosX)[/SIZE]
[SIZE=1] Label16.Caption = "Y: " & CStr(GetMousePosY)[/SIZE]
[SIZE=1] DoEvents[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Timer1_Timer() 'Window Hooking[/SIZE]
[SIZE=1] Handle = FindWindow(vbNullString, "[Conquer2.0]")[/SIZE]
[SIZE=1] GetWindowThreadProcessId Handle, ProcessID[/SIZE]
[SIZE=1] ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS, False, ProcessID)[/SIZE]
[SIZE=1] If Handle > 0 Then[/SIZE]
[SIZE=1] WinHook.Text = "Hooked"[/SIZE]
[SIZE=1] Else[/SIZE]
[SIZE=1] WinHook.Text = "Waiting..."[/SIZE]
[SIZE=1] End If[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Form_Load()[/SIZE]
[SIZE=1]frm_MultiHack.Show[/SIZE]
[SIZE=1]frm_MultiHack.Visible = True[/SIZE]
[SIZE=1]Call Timer3_Timer[/SIZE]
[SIZE=1]Timer4.Enabled = False[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Form_Unload(Cancel As Integer)[/SIZE]
[SIZE=1]Call Option1_Click 'Turn Speed off on close[/SIZE]
[SIZE=1]Timer4.Enabled = False[/SIZE]
[SIZE=1]Timer5.Enabled = False[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Timer4_Timer()[/SIZE]
[SIZE=1]Timer4.Enabled = True[/SIZE]
[SIZE=1]SendKeys "{F10}"[/SIZE]
[SIZE=1]End Sub[/SIZE]
[SIZE=1]Private Sub Timer5_Timer() '//Spam F10/XP Skill[/SIZE]
[SIZE=1]Timer5.Enabled = False[/SIZE]
[SIZE=1]Call Timer4_Timer[/SIZE]
[SIZE=1]End Sub[/SIZE]
I heard something about SendMessage (hWnd, event, reply) :confused:
And question for *M*.. is this where you got the click code from?[Only registered and activated users can see links. Click Here To Register...]