Jump to content

Search the Community

Showing results for tags 'nested loop'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 2 results

  1. How do you perform a nested loop function with a multidimensional array from 2 lists. for i in list1 (open file) extract variable while open for i in list 2 (open file2) extract variable var1 + var2 = (search term) The list sizes will more than likely consist of different lengths. What is the best approach to accomplishing this method?
  2. Hello! I am working on a function that I am just getting lost on. The goal is a multiple nested loop. Here are the steps: Contents of file1.txt:: [topic] var1=Name var2=OtherName var3=SomeotheName Contents of file2.txt:: [subTopic] top=sub1 top2=sub2 top3=sub3 The Shell I am working from:: #include <file.au3> $file = "c:\yourfile.txt" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) msgbox(0,'','the line ' & $i & ' is ' & $line) Next FileClose($file) Understanding however that the "msgbox" needs to then become a variable. in example the following:: $file = "c:\yourfile.txt" FileOpen($file, 0) While true( prog.exe is running && "WinName" is open) do For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) ;Open File to log "current location of file 1" FileWriteLine ("filename", $i & ' is ' & $line) var = $line Next $file2 = "c:\yourfile.txt" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) ; OpenFile to log "Current location of file 2" FileWriteLine ("filename", $i & ' is ' & $line) Next FileClose($file2) FileClose($file) The goal in written form is the following :: While in "OpenWindow" read from file 1 starting at line 1 until end of file. file 1 is a list of names to be searched. With $line selected, add this element to the element in file 2. The search of a variables in list 1 and list 2 differ on the amount of posts that day. (This is not a web based platform, it is a game) I need to search 2 names and take a screenshot of the out put. The sizes of the names list depend on the activity of names at the time of search. This loop continues until all the names from both lists have been searched. Mostly in the format of:: File1= item File2= Vendor Item + Vendor ( Capture screen, scroll) -- Not sure how to detect if I need to scroll) Thank you for your help and support!
×
×
  • Create New...