FireLordZi Posted January 26, 2008 Share Posted January 26, 2008 How do I hide listview items that don't have an online image in their column (see code) when my checkbox is selected? If $Online > 0 Then INIWrite("C:\buddies.ini", "OnlineBuddies", $buddyname, IniRead("C:\buddies.ini", "OnlineBuddies", $buddyname, "") & $text & ","); Writes the buddy's name and table to the ini GUICtrlSetData($Img, "||" & _NowDate() & " at " & _NowTime(3)) GUICtrlSetImage($Img, "shell32.dll", -138); [b]Online image[/b] Else GUICtrlSetImage($Img, "shell32.dll", -110); [b]Offline image[/b] EndIf Is there a way to check each item one by one maybe in a For Next Loop if they have an Online image in the column and if so keep, otherwise hide? While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
FireLordZi Posted January 26, 2008 Author Share Posted January 26, 2008 Or rather how do I get a columns control ID? While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 26, 2008 Share Posted January 26, 2008 Or rather how do I get a columns control ID?The only reference I see to a ListView is in your title, not any in the code. But you do seem to be trying to control a complex control with only the native GuiCtrl* functions.You need to completely rethink that based on the GuiListView.au3 UDF functions. Look up _GuiCtrlListView_* in the help file.(Tweaked additionally in the recently released 3.2.11.0 Beta...) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
FireLordZi Posted January 26, 2008 Author Share Posted January 26, 2008 Never mind, I solved it. Thanks though. While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now