Jump to content
Sign in to follow this  
FMS

Topdesk support tool

Recommended Posts

FMS

Dear reader,

At the moment I m making a topdesk support tool.

this tool i was hooping that i can read the ip from the computer you connect whit over the network,

and hoped u can help me whit this problem.

This is what i get so far:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


$Form1 = GUICreate("Topdesk support tool", 273, 95, 192, 114)
$Input1 = GUICtrlCreateInput("computername", 136, 16, 113, 21)
$Label1 = GUICtrlCreateLabel("PC/TC/VM/LT name", 16, 16, 105, 17)
$Connect = GUICtrlCreateButton("Connect", 136, 48, 97, 25, $WS_GROUP)
$Cancel = GUICtrlCreateButton("Cancel", 19, 48, 97, 25, $WS_GROUP)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Cancel
            Exit
        Case $Connect
            Run ("C:\Program Files\RealVNC\VNC4\vncviewer.exe")
            WinWaitActive("VNC Viewer : Connection Details", "")
            send(GUICtrlRead($Input1),1)
            send("{enter}")
            if ("VNC Viewer : Error")then exit
            WinWaitActive("VNC Viewer : Authentication", "")
            ;Gui for password
            WinWaitActive(GUICtrlRead($Input1), "");still capital sensitive
            ;i hoped here a messagebox whit the ip result from the network
    EndSwitch
WEnd

in the end of the script i hooped to get the information from the computer i connect whit when i m taking over the computer from our users.

such as IP adres and possible logged in user on that computer.

I tried a lot of things but still stuck so hooped this forum can help me whit this.

thnx in advanced


as finishing touch god created the dutch

Share this post


Link to post
Share on other sites
Mackaaij

Look a little bit like my CommandCenter tool. I don't know what you're trying to do exactly but maybe my page can help:

http://www.eenmanierom.nl/system-management-tools-sneller-te-starten/

Share this post


Link to post
Share on other sites
FMS

yes indeed something like that:)

the thing is...

(maybe i say it wrong but i'm still a little noob in autoit:))

i need the result of a "Ping computername" or ipconfig if u will...

in the end a message whit --> msgbox("the IP of the computer name is : 192.168.1.100")

:idea:


as finishing touch god created the dutch

Share this post


Link to post
Share on other sites
99ojo

Hi,

have a look at function TCPNameToIP () in helpfile.

;-))

Stefan

Share this post


Link to post
Share on other sites
FMS

yes that whas just what i needed:)

thnx :idea:


as finishing touch god created the dutch

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.