uber125 Posted May 25, 2005 Share Posted May 25, 2005 (edited) Ok I have made a nice little GUI but I need to know how do I get the NET VIEW into the little box after I click the little button?? I have done a serch for NET VIEW and NET SEND but none of the scripts work for me i keep getting errors. All I have so far is the GUI i don't know how to tie the commands to the buttons or make the CMD go into the window. how would i tie ; Run MS-DOS Shell Run ("net view") to the "GO!!!" button and make it goin to the window? expandcollapse popup#include <GuiConstants.au3> ; GUI GuiCreate("Sample GUI", 400, 400) GuiSetIcon(@SystemDir & "", 0) ; CONTEXT MENU $contextMenu = GuiCtrlCreateContextMenu() GuiCtrlCreateMenuItem("Context Menu", $contextMenu) GuiCtrlCreateMenuItem("", $contextMenu);separator GuiCtrlCreateMenuItem("&Properties", $contextMenu) ; INPUT MSG GuiCtrlCreateLabel("IP", 230, 10, 200, 20) ; INPUT GuiCtrlCreateInput("Sample Input Box",20,10, 200, 20) ; INPUT MSG GuiCtrlCreateLabel("MSG", 230, 30, 200, 20) ; INPUT GuiCtrlCreateInput("Sample Input Box",20,30, 200, 20) ; BUTTON MSG GuiCtrlCreateLabel("Send IP A MSG", 86, 60, 200, 20) ; BUTTON GuiCtrlCreateButton("SEND", 70, 75, 110, 20) ; EDIT GuiCtrlCreateEdit(@CRLF & "all CMD feed back come's here", 10, 150, 377, 150) ; BUTTON MSG GuiCtrlCreateLabel("View Your Network", 154, 350, 200, 20) ; BUTTON GuiCtrlCreateButton("GO!!!", 147, 365, 110, 30) ; GUI MESSAGE LOOP GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Edited May 25, 2005 by uber125 Link to comment Share on other sites More sharing options...
Norsestar Posted December 4, 2007 Share Posted December 4, 2007 Ok I have made a nice little GUI but I need to know how do I get the NET VIEW into the little box after I click the little button?? I have done a serch for NET VIEW and NET SEND but none of the scripts work for me i keep getting errors. All I have so far is the GUI i don't know how to tie the commands to the buttons or make the CMD go into the window. how would i tie ; Run MS-DOS Shell Run ("net view") to the "GO!!!" button and make it goin to the window? expandcollapse popup#include <GuiConstants.au3> ; GUI GuiCreate("Sample GUI", 400, 400) GuiSetIcon(@SystemDir & "", 0) ; CONTEXT MENU $contextMenu = GuiCtrlCreateContextMenu() GuiCtrlCreateMenuItem("Context Menu", $contextMenu) GuiCtrlCreateMenuItem("", $contextMenu);separator GuiCtrlCreateMenuItem("&Properties", $contextMenu) ; INPUT MSG GuiCtrlCreateLabel("IP", 230, 10, 200, 20) ; INPUT GuiCtrlCreateInput("Sample Input Box",20,10, 200, 20) ; INPUT MSG GuiCtrlCreateLabel("MSG", 230, 30, 200, 20) ; INPUT GuiCtrlCreateInput("Sample Input Box",20,30, 200, 20) ; BUTTON MSG GuiCtrlCreateLabel("Send IP A MSG", 86, 60, 200, 20) ; BUTTON GuiCtrlCreateButton("SEND", 70, 75, 110, 20) ; EDIT GuiCtrlCreateEdit(@CRLF & "all CMD feed back come's here", 10, 150, 377, 150) ; BUTTON MSG GuiCtrlCreateLabel("View Your Network", 154, 350, 200, 20) ; BUTTON GuiCtrlCreateButton("GO!!!", 147, 365, 110, 30) ; GUI MESSAGE LOOP GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd i've just finished throwing together a simple net sender, but i haven't been able to test it's functionality as im on a server 2003 computer right now and Net Send is disabled from the main server. but here's the file for you to take a look at. it's nothing fancy, just basic variables. will try to throw in a function in a few minutes. but i have to work on this shell for my friend. if you can test it out and let me know how it works, i'd appreciate the feedback. especially if it doesn't work, let me know and i'll tinker with it more.netview.au3 Education: Francis Tuttle Technology Center adult full-time studentCourse of study: Network TechnologyCurrent Course: Microsoft Windows Server 2003, Enterprise EditionCompleted Courses: CompTIA A+ Hardware and Software, Windows XP Professional, Microsoft Office 2003, Desktop Support and Troubleshooting, and CompTIA Network+Remaining Courses: Linux Administration, Copper Cabling, Microsoft Windows Server 2003, Enterprise EditionAchievements: @17 years old, scored 98th percentile U.S. in Algebra 2 and Advanced Chemistry. [i.e. Ranked top 2% in the nation of High School students] 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