Can someone make a .exe for me?

I've been looking at macro programs for what I'm trying to do, but I cant find any that work the way I want my process to work. I'm trying to find a program which I can hold down mouse button 1 and the program makes it so while mouse button 1 is being held down that it will be the equivalence of clicking mouse button 1 in a patter as fast as humanly possibly, then when your finger is not on mouse button 1 the patter stops. I hope you understand why I'm saying and am i looking in the wrong place, dose anyone know where I can get something like this, thank you!
[585 byte] By [shitbagz69] at [2007-11-20 11:51:49]
# 1 Re: Can someone make a .exe for me?
What do you mean by 'a pattern'? You mean clicking on another window ?
dglienna at 2007-11-9 19:32:06 >
# 2 Re: Can someone make a .exe for me?
I'm gonna try to explain this best i can thanks for the response.

Is it possible, to make a simple program which would do the following

When the .exe is open,
when you hold down mouse button 1.
It will click mouse button 1 for you, at a super fast rate, as fast as possible.
when you release mouse botton 1, it will not be clicking anymore.

So mousebutton 1 (click,click,click,click - untill u release the mouse button 1 button)

thanks
shitbagz69 at 2007-11-9 19:33:07 >
# 3 Re: Can someone make a .exe for me?
Try Sendmessage API on Mousedown event for simulating mouse click
Shaikh.Riyaz.a at 2007-11-9 19:34:09 >
# 4 Re: Can someone make a .exe for me?
It would only keep clicking while over your form. Not over any other window
dglienna at 2007-11-9 19:35:14 >
# 5 Re: Can someone make a .exe for me?
@dglienna : Help out something in this. It is not complete code.

Option Explicit

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

Private Declare Sub mouse_event Lib "user32" ( _
ByVal dwFlags As Long, _
ByVal dx As Long, ByVal dy As Long, _
ByVal cButtons As Long, _
ByVal dwExtraInfo As Long)

Private Const MOUSEEVENTF_ABSOLUTE = &H8000
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4

Private Sub Timer1_Timer()

If GetAsyncKeyState(1) = 0 Then
'Left mouse button is up
Else
'Left mouse button is down

mouse_event MOUSEEVENTF_LEFTDOWN Or OUSEEVENTF_ABSOLUTE, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP Or MOUSEEVENTF_ABSOLUTE, 0, 0, 0, 0

End If

End Sub
Shaikh.Riyaz.a at 2007-11-9 19:36:13 >
# 6 Re: Can someone make a .exe for me?
@dglienna : Help out something in this. It is not complete code.

Option Explicit

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

Private Declare Sub mouse_event Lib "user32" ( _
ByVal dwFlags As Long, _
ByVal dx As Long, ByVal dy As Long, _
ByVal cButtons As Long, _
ByVal dwExtraInfo As Long)

Private Const MOUSEEVENTF_ABSOLUTE = &H8000
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4

Private Sub Timer1_Timer()

If GetAsyncKeyState(1) = 0 Then
'Left mouse button is up
Else
'Left mouse button is down

mouse_event MOUSEEVENTF_LEFTDOWN Or OUSEEVENTF_ABSOLUTE, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP Or MOUSEEVENTF_ABSOLUTE, 0, 0, 0, 0

End If

End Sub

Exactly, Make the timer interval smaller for faster speeds but too fast can and will crash your application =[
I just want to point out that making a constant check of weather the button is UP can and will lag the program, especially in a timer.
Morhsn at 2007-11-9 19:37:11 >
# 7 Re: Can someone make a .exe for me?
Exactly, Make the timer interval smaller for faster speeds but too fast can and will crash your application =[
I just want to point out that making a constant check of weather the button is UP can and will lag the program, especially in a timer.

If you want to simulate only continous mouse click from this exe then the 'timer' wont hang your application.
Shaikh.Riyaz.a at 2007-11-9 19:38:17 >
# 8 Re: Can someone make a .exe for me?
If you want to simulate only continous mouse click from this exe then the 'timer' wont hang your application.
Why not? it will use the timer to create the check and each time it reaches else, it will click.
Morhsn at 2007-11-9 19:39:21 >
# 9 Re: Can someone make a .exe for me?
Why not? it will use the timer to create the check and each time it reaches else, it will click.

Have read the thread from beginning??

This is what required; hence done.
Shaikh.Riyaz.a at 2007-11-9 19:40:18 >
# 10 Re: Can someone make a .exe for me?
What happened?
Shaikh.Riyaz.a at 2007-11-9 19:41:14 >
# 11 Re: Can someone make a .exe for me?
im not sure, i was hoping someone would be able to compile this .exe for me but no luck ><. Thanks for reading my post guys

keep doing what you do best!
shitbagz69 at 2007-11-9 19:42:23 >