Jump to content

Net View and Send GUI


uber125
 Share

Recommended Posts

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?

#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 by uber125
Link to comment
Share on other sites

  • 2 years later...

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?

#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

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...