CLEO Help Auto input number in dialog?

CLEO related
Status
Not open for further replies.

BigMan

Member
Joined
Nov 30, 2017
Messages
17
Reaction score
0
Hello Ugbase, is it possible to make something like auto input number in dialog? Every time when I start a job and stand inside checkpoint I must enter this number, and every time is diferent number.

Here is a picture: https://imgur.com/a/Y5mzH

@springfield
 

BigMan

Member
Joined
Nov 30, 2017
Messages
17
Reaction score
0
springfield said:
There are some examples /scripts for something similiar here -> http://ugbase.eu/Thread-Get-Dialog-Numbers

Yes, but  I need to write that letter T every time it changes
I using 

{$CLEO .cs}

0000:
while not samp.Available()
    wait 100
end
alloc 2@ 32
format 2@ "Ar Jūs Žmogus?" //dialog title to detect
   
while true
wait 0 
0AC8: 0@ = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
0AB1: @GETCHATENTRYTEXT 1 id 99 to 0@ // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO 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@
        0B4B: samp set_current_dialog_editbox_text "k"
        0B47: samp close_current_dialog_with_button 1
        end
    end 
//////////////////////////////////////////////////////////////////////
IF
0C29: 4@ = stristr string1 0@ string2 "Testas neįvykdytas" 
    THEN
        wait 1500
        0AF9: samp say_msg "Nebemetyk arbotu"
        wait 500
    END    
    0AC9: free_allocated_memory 0@ // FREE THE MEMORY
END


:getChatEntryText
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: 1 1@
But is bad because is typing "k" [size=x-large]And I need to write an appropriate letter every time sorry for bad english[/size]


http://prntscr.com/hhef1e
 

opce

Active member
Joined
Dec 11, 2014
Messages
61
Reaction score
0
Klausk, Parazito jis padėtu padėčiau aš turėjau šita cleo kažkur, kad auto atsako į šitą shit bet be PC.
 
Status
Not open for further replies.
Top