cprz Posted January 4, 2005 Share Posted January 4, 2005 alright sence you guys are good at helping just figure to see if i could get some help lol err i dont see y this isnt working here take a look $plist = $list=GUICtrlCreateList ("|pinged ip |", 10,345,155,75) $ping = GUICtrlCreateInput ( @IPAddress1, 10, 410, 155, 20) $button = GUICtrlCreateButton ("PING", 10, 430, 40) GuiSetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GuiGetMsg() Select case $msg = $button GuiCtrlSetData($plist, Ping ($ping)) EndSelect Wend Link to comment Share on other sites More sharing options...
killaz219 Posted January 4, 2005 Share Posted January 4, 2005 (edited) I think you need a GuiCtrlRead in there on $ping, right before you attempt to do the ping. Edited January 4, 2005 by killaz219 Link to comment Share on other sites More sharing options...
cprz Posted January 4, 2005 Author Share Posted January 4, 2005 (edited) humm still dont get it lol Edited January 4, 2005 by cprz Link to comment Share on other sites More sharing options...
Holger Posted January 4, 2005 Share Posted January 4, 2005 (edited) You have to seperate your 2 commands:$plist = GUICtrlCreateList ("|pinged ip |", 10,345,155,75) $list= $plistand then add something like:$data = GUICtrlRead($ping) GuiCtrlSetData($plist,$data,$data)EditHere is it how I mean it:#include <GUIConstants.au3> Global $plist,$list GUICreate("test",500,500) $plist = GUICtrlCreateList ("|pinged ip |", 10,345,155,75) $list = $plist Msgbox(0,"",$list & @LF & $plist) $ping = GUICtrlCreateInput ( @IPAddress1, 10, 410, 155, 20) $button = GUICtrlCreateButton ("PING", 10, 430, 40) GuiSetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GuiGetMsg() Select case $msg = $button $data = GUICtrlRead($ping) GuiCtrlSetData($plist,$data,$data) EndSelect Wend Edited January 4, 2005 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
cprz Posted January 4, 2005 Author Share Posted January 4, 2005 rofl no wonder it wasnt working there was typo i did in the script the $plist = list=GUICtrlCreateList ("|pinged ip |", 10,345,155,75) Link to comment Share on other sites More sharing options...
cprz Posted January 4, 2005 Author Share Posted January 4, 2005 hey thx for the help really needed it. 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