Jump to content

Widget interaction


Recommended Posts

Posted (edited)

Hey i'm having a problem to get the widget to interact when buying it wont use the right click to access the option 'Buy 10' unless i manually right click the object for it. It also has no problem interacting with the close option on widget 300,1,11

RS2Widget w4 = widgets.get(300,2,2);
	if (w4 != null){
	widgets.interact(300,2,2,"Buy 10");
	sleep (random(123,569));}
	if (inventory.isFull()){
	widgets.interact(300,1,11,"Close");	
	}

Widget debug on 300,2,2

	
		
			
				Enabled Media Type
			
				MediaType.MODEL
	
				Enabled Media Id
			
				-1
		
				Disabled Media Type
			
				MediaType.MODEL
		
	
				Disabled Media Id
			
				-1
		

				Item Id
			
				1540
	
				Item Amount
			
				35
				Type
			
				5

				Position
			
				(171, 69)
		
				Relative X
			
				171.0
				Relative Y
			
				69.0
		
		
			
				Width
			
				36
			
				Height
			
				32

				Sprite ID 1 (enabled)
			
				-1
		

				Sprite ID 2 (disabled)
			
				-1
		
				Actions
			
				[Value, Buy 1, Buy 5, Buy 10, null, null, null, null, null, Examine]
		
		
			
				Options
			
				null
		
		
			
				Message
			
				 
		
		
			
				Text Colour
			
				0
		
		
			
				Selected Action Name
			
				 
		
		
			
				Spell Name
			
				 
		
		
			
				Tooltip
			
				Ok
		
		
			
				Inv Sprite Padding X
			
				0
		
		
			
				Inv Sprite Padding Y
			
				0
		
		
			
				Scroll Max
			
				0
		

			
				Scroll X
			
				0
		
		
				Scroll Y
			
				0
		
		
			
				Action Type
			
				0
		
		
			
				Content Type
			
				0
					
				Alpha
			
				0
		
			
				Condition Type
			
				null
		
		
			
				Condition Compare Values
			
				null
		
			
				Dynamic Value Formulas
			
				null
		

				Get Hidden Until Mouse Hover
			
				false
		
				Sprites X
			
				null
		
		
			
				Sprites Y
			
				null
		
			
				Sprites
			
				null
		
			
				Text Draw Area Index
			
				-1

Edited by potatoer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...