Sign in to follow this  
Followers 0
gcue

dynamic GuiCtrlCreateLabel

9 posts in this topic

#1 ·  Posted (edited)

I have a combo box and I'd like to change the label thats on top of it as each item is selected.

here's what I have which doesnt work:

GUICtrlCreateLabel(GetVer($sINI), 60, 10)
$combo = GUICtrlCreateCombo("Select...", 60, 20, 80, 20, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, LoadCombo(), "Select...")

GUISetOnEvent($GUI_EVENT_CLOSE, "Xbutton")

GUISetState()

While 1
    Sleep(1)
WEnd

Func LoadCombo()
    Local $arr = IniReadSection($INI, "sINIs"), $sAssets
    If Not @error Then
        For $i = 1 To $arr[0][0]
            $sAssets &= $arr[$i][0] & "|"
        Next
        Return StringTrimRight($sAssets, 1)
    EndIf
    Return "Nothing loaded"
EndFunc   ;==>LoadCombo

Func GetVer($sINI)
    
    $sINI = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf

    MsgBox(0, "", $sINI)
    
    ;FileGetVersion($EXE)
    
EndFunc   ;==>GetVer
Edited by gcue

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You should provide a working example to get some help (so someone can run it and test it) :)

Added:

Anyway, you need to set OnEvent for the Combo, and check it's value (GUICtrlRead()), then just set the label:

...

$Label = GUICtrlCreateLabel(GetVer($sINI), 60, 10)

...

GUICtrlSetData($Label, GUICtrlRead($Combo, 1))

...
Edited by MrCreatoR

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ok not sure how to do the oneventfunction... what am i doing wrong?

(i added line 18 and 54 to try to get this working)

thank you in advance.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GuiConstants.au3>
#include <Constants.au3>
#include <file.au3>
#include <GuiComboBox.au3>
#include <WindowsConstants.au3>
#include <GuiEdit.au3>
#include <array.au3>

Opt("GUIOnEventMode", 1)

Global $INI = "pointers.ini", $iPing, $OK_btn, $initials, $sINI_path, $add_child, $error, $sINI, $label, $EXE

GUICreate(@ScriptName, 335, 60); WS_EX_ACCEPTFILES

$label = GUICtrlCreateLabel(GetVer($EXE), 60, 10)
$combo = GUICtrlCreateCombo("Select...", 60, 20, 80, 20, $CBS_DROPDOWNLIST); create combobox and set first item
GUICtrlSetData(-1, LoadCombo(), "Select...")

$ADD_btn = GUICtrlCreateButton("ADD", 10, 20, 40, 20)
GUICtrlSetOnEvent($ADD_btn, "Add_GUI")

$sINI_btn = GUICtrlCreateButton("sINI", 145, 20, 40, 20)
GUICtrlSetOnEvent($sINI_btn, "Open_sINI")

$aINI_btn = GUICtrlCreateButton("aINI", 190, 20, 40, 20)
GUICtrlSetOnEvent($aINI_btn, "Open_aINI")

$LOG_btn = GUICtrlCreateButton("LOG", 235, 20, 40, 20)
GUICtrlSetOnEvent($LOG_btn, "Open_LOG")

$DIR_btn = GUICtrlCreateButton("DIR", 280, 20, 40, 20)
GUICtrlSetOnEvent($DIR_btn, "Open_DIR")

GUISetOnEvent($GUI_EVENT_CLOSE, "Xbutton")

GUISetState()

While 1
    Sleep(1)
WEnd

Func LoadCombo()
    
    Local $arr = IniReadSection($INI, "sINIs"), $sAssets

    If Not @error Then
        For $i = 1 To $arr[0][0]
            $sAssets &= $arr[$i][0] & "|"
        Next
        Return StringTrimRight($sAssets, 1)
        GUICtrlSetData($label, $EXE)
    EndIf

    Return "Nothing loaded"
EndFunc   ;==>LoadCombo

Func Add_GUI()
    
    $add_child = GUICreate("ADD", 385, 100, -1, -1, $WS_EX_MDICHILD)
    
    $initials = GUICtrlCreateInput("", 10, 40, 45, 20, $ES_UPPERCASE)
    GUICtrlCreateLabel("INITIALS:", 10, 10)
    $sINI_path = GUICtrlCreateInput("", 75, 40, 250, 20)
    GUICtrlCreateLabel("SETTINGS PATH:", 70, 10)
    
    $OK_btn = GUICtrlCreateButton("OK", 335, 40, 30, 20)
    GUICtrlSetOnEvent($OK_btn, "Add")
    
    GUISetState()
    
EndFunc   ;==>Add_GUI

Func Add()
    
    $entry = StringSplit(GUICtrlRead($sINI_path), ",")
    
    IniWrite($INI, "sINIs", GUICtrlRead($initials), '"' & $entry[1] & '\settings.ini"')
    _ReplaceStringInFile($INI, "c:\", "\\" & $entry[2] & "\c$\")
    
    
    $entries = ("sINIs")
    $entries_temp = ($entries & "_TEMP")

    $sort = IniReadSection($INI, $entries)
    
    _ArraySort($sort, 0, 1)

    IniWriteSection($INI, $entries_temp, $sort)
    IniDelete($INI, $entries)
    IniRenameSection($INI, $entries_temp, $entries)

    
    GUICtrlSetData($combo, "")
    GUICtrlSetData($combo, "Select...|" & LoadCombo(), "Select...")
    
    GUIDelete($add_child)
    
EndFunc   ;==>Add

Func Open_sINI()
    
    $sINI = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    ShellExecute($sINI)
    
EndFunc   ;==>Open_sINI

Func Open_aINI()
    
    $sINI = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    $aINI = IniRead($sINI, "SETTINGS", "Assets_INI", "")
    $aINI = StringReplace($aINI, "c:\", "\\" & $asset & "\c$\")
    
    ShellExecute($aINI)
    
EndFunc   ;==>Open_aINI

Func Open_LOG()
    
    $sINI = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    $aINI = IniRead($sINI, "SETTINGS", "Assets_INI", "")
    $aINI = StringReplace($aINI, "c:\", "\\" & $asset & "\c$\")
    $aINI = StringTrimRight($aINI, 10)
    $LOG = $aINI & "log.txt"
    
    If Not FileExists($LOG) Then
        MsgBox(0, @ScriptName, "No log yet.")
        Return
    EndIf
    
    ShellExecute($LOG)
    
EndFunc   ;==>Open_LOG

Func Open_DIR()
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf

    $folder = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    $folder = StringTrimRight($folder, 13)
    
    Run(@WindowsDir & "\explorer.exe " & $folder)

EndFunc   ;==>Open_DIR

Func GetVer($EXE)
    
    $sINI = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf

    $EXE = (StringTrimRight($sINI, 12) & "Dashboard.exe")
    $EXE = FileGetVersion($EXE)
    
EndFunc   ;==>GetVer


Func Xbutton()
    Exit
EndFunc   ;==>Xbutton
Edited by gcue

Share this post


Link to post
Share on other sites

ok not sure how to do the oneventfunction...

gcue, how could you do this to me? After all we've been through together! :)

:o

I don't know but at least put the $combo = line before the $label = line since GetVer refers to $combo which won't exist. Then maybe put the label a bit higher so it doesn't overlap the combo.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

LOL!!!! :)

this is different.. isnt it?

(moved line 18 to 21)

$combo = GUICtrlCreateCombo("Select...", 60, 20, 80, 20, $CBS_DROPDOWNLIST); create combobox and set first item
GUICtrlSetData(-1, LoadCombo(), "ADB")
$label = GUICtrlCreateLabel(GetVer($EXE), 60, 10)

ok no more error but nothing happens when i select a $combo item.. *sigh*

Share this post


Link to post
Share on other sites

where's your guictrlsetonevent? it won't do anything if you don't point it to a function.


Giggity

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

makes sense but im not sure where to put it so that it changes when the selection on the combo changes..

i tried putting GUICtrlSetOnEvent($label, GetVer($EXE)) in loadcombo() - no dice.

Edited by gcue

Share this post


Link to post
Share on other sites

makes sense but im not sure where to put it so that it changes when the selection on the combo changes..

i tried putting GUICtrlSetOnEvent($label, GetVer($EXE)) in loadcombo() - no dice.

I think someone need to read the help file:

controlID The control identifier (controlID) as returned by a GUICtrlCreate... function.

function The name of the user function to call.

Try this:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GuiConstants.au3>
#include <Constants.au3>
#include <file.au3>
#include <GuiComboBox.au3>
#include <WindowsConstants.au3>
#include <GuiEdit.au3>
#include <array.au3>

Opt("GUIOnEventMode", 1)

Global $INI = "pointers.ini", $iPing, $OK_btn, $initials, $sINI_path, $add_child, $error, $sINI, $label, $EXE

GUICreate(@ScriptName, 335, 60); WS_EX_ACCEPTFILES

$combo = GUICtrlCreateCombo("Select...", 60, 20, 80, 20, $CBS_DROPDOWNLIST); create combobox and set first item
GUICtrlSetData(-1, LoadCombo(), "Select...")
GUICtrlSetOnEvent($combo, "Combo_Event")

$label = GUICtrlCreateLabel(GetVer($EXE), 60, 5, 200, 15)

$ADD_btn = GUICtrlCreateButton("ADD", 10, 20, 40, 20)
GUICtrlSetOnEvent($ADD_btn, "Add_GUI")

$sINI_btn = GUICtrlCreateButton("sINI", 145, 20, 40, 20)
GUICtrlSetOnEvent($sINI_btn, "Open_sINI")

$aINI_btn = GUICtrlCreateButton("aINI", 190, 20, 40, 20)
GUICtrlSetOnEvent($aINI_btn, "Open_aINI")

$LOG_btn = GUICtrlCreateButton("LOG", 235, 20, 40, 20)
GUICtrlSetOnEvent($LOG_btn, "Open_LOG")

$DIR_btn = GUICtrlCreateButton("DIR", 280, 20, 40, 20)
GUICtrlSetOnEvent($DIR_btn, "Open_DIR")

GUISetOnEvent($GUI_EVENT_CLOSE, "Xbutton")

GUISetState()

While 1
    Sleep(1)
WEnd

Func LoadCombo()
    
    Local $arr = IniReadSection($INI, "sINIs"), $sAssets

    If Not @error Then
        For $i = 1 To $arr[0][0]
            $sAssets &= $arr[$i][0] & "|"
        Next
        Return StringTrimRight($sAssets, 1)
        GUICtrlSetData($label, $EXE)
    EndIf

    Return "Nothing loaded"
EndFunc   ;==>LoadCombo

Func Combo_Event()
    GUICtrlSetData($label, GUICtrlRead($combo))
EndFunc   ;==>Combo_Event

Func Add_GUI()
    
    $add_child = GUICreate("ADD", 385, 100, -1, -1, $WS_EX_MDICHILD)
    
    $initials = GUICtrlCreateInput("", 10, 40, 45, 20, $ES_UPPERCASE)
    GUICtrlCreateLabel("INITIALS:", 10, 10)
    $sINI_path = GUICtrlCreateInput("", 75, 40, 250, 20)
    GUICtrlCreateLabel("SETTINGS PATH:", 70, 10)
    
    $OK_btn = GUICtrlCreateButton("OK", 335, 40, 30, 20)
    GUICtrlSetOnEvent($OK_btn, "Add")
    
    GUISetState()
    
EndFunc   ;==>Add_GUI

Func Add()
    
    $entry = StringSplit(GUICtrlRead($sINI_path), ",")
    
    IniWrite($INI, "sINIs", GUICtrlRead($initials), '"' & $entry[1] & '\settings.ini"')
    _ReplaceStringInFile($INI, "c:\", "\\" & $entry[2] & "\c$\")
    
    
    $entries = ("sINIs")
    $entries_temp = ($entries & "_TEMP")

    $sort = IniReadSection($INI, $entries)
    
    _ArraySort($sort, 0, 1)

    IniWriteSection($INI, $entries_temp, $sort)
    IniDelete($INI, $entries)
    IniRenameSection($INI, $entries_temp, $entries)

    
    GUICtrlSetData($combo, "")
    GUICtrlSetData($combo, "Select...|" & LoadCombo(), "Select...")
    
    GUIDelete($add_child)
    
EndFunc   ;==>Add

Func Open_sINI()
    
    $sINI = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    ShellExecute($sINI)
    
EndFunc   ;==>Open_sINI

Func Open_aINI()
    
    $sINI = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    $aINI = IniRead($sINI, "SETTINGS", "Assets_INI", "")
    $aINI = StringReplace($aINI, "c:\", "\\" & $asset & "\c$\")
    
    ShellExecute($aINI)
    
EndFunc   ;==>Open_aINI

Func Open_LOG()
    
    $sINI = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf
    
    $aINI = IniRead($sINI, "SETTINGS", "Assets_INI", "")
    $aINI = StringReplace($aINI, "c:\", "\\" & $asset & "\c$\")
    $aINI = StringTrimRight($aINI, 10)
    $LOG = $aINI & "log.txt"
    
    If Not FileExists($LOG) Then
        MsgBox(0, @ScriptName, "No log yet.")
        Return
    EndIf
    
    ShellExecute($LOG)
    
EndFunc   ;==>Open_LOG

Func Open_DIR()
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf

    $folder = IniRead($INI, "sINIS", GUICtrlRead($combo), "")
    $folder = StringTrimRight($folder, 13)
    
    Run(@WindowsDir & "\explorer.exe " & $folder)

EndFunc   ;==>Open_DIR

Func GetVer($EXE)
    
    $sINI = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    
    $asset = IniRead($INI, "sINIs", GUICtrlRead($combo), "")
    $asset = StringTrimLeft($asset, 2)
    $asset = StringLeft($asset, 8)
    
    Ping($asset)
    If @error Then
        MsgBox(0, @ScriptName, $asset & " is offline")
        Return
    EndIf
    
    RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
    
    If @error Then
        MsgBox(0, @ScriptName, "No Admin Rights on " & GUICtrlRead($combo))
        Return
    EndIf

    $EXE = (StringTrimRight($sINI, 12) & "Dashboard.exe")
    $EXE = FileGetVersion($EXE)
    
EndFunc   ;==>GetVer

Func Xbutton()
    Exit
EndFunc   ;==>Xbutton

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

that worked!

many thanks!

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  
Followers 0