Rockstars said:
			
		
	
	
		
		
			
	
		
			
				Parazitas said:
			
		
	
	
		
		
			
	
		
			
				Rockstars said:
			
		
	
	
		
		
			
	
		
			
				Parazitas said:
			
		
	
	
	
	
	
		
		
		
		
	
	
The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?
		
 
		
	 
Code length is the same for all time?
		
 
		
	 
Yes.  It's just random characters everytime though, I want to be able to auto input them into the dialog without typing it out.
(always letters or numbers never symbols or anything)
		
 
		
	 
This is not request section , but i missed 5mins my life time for you...
[shcode=cpp]
{$CLEO .cs}
0000:
  
  
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 
alloc 2@ 32
format 2@ "Drug Production" //dialog title to detect
  
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 200
       alloc 0@ 512 //alloc
       0BD7: 0@ //get text
       0C17: 1@ = strlen 0@ //since text is static, get the text lenght
       1@ -= 11 //since the number you need is always 3-digit, substract 3 from 1@
       005A: 0@ += 1@ //add 1@ to the 0@ pointer, for example if you add 2 to 0@ text will start from "is is your code : last 11 numbers or words"
       0B4B: 0@ //set dialog editbox text, so currently 0@ contains last 11 numbers or words
       0B47: 1 //close dialog with button
       wait 200
       end
    end
    
end 
[/shcode]
I thank you good sir.   :motherofgod: