Hello, Please look at this GUI:
#include-once
; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ;
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <GuiButton.au3>
#include <GuiListView.au3>
Global $test = GUICreate("test",283,120,-1,-1,-1,-1)
GUISetBkColor(0xFFFFFF,$test)
$hListMyList = GUICtrlCreatelistview("My List",7,4,269,65,-1,512)
$hButtonAlwaysEnabled = GUICtrlCreateButton("Always Enabled",20,80,100,30,-1,-1)
$hButtonEnabled = GUICtrlCreateButton("Enabled",160,80,100,30,-1,-1)
$hListViewItemMyItem = GUICtrlCreateListViewItem("My List Item", $hListMyList)
GUISetState()
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
I want $hButtonEnabled disabled when a ListViewItem is not selected. I tried inserting a custom function in the while loop but it didn't work that well (button was flickering & high memory usage)
I think its not possible to do in AutoIt AutoIt is awsome!
If you know to do such thing, please post it here , TD
P.S Will be greatly appreciated cause its impossible for me to do