User
Pass
2FA
 
 

Cum sa faci un program in AutoIT?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message1824
x6IT32

[Mentally Stable]



Status: Offline
(since 20-03-2019 21:27)
Joined: 26 Oct 2009
Posts: 74, Topics: 33
Location: Romania

Reputation: 232.3
Votes: 10

Post Posted: 26-10-2009, 16:46:25 | Translate post to: ... (Click for more languages)

Un mic ghid prin care o sa reusiti sa realizati un mic program in AutoIT, presupunem ca aveti instalat AutoIT v3 in calculator.

Faceti click dreapta pe desktop, alegeti new si selectati AutoIT v3 script.

O sa va apara un nou fisier pe desktop, numit New AutoIT v3 Script, il deschidem si va aparea un editor.



Noi acuma trebuie sa facem o casuta de mesaj in AutoIT, asta o facem cu functia MsgBox.

Acum scriem in editor urmatorul cod:
Code:
MsgBox(0, "Program AutoIT", "Hello World!")


Program AutoIT o sa fie numele programului adica titlul, iar Hello World! este mesajul care trebuie sa ne apara in casuta.

Salvam scriptul si apoi il deschidem, acum faceti click pe dreapta pe fisier si selectati run script. Trebuie sa va apara un programel cum este cel de jos:



Acuma o sa schimbam valoarea, in loc de 0 o sa fie 64. Valoarea 64 afiseaza in caseta de mesaj o pictograma.

Acum scriem in editor urmatorul cod:
Code:
MsgBox(64, "Program AutoIT", "Hello World!")


Trebuie sa va apara un programel cum este cel de jos:


0 0
  
Back to top
View user's profile Send private message
*0ranGe ! extrem

[I ❤ MY POLO!]



Status: Offline
(since 11-12-2017 12:06)
Joined: 01 Jul 2007
Posts: 11419, Topics: 191
Location: Romania

Reputation: 683.4
Votes: 117

   
Post Posted: 26-10-2009, 18:08:26 | Translate post to: ... (Click for more languages)

Useful, ty, mai adauga -


0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 28-10-2009, 11:44:56 | Translate post to: ... (Click for more languages)

Start->Run->Notepad

Scrii asta:
Code:
MsgBox "Salut lume!",vbInformation,"Titlul meu..."


vbInformation este tipul pop-up-ului
Il schimbati cu ce vreti voi de aici:
Code:
    *  0 = vbOKOnly - OK button only
    * 1 = vbOKCancel - OK and Cancel buttons
    * 2 = vbAbortRetryIgnore - Abort, Retry, and Ignore buttons
    * 3 = vbYesNoCancel - Yes, No, and Cancel buttons
    * 4 = vbYesNo - Yes and No buttons
    * 5 = vbRetryCancel - Retry and Cancel buttons
    * 16 = vbCritical - Critical Message icon
    * 32 = vbQuestion - Warning Query icon
    * 48 = vbExclamation - Warning Message icon
    * 64 = vbInformation - Information Message icon
    * 0 = vbDefaultButton1 - First button is default
    * 256 = vbDefaultButton2 - Second button is default
    * 512 = vbDefaultButton3 - Third button is default
    * 768 = vbDefaultButton4 - Fourth button is default
    * 0 = vbApplicationModal - Application modal (the current application will not work until the user responds to the message box)
    * 4096 = vbSystemModal - System modal (all applications wont work until the user responds to the message box)


Dai File->Save->Save as type: All Files->File Name: test.vbs->Save

Dai dublu click pe fisierul nou creat


Mai multe informatii despre VBScript aici


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 12-02-2025, 09:51:55
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x