» Site Navigation | | | » Advertisement | | | » Recent Threads | | | | | | | | | | | |  | |  | Make your First Prog. |  |
05-09-2008, 05:29 PM
|
#1 (permalink)
| Give me that Becky!
Join Date: Aug 2007 Location: 407, Florida. Age: 18 Posts: 2,823
GPoints: 6,767 Rep Power: 15 | Make your First Prog. This is an extremely basic guide. Autoit Programming. All knowledge acquired from Doctuh. 1) Okay so the first thing you need to do is download these programs in this order.
For the first one make sure you choose Editor AutoIt v3 - Downloads Choose the full download http://www.autoitscript.com/autoit3/...beta-setup.exe Just download this one http://www.autoitscript.com/cgi-bin/...TE4AutoIt3.exe 2) Now go and open SciTE 3) Once you have opened SciTE, enter this code on line one Code: $var = InputBox ("QUESTION!", "What is your name?")
4) Now on the second line enter Code: MsgBox (0, "Your name is", $var) 5) Now click, File, Beta Run 6) Your program should Pop Up and you enter the answer! All done CONGRATZ YOU MADE YOUR FIRST PROG Updates
Security Question: Code: $passwd = InputBox("Security Check", "Enter your password.", "", "*")
$answer = InputBox("Question", "Where were you born?", "Planet Earth", "", _
-1, -1, 0, 0)
$value = InputBox("Testing", "Enter the 1 or 2 character code.", "", " M2")
MsgBox(4096, "Correct", "This box will time out in 10 seconds", 10) Closing Box (Choose Time): Code: $memory = InputBox("milliseconds left","how long to read text? Pick only a number and a good one.")
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
send("This is a text that was created by autoit v3.0,{ENTER} a very good piece of work. now you have")
send("{ENTER}")
send($memory)
send("millaseconds to read this message.")
sleep($memory)
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!y")
winwaitactive("Save As")
send("hello.txt")
send("{ENTER}")
winwaitactive("Save As");overwrites the file if needed. Careful if you have a file name like this.
send("!y")
__________________ Im half as pretentious, twice as silly, and a quarter older than I appear. | |
| |  |
05-09-2008, 06:54 PM
|
#2 (permalink)
| In Purgatory
Join Date: Dec 2006 Location: Australia Age: 18 Posts: 1,498
GPoints: 335 Rep Power: 0 | REP IN A BASKET. | |
| |
05-13-2008, 06:36 PM
|
#3 (permalink)
| Banned
Join Date: Feb 2008 Posts: 2,646
GPoints: 1,628 Rep Power: 0 | Or you can do something like Code: $passwd = InputBox("Security Check", "Enter your password.", "", "*")
$answer = InputBox("Question", "Where were you born?", "Planet Earth", "", _
-1, -1, 0, 0)
$value = InputBox("Testing", "Enter the 1 or 2 character code.", "", " M2")
MsgBox(4096, "Correct", "This box will time out in 10 seconds", 10) | |
| |
05-14-2008, 11:32 AM
|
#4 (permalink)
| Give me that Becky!
Join Date: Aug 2007 Location: 407, Florida. Age: 18 Posts: 2,823
GPoints: 6,767 Rep Power: 15 | Checkers, mind if I add that to the guide. I will just be adding more to it as I learn.
__________________ Im half as pretentious, twice as silly, and a quarter older than I appear. | |
| |
05-14-2008, 02:06 PM
|
#5 (permalink)
| Banned
Join Date: Feb 2008 Posts: 2,646
GPoints: 1,628 Rep Power: 0 | Quote:
Originally Posted by Cyrus the Virus Checkers, mind if I add that to the guide. I will just be adding more to it as I learn. | No, go ahead. | |
| |  | |  |
05-18-2008, 09:15 AM
|
#6 (permalink)
| Full Member
Join Date: Nov 2007 Age: 20 Posts: 328
GPoints: 945 Rep Power: 8 | checkers, thank you, you have helped me make this code. (by experimenting) Code: $memory = InputBox("milliseconds left","how long to read text? Pick only a number and a good one.")
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
send("This is a text that was created by autoit v3.0,{ENTER} a very good piece of work. now you have")
send("{ENTER}")
send($memory)
send("millaseconds to read this message.")
sleep($memory)
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!y")
winwaitactive("Save As")
send("hello.txt")
send("{ENTER}")
winwaitactive("Save As");overwrites the file if needed. Careful if you have a file name like this.
send("!y") It give you a number timing. You pick the time, and before it closes, it will wait that much time. (good for my first "on my own" script. But only thanks to checkers part that I could make the time part.)
ps: Add it if you want.
__________________ adf.ly/11349/poc-money | |
| |  |
05-22-2008, 06:54 AM
|
#7 (permalink)
| Banned
Join Date: May 2007 Posts: 575
GPoints: 327 Rep Power: 0 | T_T
WOAH!
omg thanks gais...now ima try this from 8pm to 6am again this weekend! w00t!
+rep to you | |
| |
05-22-2008, 11:59 AM
|
#8 (permalink)
| Give me that Becky!
Join Date: Aug 2007 Location: 407, Florida. Age: 18 Posts: 2,823
GPoints: 6,767 Rep Power: 15 | OK I am about to update it now =)
__________________ Im half as pretentious, twice as silly, and a quarter older than I appear. | |
| |
05-22-2008, 10:01 PM
|
#9 (permalink)
| Banned
Join Date: Nov 2006 Location: New Jersey Age: 15 Posts: 1,060
GPoints: 480 Rep Power: 0 | I may start working with autoit, My all purpose language would work with that first program like this Code: result = Dialog.Input("enter", "input:", "", MB_ICONQUESTION);
Dialog.Message("what you put in", result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Last edited by Junkas; 05-22-2008 at 10:05 PM..
| |
| |
08-15-2008, 05:44 PM
|
#10 (permalink)
| Junior Member
Join Date: Aug 2008 Posts: 10
GPoints: 49 Rep Power: 0 | Why do you encourage users to SCRIPT (yes, that's right, AutoIT is not programming)?
The language is shitty, the fact that it is a scripting language makes it irrelevant to programming, the fact that the points I've made are a hundred percent true, I see no actual reason for this to be here to begin with.
And no, even though this might look like a flame, you just need to be able to take critizism. | |
| |  | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |