Hello, iknowjohnny.
I'm unsure about "Mini Mouse Macro" itself, but! There are quite a few (by that I mean: There are tons) of alternatives!
- Visual Basic script (native to Windows)
- AutoHotKey
- AutoIt (branched expansion / spin-off of AutoHotKey)
These are my three favorite go-to scripting languages when it comes to emulating mouse input (computer scripting).
To emulate a mouse click with VBS (from start to finish):
- Create a file and name it: "W7Forums.vbs"
- Edit the newly created: "W7Forums.vbs" file with your favorite text editor (I usually use: Notepad++ or Notepad)
- Copy and paste the script from below and edit it as needed
This is copied from a StackOverflow post (sending key emulating is much shorter and doesn't require that you link against DLL API calls):
Code:
'Declare mouse events
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Public 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)
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Public Const MOUSEEVENTF_RIGHTDOWN As Long = &H8
Public Const MOUSEEVENTF_RIGHTUP As Long = &H10
'Declare sleep
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
' Window location
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Long, lpRect As RECT) As Long
Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Public Function WindowHandle(ByVal sTitle As String) As Long
WindowHandle = FindWindow(vbNullString, sTitle)
End Function
Public Sub SendClick(sWnd As String, b As Integer, x As Long, y As Long)
Dim pWnd As Long, pRec As RECT
pWnd = WindowHandle(sWnd)
GetWindowRect pWnd, pRec
SetCursorPos pRec.Left + x, pRec.Top + y
Sleep 50
If b = 2 Then
mouse_event MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0
Sleep 50
mouse_event MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0
ElseIf b <> -1 Then
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
Sleep 50
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End If
End Sub
If you want to emulate mouse clicks with AutoIt: You will need to install AutoIt first.
In terms of security: It opens another vector of attack (put bluntly). In practicality? It's not worth mentioning that.
To do exactly what you have above with AutoIt:
Code:
MouseClick($MOUSE_CLICK_LEFT, 1212, 26, 5) ; Send the left mouse click 5 times (10ms delay) at: 1212, 26 (X, Y coordinates)
Send("'open{SPACE}1{RETURN}") ; Sends the string of text
Normally, you can find the answer on Google itself. There are typically answers all over the place.
As with any form of research: You must filter out or modify the data you find from various sites.