EmptySpace Posted March 15, 2012 Share Posted March 15, 2012 (edited) 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 March 15, 2012 by Edgaras Link to comment Share on other sites More sharing options...
pedmacedo Posted March 15, 2012 Share Posted March 15, 2012 (edited) 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 March 15, 2012 by pedmacedo Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 15, 2012 Moderators Share Posted March 15, 2012 pedmacedo,Have you actually looked at the Help file? {LEFT} refers to the left cursor button. 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? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
pedmacedo Posted March 15, 2012 Share Posted March 15, 2012 (edited) 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 March 15, 2012 by pedmacedo Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 15, 2012 Moderators Share Posted March 15, 2012 pedmacedo,The left cursor button IS the left arrow button - just a different name. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
EmptySpace Posted March 17, 2012 Author Share Posted March 17, 2012 (edited) 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 March 22, 2012 by Edgaras Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now