From Stealth Client

Jump to: navigation, search


NumGumpTextEntry

function NumGumpTextEntry(GumpIndex, TextEntryID:Integer; Value:String):Boolean

It does not work as a trap for Gump, but only for processing has come Gump.

The principle of operation is the same as that of the Doc:Api/GumpAutoTextEntry, with the only difference that there is no exhaustive search of all Gampo in the list, and get over TextEntry only the Gump, the index is specified in the GumpIndex

If such TextEntry not found, then the function returns False.

Example:

{Krafterskogo piece of script. 
First, put a trap on target for Ingots on the floor, 
then trap the incoming Gump, to replace the value TextEntry, 
Gump then trap on the button 
and then use to call tinkertulzov Gump.}
  WaitTargetGround($ 1BF5); 
  a:= GetGumpsCount; 
  UseObject(FindType($ 1EB9, backpack));
  while a = GetGumpsCount do
    Wait(50);
  NumGumpTextEntry(GetGumpsCount-1, 513, '30 ');
  NumGumpButton(GetGumpsCount-1, 7956);