Jump to content
Sign in to follow this  
Lazycat

SysIPAddress32 wrapper

Recommended Posts

Many thanks! Exactly what I needed for my latest script....

BTW: Where do you find the parameters for the DLL Calls?

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I've a problem.

Is it possible to use this in a window with tabs?

Try using the one in the UDFs, like so

#include <GuiIPAddress.au3>

Opt("MustDeclareVars", 1)

_Main()

Func _Main()
    Local $msg, $hgui, $button, $hIPAddress
    Local $tab, $tab_item, $tab_item2
    
    $hgui = GUICreate("IP Address Control", 300, 170)
    
    $tab = GUICtrlCreateTab(10, 10, 280, 130)
    $tab_item = GUICtrlCreateTabItem("test")
    
    $hIPAddress = _GUICtrlIpAddressCreate ($hgui, 20, 40, 150, 30, $WS_DLGFRAME, $WS_EX_CLIENTEDGE)
    _GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
    GUICtrlCreateTabItem("")
    
    $tab_item2 = GUICtrlCreateTabItem("test2")
    GUICtrlCreateTabItem("")
    
    $button = GUICtrlCreateButton("Exit", 100, 140, 100, 25)

    GUISetState(@SW_SHOW)


    While 1
        $msg = GUIGetMsg()
        
        Select
            Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
                Exit
            Case $tab
                If GUICtrlRead($tab) = 0 Then
                    _GUICtrlIpAddressShowHide ($hIPAddress, @SW_SHOW)
                Else
                    _GUICtrlIpAddressShowHide ($hIPAddress, @SW_HIDE)
                EndIf
        EndSelect
    WEnd
EndFunc   ;==>_Main

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

sorry, but where can i download the "GuiIPAddress.au3"?

Latest beta

Note: Once you have the beta the Include will work with the release also, just didn't get it submitted in time.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...