Jump to content
Sign in to follow this  
EmptySpace

Hotkeyset/ for ex if ctrl+left button clicked then click 5time in mouse position

Recommended Posts

EmptySpace

How i can make "ctrl+left button clicked then click 5times in mouse position"

I need this kinda fast clicker for program and not for game bots etc. !

Now Im using this:

HotKeySet("{NUMPAD5}", "click5")
;---------------------------------------
Func click5()
   $i = 0
While $i <= 5
    MouseClick("left")
    $i = $i + 1
  ToolTip('Clicking 5', 0, 0)
WEnd
ToolTip("")
EndFunc

It almost works great but sometimes i forget that number 5 is used by autoit and if i need to write it it jus press 5times lol... I could change hotkey but numpad is faster becouse most time im working with these numbers...

Edited by Edgaras

Share this post


Link to post
Share on other sites
pedmacedo

You can't set a hotkey combining keyboard+mouse input, at least not by using the function HotKeySet. One thing you could do is this something like this:(pseudocode)

while 1
      while ctrlIsDown() == 1
               if(leftMouseClicked()) Then
                      click5()
Wend
      Sleep(10)
Wend
Edited by pedmacedo

Share this post


Link to post
Share on other sites
Melba23

pedmacedo,

Have you actually looked at the Help file? {LEFT} refers to the left cursor button. :bye:

Edgaras,

Although you say this is not for a bot, I am afraid it does sound very much like one. Would you care to explain why you need to click 5 times in quick succession in the same spot? :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
pedmacedo

Melba23 yeah now that you said I realized he needs ctrl + left click, not ctrl+left arrow.

But {LEFT} means the left arrow! Not the left button, at least it's what the help file says(on the "Send" function)

Edited by pedmacedo

Share this post


Link to post
Share on other sites
Melba23

pedmacedo,

The left cursor button IS the left arrow button - just a different name. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
EmptySpace

Ok, i did script 20click is only for testing if it works

#include <Misc.au3>
Global $Paused
While 1
    If _IsPressed("A3") And _IsPressed(01) Then
     $i = 0
While $i <= 20
    MouseClick("left")
    $i = $i + 1
WEnd
  If Not _IsPressed("A3")  Then
   $Paused = Not $Paused
While $Paused
  Sleep(100)
  ToolTip('Ctr isnt pressed', 0, 0)
WEnd
ToolTip("")
  EndIf
  EndIf
WEnd

When i dont click ctrl then it pauses, i did it because when computer is slow, u do like lots of click and clicks wont stop lol. So that pause stops clicks. After pause I cant make script to work again. Any ideas?

Ok, whatever

While 1
    If _IsPressed("A3")  Then
    MouseClick("left")
EndIf
WEnd
this works for me lol. Also if you hold ctrl too much then it wont do hundrets of clicks like is used to be when doing this with hotkeys. Edited by Edgaras

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×