Jump to content

Recommended Posts

Posted

Hi all i give me code and explain me probleme 

 

me code :

 
    Dim $Array [13] = ["software  0", _ ; 0 
"software 1", _ ; 1 
"software 2", _ ; 2 
"software 3", _ ; 3 
"software 4", _ ; 4 
"software 5", _ ; 5 
"software 6", _ ; 6 
"software 7", _ ; 7 
"software 8", _ ; 8 
"software 9", _ ; 9  
"software  10",_ ; 10 
"software 11" , _ ; 11 
"software  12" ] ; 12 
    $dimension = $Array[0]
    For $i = 0 To UBound ; de 0 a la fin soit 13 ici
    Sleep (10)
    if FileExists ($Array[$i]) Then  ; test tout les chemins du tableau (var $i)
        TrayTip ("all","ok",10000) ; dit si tout est bon 
    Else
        TrayTip ("/!\ probleme","l'un des nom de logiciel  est pas bon",10000) ; dit si il a 1 faute 
    EndIf
    Next

me probleme is can me loop give me software bug (failed , path dont worry) 

i me loop ex software 2 not good me code give me "software 2 faulse" , software 5 is good me code dont give me is good becose i don't need information me code give me software faulse for speed for me and swap speed and need lose time whit that probleme 

thank you all for help 

  • Moderators
Posted

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Moderators
Posted

dozosama,

Please do not bump your own threads within 24 hours.

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare.  You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online.  Be patient and someone will answer eventually.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

I used Google Translate for some of the comments and unfortunately don't speak French but maybe this can get you started,   J'ai utilisé Google Translate pour certains commentaires et malheureusement, je ne parle pas français, mais peut-être que cela peut vous aider

I fixed the errors before it starts checking the actual files and adding some debugging so you can see it working to that point.  J'ai corrigé les erreurs avant qu'il ne commence à vérifier les fichiers réels et à ajouter du débogage afin que vous puissiez le voir fonctionner à ce point.

#include <Array.au3>
; I assume this program is just checking to see if certain files exist
; Je suppose que ce programme vérifie simplement si certains fichiers existent

; If so, your array containing the references to those files needs to include the path.  If they are all in the same directory you can pre-define it.
; Si tel est le cas, votre tableau contenant les références à ces fichiers doit inclure le chemin. S'ils sont tous dans le même répertoire, vous pouvez le prédéfinir

    Dim $Array [13] = ["software  0", _ ; 0
"software 1", _ ; 1
"software 2", _ ; 2
"software 3", _ ; 3
"software 4", _ ; 4
"software 5", _ ; 5
"software 6", _ ; 6
"software 7", _ ; 7
"software 8", _ ; 8
"software 9", _ ; 9
"software  10", _ ; 10 ; was missing a space after the "," / il manquait un espace après le ","
"software 11" , _ ; 11
"software  12" ] ; 12

; debug
_ArrayDisplay($Array)

    ;$dimension = $Array[0] ; this is not used anywhere in this code but it would set the value of $dimension to the first value in the above array. / ceci n'est utilisé nulle part dans ce code mais il définirait la valeur de $ dimension à la première valeur du tableau ci-dessus.
    For $i = 0 To UBound($Array) -1 ; added argument to Ubound function 0 index means subtract 1 from length / ajout d'argument à la fonction Ubound 0 index signifie soustraire 1 de la longueur
    ;Sleep (10) not needed / pas besoin
    ConsoleWrite ("this is loop " & $i & @crlf) ; debug to show you it was not looping because Ubound needs the Array as an argument./ debug pour vous montrer que ce n'était pas une boucle car Ubound a besoin du tableau comme argument.
    if FileExists ($Array[$i]) Then  ; test tout les chemins du tableau (var $i)
        TrayTip ("all","ok",10000) ; dit? si tout? est ?bon
    Else
        TrayTip ("/!\ probleme","l'un des nom de logiciel  est pas bon?",10000) ; dit si il a 1 faute?
    EndIf
    Next

 

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Posted

You code is good !

Juste for me juste give my faulse not other becose i don't have time for see 13 software

thank you for hepl ! 

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
  • Recently Browsing   0 members

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