deus Posted February 22, 2009 Share Posted February 22, 2009 (edited) Hi there , Im new at this AutoIt, and i wish to know how I can make my own program. I really need help at this , the only thing I know so far , is how to make a MsgBox , but then I still have to copy it from the help file. You can contact me by email or pm me @ my profile on www.autoitscript.com/forum OR if you got xfire , my xfire profile is :: 1react Thanks alot My email-adress is :: Thanks again Edited August 16, 2009 by deus Link to comment Share on other sites More sharing options...
BigDod Posted February 22, 2009 Share Posted February 22, 2009 Hi there , Im new at this AutoIt, and i wish to know how I can make my own program.I really need help at this , the only thing I know so far , is how to make a MsgBox , but then I still have to copy it from the help file.You can contact me by email or pm me @ my profile on www.autoitscript.com/forum OR if you got xfire , my xfire profile is :: 1reactThanks alotMy email-adress is :: stevevanrooij.games@hotmail.comThanks againA great place to learn Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
deus Posted February 22, 2009 Author Share Posted February 22, 2009 A great place to learn Thank you , it is indeed great. Ive watched a few and ive noticed when i make a MsgBox MsgBox ( flag, "title", "text" [, timeout [, hwnd]] ) I always get the '' wrong. And i can't click on Go , if I want to let it go and work.. Help is usefull Link to comment Share on other sites More sharing options...
ChangMinYang Posted February 22, 2009 Share Posted February 22, 2009 Thank you , it is indeed great. Ive watched a few and ive noticed when i make a MsgBox MsgBox ( flag, "title", "text" [, timeout [, hwnd]] ) I always get the '' wrong. And i can't click on Go , if I want to let it go and work.. Help is usefull Are you asking for 'msgbox usage'? Or, 'your custom msgbox'? Link to comment Share on other sites More sharing options...
deus Posted February 22, 2009 Author Share Posted February 22, 2009 Are you asking for 'msgbox usage'?Or, 'your custom msgbox'?no it is with every commandthe '' are always wrong so i cant run themIn a tutorial, this example is given : Run(notepad.exe)I can only copy & paste it, otherways I get this ::Run(''notepad.exe'') Run(''notepad^ ERROR>Exit code: 1 Time: 0.214I've figgured out thats its the '' that is wrong.Can someone please help me ? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 22, 2009 Developers Share Posted February 22, 2009 (edited) Run(''notepad.exe'') should be: Run('notepad.exe') or Run("notepad.exe") . (See the difference?) ' = single quote " = double quote '' = 2 single quotes Jos Edited February 22, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
deus Posted February 22, 2009 Author Share Posted February 22, 2009 How can I let things wait for like 5 seconds? Link to comment Share on other sites More sharing options...
Manko Posted February 22, 2009 Share Posted February 22, 2009 (edited) How can I let things wait for like 5 seconds?Sleep(5000) ; 1 second = 1000 milliseconds.You should read up in helpfiles. You could find that and much more there... But, glad to help!/Manko Edited February 22, 2009 by Manko Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually... Link to comment Share on other sites More sharing options...
deus Posted February 23, 2009 Author Share Posted February 23, 2009 Hi there , Im new at this AutoIt, and i wish to know how I can make my own program.I really need help at this , the only thing I know so far , is how to make a MsgBox , but then I still have to copy it from the help file.You can contact me by email or pm me @ my profile on www.autoitscript.com/forum OR if you got xfire , my xfire profile is :: 1reactThanks alotMy email-adress is :: stevevanrooij.games@hotmail.comThanks againIm back , with a new question.I've tried to search it but I've got blind eyes.Now what I wish to know, is how to let a MsgBox appeal in the right or left upper or down corner.Please help my blind eyes ^^Thanks again ! Link to comment Share on other sites More sharing options...
James Posted February 23, 2009 Share Posted February 23, 2009 I've got blind eyes.Get some glasses Move MsgBox Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
deus Posted February 23, 2009 Author Share Posted February 23, 2009 Get some glasses Move MsgBoxThanks : DD1 more questionHow can I let a button open a specific self made script , thats also IN the same script? Link to comment Share on other sites More sharing options...
Bert Posted February 23, 2009 Share Posted February 23, 2009 Have you ran COMPLEATLY through AutoIt 1 2 3? If not, then I suggest that you complete it first. Then, look at the helpfile EXAMPLES. See how they run. Take the time to first UNDERSTAND what you are looking at. If you do this, you will be much farther along. Otherwise, you are asking us to spoon feed you. You will quickly find many of us will loose patience with you if you keep doing this spoon feeding thing. I understand you are new, but you are strongly advised to go through the steps I have outlined for you FIRST. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
James Posted February 23, 2009 Share Posted February 23, 2009 I understand you are new, but you are strongly advised to go through the steps I have outlined for you FIRST.Listen to your peers - They will always have wisdom that will help you. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
deus Posted February 23, 2009 Author Share Posted February 23, 2009 (edited) Ok. This is what ive managed to do in 3 days as a noobie(A) notices are welcome CODE#cs Author: Steve 'deus' R. AutoIt version : The laterst Date started : 20-2-2009 Date finish : Still working on it, but its as good as ready. This isn't a English version, so you can ONLY run this on Dutch version of Windows. But if you really need it , just change WinWait ( "Naamloos - Kladblok" ) replace ****Naamloos - Kladblok**** with Untitled - Notepad #ce #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 0) ; Not really sure what this does, but it ain't running without it .. Script() Func Script() Local $Button_1, $Button_2, $Button_3, $Button_4, $Button_5, $Button_6, $msg GUICreate ( "" , 111, 220 ) Opt("GUICoordMode", 2) $Button_1 = GUICtrlCreateButton("Notepad", 7, 10, 100) $Button_2 = GUICtrlCreateButton("iTunes", -1, 10, 100) $Button_3 = GUICtrlCreateButton("Mozilla Firefox", -1, 10, 100) $Button_4 = GUICtrlcreatebutton("Paint", -1, 10, 100) $Button_5 = GUICtrlcreatebutton("Info", -1, 10, 100) $Button_6 = GUICtrlcreatebutton("Exit", -1, 10, 100) GUISetState( @SW_SHOW ) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE MsgBox (0, "Goodbye", "Goodbye", 3) Exit Case $msg = $Button_1 Run( "notepad.exe" ) Case $msg = $Button_2 Run ( "C:\Program Files\iTunes\iTunes.exe", "", @SW_MAXIMIZE ) Case $msg = $Button_3 Run("C:\Program Files\Mozilla Firefox\firefox.exe", "", @SW_MAXIMIZE) Case $msg = $Button_4 Run ("C:\Windows\System32\mspaint") Case $msg = $Button_5 Run ("notepad.exe", "", @SW_SHOWNORMAL) WinWait ( "Naamloos - Kladblok") Send ( "This is my first script im am glad i made it. I know this is a noob script, and not so exclusive, but ive enjoied making it" ) Sleep ( 5000 ) WinClose ( "Untitled - Notepad") Send ( "!n" ) Case $msg = $Button_6 MsgBox (0, "Goodbye", "Goodbye", 3) Exit EndSelect WEnd EndFunc #cs Just like ive said above, this script is based on a DUTCH version of windows. Read more above if you need to see how it works, but I can tell you... This is basic stuff ... I've Been told #ce My first project (A) ( if you can call it a project:P) Greetz Edited February 23, 2009 by deus Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now