Jump to content

My first ''thingy''


deus
 Share

Recommended Posts

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 by deus
Link to comment
Share on other sites

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 :: stevevanrooij.games@hotmail.com

Thanks again

A 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

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

Are you asking for 'msgbox usage'?

Or, 'your custom msgbox'?

no it is with every command

the '' are always wrong :) so i cant run them

In 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.214

I've figgured out thats its the '' that is wrong.

Can someone please help me ?

Link to comment
Share on other sites

  • Developers

Run(''notepad.exe'') should be: Run('notepad.exe') or Run("notepad.exe") . (See the difference?)

' = single quote

" = double quote

'' = 2 single quotes

Jos

Edited 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

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 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

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 :: stevevanrooij.games@hotmail.com

Thanks again

Im 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

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.

Link to comment
Share on other sites

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 by deus
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...