|
You last visited: Today at 20:34
Advertisement
how to make random mouse click
Discussion on how to make random mouse click within the AutoIt forum part of the Coders Den category.
06/26/2013, 23:09
|
#1
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
how to make random mouse click
well i have movable gui and i want to make random mouseclicks inside the gui
gui positions are $Bpos[0] $Bpos[1] $Bpos[2] $Bpos[3].
and i want clicks to be made in lower right corner of the gui.
well that messed up my head lol
well here is the screen of this movable gui the area where random clicks should be made is painted black:
|
|
|
06/26/2013, 23:15
|
#2
|
Administrator
elite*gold: 26516
Join Date: May 2011
Posts: 21,005
Received Thanks: 2,347
|
Do you know the size of the black box?
Then:
Code:
$x = $Bpos[2]-(width of the black box); Define the lowest X position
$y = $Bpos[3]-(height of the black box); Define the lowest Y postion
While 1; Enless-Loop
$randomX = Random($x, $Bpos[2], 1); Random X-Coordinates
$randomY = Random($y, $Bpos[3], 1); Random Y-Coordinates
MouseClick("left", $randomX, $randomY); Left-MouseClick on this Coordinates
WEnd
|
|
|
06/26/2013, 23:20
|
#3
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
hmm i think i figured it out how will try and let u know
well it is messing up may i send u the full script so u could test it and look why?
Quote:
#NoTrayIcon
AutoItSetOption("TrayIconHide", 1)
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=favicon.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GDIPlus.au3>
#include <WinApi.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <GDIPlus.au3>
#include <WinApi.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{F10}", "_Toggle")
HotKeySet("{q}", "killall")
HotKeySet("{Esc}", "_Exit")
HotKeySet("{e}", "test")
$Size1 = 760
$Size2 = 530
$Size3 = 225
$Size4 = 148
$Color = 0xFFFFAA00
$Thick = 3
$Toggle = False
$kill = False
$Form1 = GUICreate("Aimbot", $Size1, $Size2, -1, -1, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST))
GUISetState()
$Pic1 = GUICtrlCreatePic("bg.gif", 0, 0, $Size1, $Size2)
$Button1 = GUICtrlCreateButton("i", -1000, -1000, -1000, -1000)
$Button2 = GUICtrlCreateButton("e", -1000, -1000, -1000, -1001)
_WinAPI_SetLayeredWindowAttributes($Form1, 0x00FF00)
_GDIPlus_Startup()
$Handle = _GDIPlus_GraphicsCreateFromHWND($Form1)
$Pencil = _GDIPlus_PenCreate($Color, $Thick)
_GDIPlus_GraphicsDrawRect($Handle, 5, 5, $Size1 - 10, $Size2 - 10, $Pencil)
_GDIPlus_GraphicsDrawRect($Handle, 540, 387, $Size3 - 10, $Size4 - 10, $Pencil)
While 1
$nMsg = GUIGetMsg()
$Bpos = WinGetPos("Aimbot")
If $Toggle Then
ToolTip("Move your mouse (f10 to end)")
$pos = MouseGetPos()
WinMove("Aimbot", "", $pos[0], $pos[1])
Else
ToolTip("")
Sleep(200)
EndIf
WEnd
$xi = $Bpos[2] - (225)
$yi = $Bpos[3] - (148)
func test()
MouseClick("primary", Random($xi, $Bpos[2], 1), Random($yi, $Bpos[3], 1), 1)
EndFunc
HotKeySet("{ESC}", "_Exit")
Func _Exit()
Exit
EndFunc ;==>_Exit
|
well here is the script
|
|
|
06/27/2013, 00:29
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
PHP Code:
;small box $wdith = 140 ;edit this $hight = 80 ;and this
$x = $Bpos[0]+$Bpos[2]-$wdith $y = $Bpos[1]+$Bpos[3]-$hight
$x2 = $Bpos[0]+$Bpos[2] $y2 = $Bpos[1]+$Bpos[3]
MouseClick("primary", Random($x, $x2), Random($y, $y2))
|
|
|
06/27/2013, 00:31
|
#5
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
will try and say what happened
ty to all who helped
#closerequest
|
|
|
06/28/2013, 23:58
|
#6
|
elite*gold: 900
Join Date: Apr 2009
Posts: 14,981
Received Thanks: 11,403
|
closed
|
|
|
 |
Similar Threads
|
Mouse click tool
01/29/2021 - Conquer Online 2 - 5 Replies
Hi I was wondering if some1 could make a tool for clicking the mousebutton to walk\jump\attack
something like: you move the mouse (cursor) to the place where you want to go and press for example the spacebar or another keyboard button so that you move there.
Is this possible or is it impossible?
If it is possible it would be verry usefull :cool:
|
I need help with pixel search and mouse click.
06/07/2013 - AutoIt - 5 Replies
#region HotKeySet
HotKeySet("{F4}","PIXELREAD")
HotKeySet("{F2}","PIXELFIND")
HotKeySet("{f3}","ExitProg")
#ENDREGION
#region variables
dim $pos
dim $color
Global $counter=0
|
Mouse Click Move
01/26/2012 - Metin2 - 0 Replies
Hello I Have a Question for all the people who have experience in Metin2 Hacking, what function gets called when Mouse Walking I been moving my bot using the fuction that gets called be pressing the keys for movement and teleporting in small steps, the way that I am doing this gives me alot of problems I think the correct way would be calling the fuction that gets executed when left mouse click, I havent had any luck could anyone point me into the correct direction on solving this. I hope some...
|
[TUT] Teleport Using Mouse Click
12/15/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 5 Replies
Note: Tested on Dekaron Sea
1st. Must Have CE 5.4 or 5.5
2nd. target Dekaron.exe
3rd. Click add address manually paste this 5E2C78 as Byte
4th. default value is 139 change it to 0 then freeze
now you can use your mouse as a teleport tools.
Screen Shot:
step 1
|
hackshield and mouse click functions
09/04/2009 - S4 League - 16 Replies
I have a question, does hackshield in some way block mouse click down, mouse click up stuff. What i was trying to do it make a macro with autohotkey.
Say i have ps on key 1 and cs on key 2
I want to click down, click up right, mouse button
Then auto go to key 2 to my cs weapon
Then click down, click up left mouse button for uppercut.
|
All times are GMT +1. The time now is 20:34.
|
|