CLEO Help request for cleo.

CLEO related
Status
Not open for further replies.

Leja

New member
Joined
May 14, 2020
Messages
4
Reaction score
0
Location
Vilnius
Hello how make that when the window popup its show alot of difirent numbers how make it to click your wanted color?

( Need help )
 

real_fl1k

Active member
Joined
Apr 23, 2020
Messages
72
Reaction score
8
Location
Belgrade
0B4C: samp is_dialog_active 1@
0BD8: samp get_dialog_caption 0@
0BD7: samp get_dialog_text 0@
0B4B: samp set_current_dialog_editbox_text 1@
0B49: samp set_current_dialog_list_item 1@
0B47: samp close_current_dialog_with_button 1@

if it's a dialog u have these functions, you can also search for them by typing "dialog" in the sanny builder op code searcher
 

Leja

New member
Joined
May 14, 2020
Messages
4
Reaction score
0
Location
Vilnius
0B4C: samp is_dialog_active 1@
0BD8: samp get_dialog_caption 0@
0BD7: samp get_dialog_text 0@
0B4B: samp set_current_dialog_editbox_text 1@
0B49: samp set_current_dialog_list_item 1@
0B47: samp close_current_dialog_with_button 1@

if it's a dialog u have these functions, you can also search for them by typing "dialog" in the sanny builder op code searcher

we need to click purple one.
 

Attachments

  • 1589438796737.png
    1589438796737.png
    78.8 KB · Views: 32

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
//get number of dialog elements
0B54: samp 1@ = listbox_items_count

//substract one from total cout
1@ -= 1 //last item is actually the null terminator

chatmsg "num of elements %d" -1 1@

for 0@ = 0 to 1@
alloc 2@ = 256
0B5B: samp get_listbox_item 0@ text_to 2@     
chatmsg "element %d - text: %s" -1 0@ 2@
free 2@
end

http://ugbase.eu/index.php?threads/some-snippets.20983/#post-127267
 
Last edited:
Status
Not open for further replies.
Top