Malombrado Posted August 19, 2013 Share Posted August 19, 2013 Hello all, im new on this so i'm trying make a simple macro but i dont know about gui and some functions yet.. if posible any1 can help me? i did this and want to improve and make a GUI.. HotKeySet("^!x", "QuitLoop") ; when the program is running, hitting "ctrl+alt+x" will call the function called "Quit" $counter = 0 ; declares a counter variable Func QuitLoop() ;user defined func called 'QuitLoop' $counter = 1 ; if func QuitLoop is called, $counter will become 1 EndFunc ;==>QuitLoop While $counter = 0 ; loop goes while $counter is 0 MouseClick("left",1012,611,1) Sleep(4000) Send("2") Sleep(4000) Send("2") Sleep(4000) Send("2") Sleep(4000) Send("3") Sleep(4000) Send("2") Sleep(4000) Send("1") Sleep(6000) ; code inside loop WEnd My main way is to make it with "Steps" that change some Key pressed like numbers. Ex: 1,2,3,4,... 9 so it start.. mouseclick on spot then start the selected steps...when the steps finish start again till loopcounter finish or if infinite.. till key pressed. thx Link to comment Share on other sites More sharing options...
FireFox Posted August 19, 2013 Share Posted August 19, 2013 (edited) Hi,Welcome to the autoit forum What is this script for?There are surely more reliable ways to automate what you are trying to do.Br, FireFox. Edited August 19, 2013 by FireFox Link to comment Share on other sites More sharing options...
Malombrado Posted August 19, 2013 Author Share Posted August 19, 2013 im trying to use it in a game, to repeat moviments but with the choice of steps and number pressed. the script posted do the work but i want to make it better and easier to use Link to comment Share on other sites More sharing options...
FireFox Posted August 19, 2013 Share Posted August 19, 2013 huh... please read the rules, the link is at the right bottom of each page.Br, FireFox. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 19, 2013 Moderators Share Posted August 19, 2013 Malombrado,FireFox is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. 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...
Recommended Posts