Fractured Posted February 21, 2020 Share Posted February 21, 2020 (edited) Illegal character error on the GuiCtrlSetData(-1, $NA1|$NA2, "") for the GUICtrlCreateList & GUICtrlCreateCombo. Ok...so im thinking that the problem may lie with the use of @IPAddress# to set my adapter variables. But totally not sure since im still in major newbie status!! This is a test to see if I can populate a Combo box with the network adapter ip's in my computer. One of the new boxes I test uses a usb to ethernet adapter which is set to 192.168.1.100 but I also need to be able to select the company assigned ip for my computer since the old version of the box connected through that network adapter. The extra input boxes were just to see what accepted the $NA# variables using the @IPAddress# macro. Any help would be greatly appreciated. expandcollapse popup#include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GuiIPAddress.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 0) Opt("GUIDataSeparatorChar", "|") ;"|" is the default $NA1 = @IPAddress1 $NA2 = @IPAddress2 #Region ### START Koda GUI section ### Form=G:\Mine_Autoit\Models\Testing\TCP Test Scripts\TCP_Test.kxf $Form1 = GUICreate("Form1", 615, 437, 198, 142) $Input1 = GUICtrlCreateInput("Input1", 56, 24, 121, 21) GuiCtrlSetData(-1, $NA1) $Edit1 = GUICtrlCreateEdit("", 32, 64, 185, 89) GuiCtrlSetData(-1, $NA1) $List1 = GUICtrlCreateList("", 32, 176, 121, 97) GuiCtrlSetData(-1, $NA1|$NA2, "") $Combo1 = GUICtrlCreateCombo("Combo1", 344, 40, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GuiCtrlSetData(-1, $NA1|$NA2) $IPAddress1 = _GUICtrlIpAddress_Create($Form1, 384, 128, 130, 21) _GUICtrlIpAddress_Set($IPAddress1, "0.0.0.0") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd Edited February 21, 2020 by Fractured Link to comment Share on other sites More sharing options...
Danp2 Posted February 21, 2020 Share Posted February 21, 2020 That isn't a valid command. Perhaps you meant this? GuiCtrlSetData(-1, $NA1 & " |" & $NA2, "") Fractured 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Fractured Posted February 21, 2020 Author Share Posted February 21, 2020 Yup, that did it....didn't think about the quotes...Thanks @Danp2!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now