CLEO Help Question

CLEO related
Status
Not open for further replies.

killme1st2

Member
Joined
May 25, 2013
Messages
15
Reaction score
0
then                             
                0AB1: @SAY 1 15@                     
                wait 1000
                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                
        end    


It is all working except it wont hit the down arrow.

It will say the message and it will hit the enter key.

Anyone know why it's not working?
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
just a guess - maybe it presses the 2 keys simultaneously and that makes the problem, or the delays are too low

maybe try something like:
[shcode=cpp]
0C72: set_virtual_key 40 down true //down arrow
wait 1000
0C72: set_virtual_key 40 down false
wait 1000
0C72: set_virtual_key 13 down true //enter
wait 1000
0C72: set_virtual_key 13 down false
wait 1000
[/shcode]
and if it works then change stuff step by step to meet your needs and at the same time observe which small change prevents the key from being pressed, so you'll see whether the problem is small delay or order of operations (or maybe some other reason)
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
in that case I'd use these instead:
http://ugbase.eu/Thread-How-to-use-0B56-Sampfuncs
 

killme1st2

Member
Joined
May 25, 2013
Messages
15
Reaction score
0
bladero said:
Can you explain what does script do exactly ?
It is supposed to go down once on a dialog, and then hit the enter key.

monday said:
in that case I'd use these instead:
http://ugbase.eu/Thread-How-to-use-0B56-Sampfuncs
After I read that thread, I still don't really know how to use this. Can you help me by giving me a example?


I've also tried this;
Code:
0BC9: samp send_dialog_response dialog 2@ button 1@ listitem 2@ input 2@  

- I used that because I thought it would have worked and given the dialog response, but for some reason it doesn't. Does 0BC9 not work for server dialogs? Or does it not work for Dialog Lists?
 
Status
Not open for further replies.
Top