Jump to content

Starting Scripts for a Noob?


Recommended Posts

Hey you guys kind of a pointless thread but i wasnt sure how else i could possibly come up with an idea for a good begginer script i kind of made an autoclicker mostly from help from one of my friends his name wont be mentioned but other then that i have done nothing....i would not mind a basic script which teach me alot of functions.......thanks alot you guys....much appreciated. :)

Edited by kUrT15h4y
Link to comment
Share on other sites

atta boy... finally joined das forums... i thought you quit autoit?

and for an idea for a basic script... try making a GUI that runs certain programs... like have a button for notepad... a button for IEcreate().... ect

no need to say "His" name.... twas me.. and im not so impressed his first script was an autoclicker :\ but then again HE DID do it so.... kurt you have some potential talent

just don't hack\bot >: (

EDIT

here is a basic script for a functioning GUI

#include <GUIConstants.au3>

Opt ('GUIOnEVENTmode', 1)

$GUI = Guicreate ('EXAMPLE GUI', 400, 500)
Guisetonevent ($GUI_EVENT_CLOSE, '_Exit_', $GUI)
$testbutton = GuiCtrlCreateButton ('Test Button', 50, 50, 300, 20)
Guictrlsetonevent (-1, '_Test_')
GUISetState ()

While 1
Sleep (100)
Wend

Func _Test_ ()
Msgbox (48, 'TEST', ':D')
Endfunc

Func _Exit_ ()
Exit
EndFunc

Helpfile is your bestfriend here

EDIT #2... fixed some typos in the code

Edited by CodyBarrett
Link to comment
Share on other sites

atta boy... finally joined das forums... i thought you quit autoit?

and for an idea for a basic script... try making a GUI that runs certain programs... like have a button for notepad... a button for IEcreate().... ect

no need to say "His" name.... twas me.. and im not so impressed his first script was an autoclicker :\ but then again HE DID do it so.... kurt you have some potential talent

just don't hack\bot >: (

EDIT

here is a basic script for a functioning GUI

#include <GUIConstants.au3>

Opt ('GUIOnEVENTmode', 1)

$GUI = Guicreate ('EXAMPLE GUI', 400, 500)
Guisetonevent ($GUI_EVENT_CLOSE, '_Exit_', $GUI)
$testbutton = GuiCtrlCreateButton ('Test Button', 50, 50, 300, 20)
Guictrlsetonevent (-1, '_Test_')
GUISetState ()

While 1
Sleep (100)
Wend

Func _Test_ ()
Msgbox (48, 'TEST', ':D')
Endfunc

Func _Exit_ ()
Exit
EndFunc

Helpfile is your bestfriend here

EDIT #2... fixed some typos in the code

EVIL!!!

I hate OnEvent Mode!

First of all if you are very new to the language, the AutoIt helpfile is the god of all n00bs. Look up MessageLoop and OnEvent. These are the GUI modes.

All other commands and uses are in the helpfile. I write fairly advanced programs and i discovered the forums and community last week.

HELPFILE FTW! :)

Quick addition too: DO NOT MAKE HACKS, VIRUSES, or BOTS! They are why this amazing language is always looked at as a hackers tool!

Edited by insignia96

Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower

Link to comment
Share on other sites

I learned a whole lot from the examples that come with the distribution. It may have already been mentioned here in the thread but I didn't read all the posts (my bad!).

The documentation for Au3 is expressive and these forums are full of people sharing their work.

C:\Program Files (x86)\AutoIt3\Examples

C:\Program Files\AutoIt3\Examples

C:\Program Files (x86)\AutoIt3\AutoIt.chm

C:\Program Files\AutoIt3\AutoIt.chm

Really Sweet Au3 Thread that spans like 5 years!

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
Link to comment
Share on other sites

Opt ('Guioneventmode', 1)
GUISetOnEvent ()
GUICtrlSetOnEvent ()oÝ÷ Øäm+¡ë)­ëmÊkØ^{¶Æ¦zØb±qêm¶nÞ穲Ø^Z¥zZ(¦Þ¶Üæ§jëh×6;This is MAIN While loop
While 1
dim $msg = GUIGetMsg ()
Wend

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...