Page 1 of 1

UO.Ongump

Posted: 2006-11-05 05:22:28
by alf666
I've noticed that using this command like this (for example):

UO.Ongump('anygump','(2')

it keep memory of the command and reply to an other successive uo.ongump command (the second in the same script) with the same reply of the FIRST uo.ongump typed line. There's a way to unset the command after use it?
Thanx!

Posted: 2006-11-05 12:00:56
by Edred

Code: Select all

OnGump command - autochoice buttons/checks/text in gumps 

Variant1a (repeat exact choice in exact gump): 
   ,ongump repeat 

Variant1b (repeat exact choice in any gump): 
   ,ongump superrepeat 

Variant2 (general form): 
   ,ongump GUMP [CHOICE] 
GUMP: identifyes gump, variants: 
   <serial>|anyserial <gumpid>|anygump      example: anyserial 0x00112233 
   anygump 
   lastgump 
   lastpos 
   pos <x> <y> 
   withtext 'text_part_to_seek'    example: withtext 'Blacksmith' 
   withcommand 'command_part_to_seek'   example: withcommand 'tilepic 60 295 5181' 
CHOICE: identifyes choice you make pressing buttons. 
Consist of 3 parts: 
1) (serial of) button you press to close gump e.g. 'Ok' (default is first button happend) 
   <button_serial>           example: 315 
   (button_number            example: (2 
   [image_serial             example: [0x01 
   lastbutton 
2) (serials of) checks and radios enabled on moment of pressing 1) 
   checks <ID1> <ID2> ...    example: checks 315 316 0x0102 
   checks (num1 (num2 ...    example: checks (1 (3 (8 
   lastchecks 
   nochecks 
3) (texts) what entered in textentry(es) (the same amount as in gump) 
   entryes 'txt1' 'txt2' ... example: entryes 'macrocheck' 
   lastentryes 
   noentryes 
So CHOICE have syntax: 
   [1) [2)] [3)]] 
Examples: 
,ongump repeat 
,ongump any 0x00001234 (1 
,ongump withtext 'Blacksmith' 315 nochecks entryes '10' 
,ongump anygump [0x0123 checks (1 316 entryes '10' 

Posted: 2006-11-05 14:11:01
by alf666
Ok, i've already saw that, but i can't see an "unset" parameter for this..