xorxhs Posted January 2, 2011 Posted January 2, 2011 (edited) Hi, im quite excited with autoit so i just have started reading about it. I am gonna need a help with my first script, so please feel free I want to mouse click as fast as possible every pixel ( 1680x1050 resolution ) of my display. How could this be done? Thanks in advance Edited January 2, 2011 by xorxhs
Moderators Melba23 Posted January 2, 2011 Moderators Posted January 2, 2011 xorxhs,First, welcome to the AutoIt forum. Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here - you will find other tutorials in the Wiki (the link is at the top of the page). There are even video tutorials on YouTube if you prefer watching to reading. I know you want to start coding NOW, but a little study will save you a lot of trouble later on, believe me. Once you have a reasonable grasp of how AutoIt works, look carefully at MouseClick, @DesktopWidth, @DesktopHeight, and For...Next in the Help file. You will soon be able to click away to your heart's content - although why you want to click on every pixel escapes me completely! 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
xorxhs Posted January 2, 2011 Author Posted January 2, 2011 thanks for your fast response m8 and your info. Really helps a lot. I know it sounds a bit hurry to ask for the code,but, i wouldnt do if it was not needed for an exercise i need for the next 2 days Thanks!
Moderators Melba23 Posted January 2, 2011 Moderators Posted January 2, 2011 xorxhs, This will give you the idea: HotKeySet("{ESC}", "On_Exit") For $i = 1 To 50 For $j = 1 To 50 MouseClick("left", $i, $j, 1, 500) Next Next Func On_Exit() Exit EndFunc and an indication of how slow it will be - just press Escape when you get bored! 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
xorxhs Posted January 2, 2011 Author Posted January 2, 2011 nice start 1)i noticed that cant move clicks to the next column, constantly click a column from up to down. 2) How can i make clicking a lot faster?
Moderators Melba23 Posted January 2, 2011 Moderators Posted January 2, 2011 xorxhs,nice startAnd end - you are on your own now! Answers to your questions:- 1. If you reverse the $i and $j in the MouseClick line, you will move across and then down rather and down and then across. - 2. Have you looked at the Help file at all? Check out the page for MouseClick and you will discover the "speed" parameter. And do not forget to look at @DesktopWidth and @DesktopHeight while you are there - they will give you the limits for the loops. 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
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