OLivay Posted November 23, 2015 Share Posted November 23, 2015 (edited) I give up, I can't make this script on my own, so i'd like your help.>Esc should terminate it>Once F1 is pressed record PosA: current mouse's X and Y position>Once F2 is pressed record PosB: current mouse's X and Y position>Capture the pixel color in PosA>Keep waiting for the PosA pixel color to change>If pixel color in PosA changes:>>move mouse to PosB>>Wait between 1 second and 2 seconds (random)>>click once>terminate Thanks in advance to the helpers Edited November 23, 2015 by OLivay Link to comment Share on other sites More sharing options...
Bert Posted November 23, 2015 Share Posted November 23, 2015 ummm....no to your request on just writing you a script. Reasons:1. We teach people to fish. Not give you fish.2. You didn't post the code you tried to do first. If you do that, we will help you solve your problem.3. Your new and what you are asking for "looks" like you want to bot a game. Am I assume yes to this? If yes, then understand you may have missed the forum rules on the way in. Any discussion on how to automate a game is against forum rules. Now I really hope I'm wrong on item 3 and it isn't for a game. We alway welcome new members and are happy to educate.Please post your code and lets see what you have tried. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
OLivay Posted November 23, 2015 Author Share Posted November 23, 2015 ummm....no to your request on just writing you a script. Reasons:1. We teach people to fish. Not give you fish.2. You didn't post the code you tried to do first. If you do that, we will help you solve your problem.3. Your new and what you are asking for "looks" like you want to bot a game. Am I assume yes to this? If yes, then understand you may have missed the forum rules on the way in. Any discussion on how to automate a game is against forum rules. Now I really hope I'm wrong on item 3 and it isn't for a game. We alway welcome new members and are happy to educate.Please post your code and lets see what you have tried. I need 1 fish though Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 23, 2015 Moderators Share Posted November 23, 2015 OLivay,Welcome to the AutoIt forums.Here are a few hints to get your fishing trip underway:;--------------------------->Esc should terminate it - HotKeySet & Exit>Once F1 is pressed record PosA: current mouse's X and Y position - HotKeySet & MouseGetPos>Once F2 is pressed record PosB: current mouse's X and Y position - HotKeySet & MouseGetPos>Capture the pixel color in PosA - PixelGetColor>Keep waiting for the PosA pixel color to change - PixelgetColor & Do...Until>If pixel color in PosA changes: - If...Then>>move mouse to PosB - MouseMove>>Wait between 1 second and 2 seconds (random) - Sleep & Random>>click once - MouseClick>terminate - Exit;---------------------------Now read the Help file for those functions and see what you can code yourself (even if it does not work correctly). You will find that you will get lots if help if you show you are making some effort.And please do read the Forum rules - we do enforce them rigourouslyM23 Xandy 1 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
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