Sign in to follow this  
Followers 0
gastra

New to the autoit scene and in need of guidence.

2 posts in this topic

First of all let me say i have had a good look round the site before i signed up checked everything i could and searched high and low for a list of commands and a description of each command does one exist?

Before finding autoit i have only ever used macro express and could do anything with that program, From setting it to bid on an ebay auction to capturing "Notorious Monsters" in ffxi online. That program has been a favorite of mine for years and first introduced me to variables which i now use a lot but ME was gui based it had a list of commands and you simply select and insert what you need and maybe edit in text notepad.

Anyway i am new to this but also really eager to learn is there any offsite materiel i should be reading? good guides not mentioned here?

Anyting would be much appreciated.

At the moment im trying to make a simple script that will loop 2 functions, in macro express it works fine and goes like this...

loop 500

Delay 0090

Get pixel colour

Under mouse

insert into variable %n1

If variable n1 = x

left mouse button click

end if

loop

Simple and easy but switching to auto it after using that program is really hard i know i just need to revise a little to get my mind more autoit focused thanks for any replys.

Sleep (5000)

$pos = MouseGetPos()

$var = PixelGetColor( $pos[0] , $pos[0] )

MsgBox(0,"The decmial color is", $var)

MsgBox(0,"The hex color is", Hex($var, 6))

would that get the pixel colour from under the mouse?

Share this post


Link to post
Share on other sites

First of all let me say i have had a good look round the site before i signed up checked everything i could and searched high and low for a list of commands and a description of each command

I doubt that...

does one exist?

The help file is basically that. It's included in your AutoIt install and is also available online http://www.autoitscript.com/autoit3/docs/

Anyway i am new to this but also really eager to learn is there any offsite materiel i should be reading? good guides not mentioned here?

Anyting would be much appreciated.

If you're new to AutoIt, the help file is really all you need. if you're new to programming in general there are several AutoIt themed guides catered towards that audience: http://www.autoitscript.com/wiki/Tutorials

At the moment im trying to make a simple script that will loop 2 functions, in macro express it works fine and goes like this..

This is a very often asked question. If you can't find this in a forum search... I feel for you, Try one of these:

http://www.autoitscript.com/forum/index.php?showtopic=20688

http://www.autoitscript.com/forum/index.php?showtopic=632

http://www.autoitscript.com/forum/index.php?showtopic=18981

http://www.autoitscript.com/forum/index.php?showtopic=16789

Your attempts was close:

Sleep (5000)
$pos = MouseGetPos()
$var = PixelGetColor( $pos[0] , $pos[1] )
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))

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