Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to get name of check box in list view

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Madalyna
How do I cheat?
Reputation: 0

Joined: 04 Aug 2015
Posts: 4

PostPosted: Tue Aug 04, 2015 10:36 am    Post subject: how to get name of check box in list view Reply with quote

how to get name of check box in list view?


screenshot_27.png
 Description:
how to get name of check box in list view
 Filesize:  148.69 KB
 Viewed:  3740 Time(s)

screenshot_27.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Aug 04, 2015 11:04 am    Post subject: Reply with quote

Enumerate through the list and check if the ListItem is checked.

This example will print out the index and text of the selected item(s)
Code:

for i=0, ListViewObject.Items.Count-1 do
  if ListViewObject.Items[i].Checked then
    print(i..":"..ListViewObject.Items[i].Caption)
  end
end

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Madalyna
How do I cheat?
Reputation: 0

Joined: 04 Aug 2015
Posts: 4

PostPosted: Wed Aug 05, 2015 7:44 pm    Post subject: Reply with quote

He guve me error teling Sad
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Aug 05, 2015 10:12 pm    Post subject: Reply with quote

Did you change "ListViewObject" to the actual name you assigned to your list view object?
Back to top
View user's profile Send private message
Madalyna
How do I cheat?
Reputation: 0

Joined: 04 Aug 2015
Posts: 4

PostPosted: Sun Aug 09, 2015 5:54 am    Post subject: Reply with quote

[b]Code for Check all and Ubcheck all ?[/b]
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Aug 09, 2015 6:26 am    Post subject: Reply with quote

change the loop and set ListViewObject.Items[i].Checked=true / false
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites