CLEO Help Send ENTER/ARROW KEYS

CLEO related
Status
Not open for further replies.

Mozz

Active member
Joined
Jan 9, 2014
Messages
35
Reaction score
0
Is it possible to send ENTER or ARROW KEYS with Cleo? (NOT IN CHAT!)

I want to make a Cleo which sends a command (eg. /buy), then 'presses' a couple times on DOWN ARROW KEY, then on ENTER KEY.

The first command opens a menu and I want to select like the 4th or 5th option inside it.

I'm new to Cleo, so I might need an example if it's possible.
Thanks in advance!
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
while true
wait 0
if 0AB0: 49 //Key
then
    repeat
    wait 100
    0AF9: samp say_msg "/buy"
    until 0B4C: samp is_dialog_active -1 
    0B49: samp set_current_dialog_list_item 4 // 4th option
    0B47: samp close_current_dialog_with_button 1 //Ok/Enter
end
end
 
Status
Not open for further replies.
Top