CLEO Auto Select From Dialog Box

stas

Member
Joined
Nov 20, 2018
Messages
9
Likes
0
Points
1
1
#1
Can someone help me with this? Like when I type a command /job, cleo script automatically open the /help dialog box (server command) and automatically select Jobs option from dialog box. Thank you!
 
OP
OP
S

stas

Member
Joined
Nov 20, 2018
Messages
9
Likes
0
Points
1
1
#6
Yes, I use Sampfuncs, can you just make the script? i know all requirements and I don't have problems with versions etc. Thanks.
 
OP
OP
S

stas

Member
Joined
Nov 20, 2018
Messages
9
Likes
0
Points
1
1
#9
I want like this - With command /gh <Jobs> to select automatically Jobs from list, /gh <Bank> to select automatically Bank, /gh <Helpers> select Helpers, you know what I say? I did this before but I forgot how to do this.
 

Attachments

OP
OP
S
Joined
Nov 20, 2018
Messages
9
Likes
0
Points
1
1
#11
PHP:
0B49: samp set_current_dialog_list_item 5
0B47: samp close_current_dialog_with_button 1
I know this but i want to do that with only one command that can choose something from Dialog Box. Like /f <Jobs> or /f <General> you know what I'm about?
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,519
Likes
173
Points
78
Location
Lithuania
Website
ugbase.eu
15
#14
PHP:
{$CLEO .cs}

wait 10000

0000: NOP

while true
wait 0

if
0B4C:  samp is_dialog_active -1 // -1 any
then
    0AC8: [email protected] = allocate_memory_size 260
    0BD8: samp get_dialog_caption [email protected]
    if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "SERVER: Commands"
    then
        0B49: samp set_current_dialog_list_item 5
        0B47: samp close_current_dialog_with_button 1
    end
end
            
end
 
OP
OP
S
Joined
Nov 20, 2018
Messages
9
Likes
0
Points
1
1
#15
PHP:
{$CLEO .cs}

wait 10000

0000: NOP

while true
wait 0

if
0B4C:  samp is_dialog_active -1 // -1 any
then
    0AC8: [email protected] = allocate_memory_size 260
    0BD8: samp get_dialog_caption [email protected]
    if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "SERVER: Commands"
    then
        0B49: samp set_current_dialog_list_item 5
        0B47: samp close_current_dialog_with_button 1
    end
end
           
end
No, look at this clip
I want like this.
 
Top