Normally set dialog list item don't work on your server , maybe server is protected, but is more different ways to do it , so i found and finished, Good luck to use.
This don't work on your server.
[shcode=cpp]
0AB1: @FAKE_KEYPRESS_GUI_SELECT 1
:FAKE_KEYPRESS_GUI_SELECT
1@ = 0xB73458
005A: 1@ += 0@ // (int)
0B49: samp set_current_dialog_list_item 1
0AB2: ret 0
[/shcode]
When i found other method then working.
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
alloc 2@ 32
format 2@ "Selecteaza destinatia:" //dialog title to detect Romania language
while true
wait 0
if
0B4C: samp is_dialog_active -1
then
alloc 3@ 256
0BD8: samp get_dialog_caption 3@
if 0C14: strcmp string1 2@ string2 3@ //comparing
then
free 3@
wait 105
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x28 {Down arrow}
wait 10
0AB1: @FAKE_KEYPRESS_GUI_ClOSE 1 _OFFSET_KEY_ 0x1E {Enter}
end
end
wait 500
END
/////////////////////// Snipppet ///////////////////////
/////////// Snippet for Press key Enter
:FAKE_KEYPRESS_GUI_CLOSE
1@ = 0xB73458
005A: 1@ += 0@ // (int)
0B47: samp close_current_dialog_with_button 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0
/////////// Snippet for Press key Down
:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0
[/shcode]