Sign in to follow this  
Followers 0
Guest Ice1605

I am a VERY new person and I need help.

4 posts in this topic

I am new with AutoIT, and I want to learn. I want to be able to make a utility that shows computer info, but I don't know how. I know Visual BASIC and C++ (A little of both), but I can't figure this out!

Help, please!

My code so far:

@OSTYPE
@OSVersion
@OSServicePack
@OSBuild
@OSLang
@IPAddress1
@ComputerName
@DesktopRefresh
@UserName
@OSLang

Thanks,

Ice

:idiot:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

MsgBox(0,"Computer Specs",@OSTYPE & @CRLF & @OSVersion & @CRLF & @OSServicePack & @CRLF & @OSBuild & @CRLF & @OSLang & @CRLF & @IPAddress1 & @CRLF & @ComputerName & @CRLF & @DesktopRefresh & @CRLF & @UserName & @CRLF & @OSLang)

That is one line.

Working on a better version.

Edit; This one is better for ease of reading:

$w1 = @OSTYPE & @CRLF & @OSVersion & @CRLF
$w2 = @OSServicePack & @CRLF & @OSBuild & @CRLF
$w3 = @OSLang & @CRLF & @IPAddress1 & @CRLF
$w4 = @ComputerName & @CRLF & @DesktopRefresh & @CRLF
$w5 = $w1 & $w2 & $w3 & $w4 & @UserName & @CRLF & @OSLang
MsgBox(0,"Computer Specs",$w5)
Edited by Wolvereness

Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites

Thank you very much!

I will try to make it better as my skills grow.

Thanks again! :D

Bye,

Ice :idiot:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Keep in mind that a macro (like the @OSType, @OSVersion and the others you used) just contains some data (that are automatically retrieved from the system). It is not a function, it is not something that works by itself. You have to use it with a command so as to produce something.

Try this to understand it better:

$title = "I am the title of the box"
$msg = "I am a string that someone has put me here"
MsgBox(0, $title, $msg)

Have a look at the AU3's helpfile and check the examples to fully understand each function and what it does.

Edit: By also studying the examples in the Scripts and Scraps forum, you may also understand better the language and its syntax.

Edited by erebus

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