Jump to content

Search the Community

Showing results for tags 'array text file GUI list'.

  • 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


Member Title


Location


WWW


Interests

Found 1 result

  1. The idea is that I want to save user names to a text file.. then be able to recall or 'Load' users saved to that text file in a list.. I need the list to be displayed within the GUICtrlCreateList function.. Here is the code I'm having trouble with, it displays a list of arrays using _arraydisplay BUT I dont want it displayed in columns and rows... #include #include #include #include #include #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 277, 254, 192, 124) $write = GUICtrlCreateInput("", 16, 16, 161, 21) $enter = GUICtrlCreateButton("Enter", 192, 8, 73, 25) $names = GUICtrlCreateList("", 24, 56, 209, 175) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $userspath = "C:\Documents and Settings\matthews\My Documents\Reece's Scripts\Users.txt" $readusers = fileread($userspath) Local $array $read = _Filereadtoarray($userspath, $array) guictrlsetdata($names, $read) _arraydisplay($array) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $enter $readwrite = guictrlread($write) guictrlsetdata($names, $readwrite) guictrlsetdata($write, "") filewrite($userspath, $readwrite & @CRLF) EndSwitch WEnd
×
×
  • Create New...