Jump to content

Search the Community

Showing results for tags 'read contents'.

  • 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. Hi All, I have created a script to meet my automation need. The plan is to read the contents of the selected items in UI and then write the same to a text file. The code that I have with me is as below. Can someone please help me how to write the selected values to a text file? ; Example of TAB in TAB ctrl #include <GUIConstants.au3> Global $main_GUI,$ok_button,$cancel_button ; This window has 2 ok/cancel-buttons $main_GUI       = GUICreate("TAB in TAB",1000,700,-1,-1) $ok_button      = GUICtrlCreateButton("  OK  ",400,650,100,30) $cancel_button  = GUICtrlCreateButton("  Cancel  ",530,650,100,30) ; Create the first child window that is implemented into the main GUI $child1         = GUICreate("",940,547,25,82,BitOr($WS_CHILD,$WS_TABSTOP),-1,$main_GUI) $child_tab      = GUICtrlCreateTab(5,5,929,539) $child11tab     = GUICtrlCreateTabItem("::              Win 7             ::") GUICtrlCreateLabel("Username", 20, 70, 100, 25) UI_Scenario_Products() $child12tab     = GUICtrlCreateTabItem("::              Win 8             ::") UI_Scenario_Products() $child13tab     = GUICtrlCreateTabItem("::              Win 8.1             ::") UI_Scenario_Products() $child14tab     = GUICtrlCreateTabItem("::              Win 10             ::") UI_Scenario_Products() $child15tab     = GUICtrlCreateTabItem("::              Win 10.1             ::") UI_Scenario_Products() GUICtrlCreateTabItem("") GUISetState() ; Create the second child window that is implemented into the main GUI $child2         = GUICreate("",940,355,25,82,BitOr($WS_CHILD,$WS_TABSTOP),-1,$main_GUI) ;$listview2      = GUICtrlCreateListView("Col1|Col2",10,10,910,315,-1,$WS_EX_CLIENTEDGE) $child_tab      = GUICtrlCreateTab(5,5,930,335) $child11tab     = GUICtrlCreateTabItem("::          Win 7     ::") $child12tab     = GUICtrlCreateTabItem("::          Win 8         ::") $child13tab     = GUICtrlCreateTabItem("::          Win 8.1         ::") $child14tab     = GUICtrlCreateTabItem("::          Win 10         ::") $child15tab     = GUICtrlCreateTabItem("::          Win 2K8 R2         ::") $child11tab     = GUICtrlCreateTabItem("::          Win 2012 R2         ::") $child12tab     = GUICtrlCreateTabItem("::          Win 2016         ::") ; Switch back the main GUI and create the tabs GUISwitch($main_GUI) $main_tab       = GUICtrlCreateTab(10,50,970,590) $child1tab      = GUICtrlCreateTabItem("                                                                         32 Bit                                                                        ") $child2tab      = GUICtrlCreateTabItem("                                                                         64 Bit                                                                        ") GUICtrlCreateTabItem("") GUISetState() Dim $sMenutext While 1     $msg = GUIGetMsg(1)     Switch $msg[0]         Case $GUI_EVENT_CLOSE, $cancel_button             ExitLoop         Case $main_tab             Switch GUICtrlRead($main_tab)                 Case 0                   GUISetState(@SW_HIDE,$child2)                   GUISetState(@SW_SHOW,$child1)                 Case 1                   GUISetState(@SW_HIDE,$child1)                   GUISetState(@SW_SHOW,$child2)             EndSwitch     EndSwitch  WEnd Func UI_Scenario_Products()    $Top = 150    $Left = 120    For $scenarios = 1 To 10 Step 1          $idScenario = GUICtrlCreateLabel("Scenario - " & $scenarios, 20, $Top, 100, 25)          For $Products = 1 To 8 Step 1             $idProduct = GUICtrlCreateCombo("", $Left, $Top, 100, 25)             $ComboSeletectItem = GUICtrlSetData($idProduct, "AAA 88 RP1|AAA 88 RP2|AAA 88 RP3|AAA 88 RP4|AAA 88 RP5|AAA 88 RP6|AAA 88 RP7|AAA 88 RP8|BBB 88 RP1|BBB 88 RP2|BBB 88 RP3", "")             $Left = $Left + 100          Next    $Top = $Top + 35    $Left = 120    Next EndFunc
×
×
  • Create New...