CLEO Help [CLEO] Don`t want press "down arrow key"

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Hi,
Why dont want press down in samp gui?


Look:

- 1. First need to press this -
http://i.imgur.com/z2SwxzQ.png

- 2. Two need to press this -​
http://i.imgur.com/guh49Ep.png

Two work fine , but first dont want press , maybe know why?

Code:
{$CLEO .cs}

thread 'SendFakePress'

:TESTCLEO_01
wait 0
if
0AB0: 74
then
0AF9: samp say_msg "/vartoti"
wait 1000
0AB1: @FAKE_KEYPRESS_GUI_DOWN 1 _OFFSET_KEY_ 0x1E {Enter}
wait 1000
0AB1: @FAKE_KEYPRESS_GUI_NR1 1 _OFFSET_KEY_ 0x1E {Enter}

end 
jump @TESTCLEO_01

:FAKE_KEYPRESS_GUI_NR1
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0B47: samp close_current_dialog_with_button 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0


:FAKE_KEYPRESS_GUI_DOWN
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0B49: samp set_current_dialog_list_item 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Those are game keys, use this

Code:
0C72: set_virtual_key 40 down true //down arrow
wait 10
0C72: set_virtual_key 13 down true //enter
wait 10
0C72: set_virtual_key 40 down false
0C72: set_virtual_key 13 down false
 
Status
Not open for further replies.
Top