onepieceme Posted February 10, 2013 Share Posted February 10, 2013 So here i have provided a link of how the red arrows look,it changesarrow direction each time you press an arrow.Here is a picture,The issue i have is something with line 23,and it just starts and ends the macro instantly,=( Here is also the script im trying to make work,any help is highly appreciatedNote* see how the red arrow is the right arrow key it changes after you press that key to another random key,Now i need to make this loop so i can leave this overnight.expandcollapse popupconstants k1 = 0 uparrow = 1 leftarrow = 2 rightarrow = 3 downarrow = 4 End loadRGB 271, 231 compute downarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 271, 221 compute uparrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 277, 277 compute rightarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 265, 226 compute leftarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) Loop 500000 Call Meditate Call check red End Procedure Meditate delay 500 Keys m Delay 3000 Loop 70000 end End GetRed 271, 221 = $uparrow if $k1 = 1 Else keys {up} set k1 = 1 Delay 200 end End GetRed 265, 226 = $leftarrow if $k1 = 2 Else keys {left} set k1 = 2 Delay 200 end End GetRed 271, 231 = $downarrow if $k1 = 3 Else keys {down} set k1 = 3 Delay 200 end End GetRed 277, 277 = $rightarrow if $k1 = 4 Else keys {right} set k1 = 4 Delay 200 end End ePos 257, 89 Link to comment Share on other sites More sharing options...
Bert Posted February 10, 2013 Share Posted February 10, 2013 Please review the forum rules and the part of how Game automation is not allowed to be discussed here http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
water Posted February 10, 2013 Share Posted February 10, 2013 Looks like game automation to me which isn't allowed according to our forum rules (please check the rules on the lower right hand corner of this page). My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 10, 2013 Moderators Share Posted February 10, 2013 onepieceme,Welcome to the AutoIt forum. Firstly that syntax does not look like AutoIt and this is the AutoIt forum. Secondly, as it is the Autoit forum you are expected to follow the Forum rules (there is also a link at bottom right of each page) where you will notice that there is a prohibition on game automation. So you should not be at all surprised at what happens next......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