Jump to content

Input Box option?


keilamym
 Share

Recommended Posts

I need to run remote commands on multiple devices.  id like copy a list of devices into an inbox like this.

Computer1
Computer2
Computer3
Computer4
Computer5

Then have and tool execute some commands on all the devices. Is there a function to allow the copy/paste into a box to create a device target list? I've looked and opened a LOT of sample scripts but can't seem to find what I'm looking for. All the input box examples i find are for single line entries. Maybe i'm just missing it?

Thanks in advance.

Keilamym

Edited by keilamym
Link to comment
Share on other sites

after the post, i found GUICtrlCreateEdit and put this sample together.  if i could take the list and place it into an array, I would still need to place the device names into an array and run a loop for commands. 

 

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
    GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered
    Local $list = GUICtrlCreateEdit("", 176, 32, 121, 197, $ES_AUTOVSCROLL + $WS_VSCROLL)
    GUISetState(@SW_SHOW)
    Send("{END}")


$Submit = GUICtrlCreateButton("Submit", 100, 350, 90,40)

$cancel = GUICtrlCreateButton("Exit", 200, 350, 90,40 )

    While 1

        $listview=GUICtrlRead ($list)


        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
                Exit

            Case $cancel
                ExitLoop
                Exit

            Case $Submit

            MsgBox (4096,"test",$listview)


        EndSwitch
    WEnd
    GUIDelete()
EndFunc   ;==>Example


again, any help would be appreciated.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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