tempman Posted May 6, 2008 Share Posted May 6, 2008 Hi, How to put content of MsgBox in Tab? #NoTrayIcon #include <GuiConstants.au3> GuiCreate("IPset", 400, 400) GuiCtrlCreateTab(5, 5, 390, 350) GuiCtrlCreateTabItem("IP address") #Region $ip = Run(@ComSpec & " /c ipconfig","",@SW_HIDE, 2) $ip_output=StdoutRead($ip) MsgBox(0, "IP address", $ip_output); <----------------------- Insted of MsgBox just Plain Text in Tab #EndRegion GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() Exit Link to comment Share on other sites More sharing options...
MerkurAlex Posted May 6, 2008 Share Posted May 6, 2008 (edited) Hi, How to put content of MsgBox in Tab? #NoTrayIcon #include <GuiConstants.au3> GuiCreate("IPset", 400, 400) GuiCtrlCreateTab(5, 5, 390, 350) GuiCtrlCreateTabItem("IP address") #Region $ip = Run(@ComSpec & " /c ipconfig","",@SW_HIDE, 2) $ip_output=StdoutRead($ip) MsgBox(0, "IP address", $ip_output); <----------------------- Insted of MsgBox just Plain Text in Tab #EndRegion GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() ExitGuiCtrlCreateLabel look in the help file. Also look at @ipaddress1 removes the need for running ipconfig. And _GetIp returns actual ip not local one good luck! Edited May 6, 2008 by MerkurAlex [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
tempman Posted May 6, 2008 Author Share Posted May 6, 2008 (edited) GuiCtrlCreateLabel look in the help file.Also look at @ipaddress1 removes the need for running ipconfig.And _GetIp returns actual ip not local one good luck!Thanks for replying!I nead IP, Subnet and Gateway to be display, so @ipaddress1 does not do the job and no nead for _GetIPGUICtrlCreateLabel ($ip_output, 80, 50, 0, 0)instead of MsgBox(0, "IP address", $ip_output)And my task is solved! Edited May 6, 2008 by tempman 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