OLivay

Need a script made

4 posts in this topic

#1 ·  Posted (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 by OLivay

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 rigourously

M23

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now