Sign in to follow this  
Followers 0
Huxie

Hey Autoit guys

17 posts in this topic

I Need some help for some scripting. I've been working with inputs/outups as clicks and msg boxes.

Thats about 2 years ago, and i dont know nothing about it now.

now i need a very simple script, i hope someone can/will help me.

It should go like this

Msgbox before startup

#1

click at button 1

click at button 2

*if no colour in a specific place comes in, click button 1 twice, and click button 2 again

*if colour comes at the spot, run script from #1

*if no colour in a specific place comes in, click button 1 four times, and click button 2 again

*if colour comes at the spot, run script from #1

*if no colour in a specific place comes in, click button 1 eight times, and click button 2 again

*if colour comes at the spot, run script from #1

I really hope someone would help me, cause i really need the script, im using hours aday using this routine.

Huxie -- MSN ~ Admin@huxie.dk

Share this post


Link to post
Share on other sites



I Need some help for some scripting. I've been working with inputs/outups as clicks and msg boxes.

Thats about 2 years ago, and i dont know nothing about it now.

now i need a very simple script, i hope someone can/will help me.

It should go like this

Msgbox before startup

#1

click at button 1

click at button 2

*if no colour in a specific place comes in, click button 1 twice, and click button 2 again

*if colour comes at the spot, run script from #1

*if no colour in a specific place comes in, click button 1 four times, and click button 2 again

*if colour comes at the spot, run script from #1

*if no colour in a specific place comes in, click button 1 eight times, and click button 2 again

*if colour comes at the spot, run script from #1

I really hope someone would help me, cause i really need the script, im using hours aday using this routine.

Huxie -- MSN ~ Admin@huxie.dk

Look into PixelGetColor() and MouseClick(). Also, If...Then statements.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Look into PixelGetColor() and MouseClick(). Also, If...Then statements.

I dont know anything about loops but have tried several times.

Could you help me making the script?

Share this post


Link to post
Share on other sites

I dont know anything about loops but have tried several times.

Could you help me making the script?

What do you have so far?

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

What do you have so far?

I have an idea of, what the script should be, as you see in my description of the script.

I could make mouseclicks and getcolour , but those end if loop things, sounds too hard for me .

Share this post


Link to post
Share on other sites

Well you need to attempt something to gain help... :)

Attemp to make the script by myself?

Share this post


Link to post
Share on other sites

Yup! You say it sounds too hard, but how can you know until you try! You put the effort in, you will reap results :)

So try, and if you don't succeed, try something different. With trial and error you'll get somewhere. And if all else fails, post your attempts here, then we can help you correct your errors... :lmao:

Share this post


Link to post
Share on other sites

Yup! You say it sounds too hard, but how can you know until you try! You put the effort in, you will reap results :)

So try, and if you don't succeed, try something different. With trial and error you'll get somewhere. And if all else fails, post your attempts here, then we can help you correct your errors... :lmao:

Okay , i just need the "if, else, do" , i could make the rest by myself.

I Have tried to read about it, but it still doesnt make any scense for me.

If i just had the

""""

startpoint1

if *nocolour* double up

if * colour* double up

I just need to know how to loop them. I have tried, but with errors.

i really hope you understand, cause im not just inhere to get a free script because im retarded .

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Okay , i just need the "if, else, do" , i could make the rest by myself.

I Have tried to read about it, but it still doesnt make any scense for me.

If i just had the

""""

startpoint1

if *nocolour* double up

if * colour* double up

I just need to know how to loop them. I have tried, but with errors.

i really hope you understand, cause im not just inhere to get a free script because im retarded .

If PixelGetColor(Whatever) = 0x000000 Then
     ;Color present code.
Else
     ;Not there code.
EndIf

Does that help? Obviously those aren't the parameters for PixelGetColor(), and this is in the case that the color you're searching for is black.

Edited by Minikori

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Im going to try

MouseClick("left", 0, 500, 2)

MouseClick("left", 200, 500, 2)

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )

If Not @error Then

what should i put in instead of error, if i want it to MouseClick("left", 0, 500, 2) two time?

I want it like this

MouseClick("left", 0, 500, 2)

MouseClick("left", 200, 500, 2)

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )

if "colour is not there" --> MouseClick("left", 0, 500, 2) two times

if "colour is there" --> run script from start again

Hope you can help me, since ive made an attemp :)

Share this post


Link to post
Share on other sites

Im going to try

MouseClick("left", 0, 500, 2)

MouseClick("left", 200, 500, 2)

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )

If Not @error Then

what should i put in instead of error, if i want it to MouseClick("left", 0, 500, 2) two time?

I want it like this

MouseClick("left", 0, 500, 2)

MouseClick("left", 200, 500, 2)

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )

if "colour is not there" --> MouseClick("left", 0, 500, 2) two times

if "colour is there" --> run script from start again

Hope you can help me, since ive made an attemp :)

Change what you showed us to:

While
    MouseClick("left", 0, 500, 2)
    MouseClick("left", 200, 500, 2)
    $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )
    If @error Then
        MouseClick("left", 0, 500, 2)
    Else
        Exit
    EndIf
WEnd

Hope you learned from that, I couldn't really give 'hints' on how to do it.


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Change what you showed us to:

While
    MouseClick("left", 0, 500, 2)
    MouseClick("left", 200, 500, 2)
    $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )
    If @error Then
        MouseClick("left", 0, 500, 2)
    Else
        Exit
    EndIf
WEnd

Hope you learned from that, I couldn't really give 'hints' on how to do it.

It doesnt really work for me, it gives me following error

While^ error

I copied it exactly as you told me .

Edited by Huxie

Share this post


Link to post
Share on other sites

Worked with "while1" ,

Can i make a while 2 , to extend the script with multiply clicks?

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
Sign in to follow this  
Followers 0