Reskal Posted July 11, 2010 Share Posted July 11, 2010 Hello all, the situation is, that i'm playing a game and at some point i use a macro, it's for mining. I'll post it a sec: HotKeySet("{ESC}", "_Exit") ; Make a hotkey to exit the script ; Very important when u are using MouseMove, MouseClick etc. in a loop HotKeySet("{^}", "_Mine") ; Look at the Send command in the help file for keys Global $Mine = False ; Here we say $Mine = false, so the bot has stopped as default While 1 Sleep(1000) ; Use a sleep in the main loop for not getting a high CPU WEnd Func _Mine() $Mine = Not $Mine ; It's basicly something like: If $Mine = False Then $Mine = True; Also visa versa While $Mine MouseMove(600, 400, 10) MouseClick("right") MouseMove(615, 400, 20) MouseMove(615, 451, 20) MouseMove(685, 451, 20) MouseClick("left") Sleep(6000) WEnd EndFunc Func _Exit() Exit EndFunc It works very good so far, helped me a lot, the macro is from a guy in here, his name i unfortunatelly forgot. But one little problem still exists: From time to time, sometimes after 1 loop, sometimes after 15 but likely much earlier the macro doesn't hit the small window with the arrow, which it has opened. Causing the macro to do empty loops. The lines in which the problem appears are the following: MouseMove(615, 451, 20) MouseMove(685, 451, 20) It's a up-down problem, so i tried to get around it by changing the 451 to 450, problem then is, the arrow wanders off above, as it wanders to far down when using 451. Question is, is there a function or anything i could make sure the arrow doesn't start wandering after a certain number of loops ? Something like a correction, or a function asking "Am i really at the right coordinates ?" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 11, 2010 Moderators Share Posted July 11, 2010 Reskal,i'm playing a gameI take it you have not read this.Bye. 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...
Reskal Posted July 11, 2010 Author Share Posted July 11, 2010 (edited) Byebye Melba23. I got this macro from this side, and topic is not getting advance over other players, or farming gold or weapons or items. The macro is just helping me digging my cave into a mountain tile by tile. I don't save time or materials with this macro, and no one ever will come along the isle i live and bother about my cave;) I just dont have to click every 10 seconds, thats all, so if someone serious could help me in this, would be very kind. Edited July 11, 2010 by Reskal Link to comment Share on other sites More sharing options...
JohnOne Posted July 11, 2010 Share Posted July 11, 2010 MacroingDefinition:Macroing is the use of a program that automatically performs actions for you, this is a game unbalancing activity and as such is dealt with harshlyKey locking (IE weighing down a key on your keyboard) a bound key is illegal, as is any contrivance to automate game actions not intended as part of the game mechanics.Such actions will be considered under the heading of macro's and will be penalised as such."PunishmentFirst Offense: 30 day account IP ban, character permanently banned.Second Offense: Permanent account ban.http://www.wurmonline.com/forum/index.php?topic=10.msg12#msg12 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Reskal Posted July 12, 2010 Author Share Posted July 12, 2010 In a world full of liers and betrayers i always love to meet honest and upright people. Especially when they can make life harder for others with their moralities. If there is someone around not a hypocrite please send me PM, ty. Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2010 Share Posted July 12, 2010 ITS A TRAP ! AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Reskal Posted July 12, 2010 Author Share Posted July 12, 2010 ITS A TRAP !Sowing fear and distrust. Mate, you disappoint me. Are those your honest and moralic standards ?For the future: Live and let live. Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2010 Share Posted July 12, 2010 Sowing fear and distrust. Mate, you disappoint me. Are those your honest and moralic standards ?For the future: Live and let live.Are which my "honest and moralic standards"? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Reskal Posted July 12, 2010 Author Share Posted July 12, 2010 Are which my "honest and moralic standards"? JohnOne Icon * * Mass Spammer!Better help me solving my problem, instead of playing the pope on others cost ? Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2010 Share Posted July 12, 2010 JohnOne Icon * * Mass Spammer!Better help me solving my problem, instead of playing the pope on others cost ?Better explain what your problem is, instead of playing the ass. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 12, 2010 Moderators Share Posted July 12, 2010 This seems to be more entertaining to you than trying to play the game correctly.Rules are Rules, theirs and ours. You're flagrantly breaking both. This verbal warning is the only warning you'll get from the moderators side before you go:Byebye Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Recommended Posts