Jump to content

mouse press release ??


Recommended Posts

Posted
13 minutes ago, Chris said:

thanks !

but 

I'm a little dizzy😱

 

public void generateBotMouseEvent(int id, // detailed explanation
              long time,           // detailed explanation
              int modifiers,       // detailed explanation
              int x,               // detailed explanation
              int y,               // detailed explanation
              int clickCount,       // detailed explanation
              boolean popupTrigger, //detailed explanation
              int button,           //detailed explanation
              boolean botInput)     //detailed explanation

Please explain👍
I am a rookie

Posted

Examples 
 

Quote

private void pressMouse() {
		getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_PRESSED,
				System.currentTimeMillis(), 0, getMouse().getPosition().x, getMouse().getPosition().y, 1, false,
				MouseEvent.BUTTON1, true);
	}
	
private void releaseMouse() {
		getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_RELEASED,
				System.currentTimeMillis(), 0, getMouse().getPosition().x, getMouse().getPosition().y, 1, false,
				MouseEvent.BUTTON1, true);
}

 

 

 

 

public void generateBotMouseEvent(int id, // MouseEvent.MOUSE_PRESSED or MouseEvent.MOUSE_RELEASED I think there maped to 1 and 0
              long time,           // The system time of when you want this click to happen.
              int modifiers,       // Set this to 0.
              int x,               //the x on a cartisian plane      (0,0) is top left
              int y,               // the y on a cartisian plane
              int clickCount,       // 1 is click once 2 is double ...
              boolean popupTrigger, //just make this false
              int button,           //MouseEvent.BUTTON1 ,  MouseEvent.BUTTON2  right/left
              boolean botInput)     //make this true

 

 

This a tip for all new to coding and want to see exaples of obscure code with bad docs.(I have said it like 30 times)

  1. goto github.com
  2. login
  3. type the string of the package you are using your case "org.osbot.rs07.input.mouse.MouseDestination;" put osbot after 
  4.  click Code its under Repositories  (https://github.com/search?q=org.osbot.rs07.input.mouse.MouseDestination&type=Code)
  5. Look at the code and try to make it work.
  6. If you cant find anything try searching other keywords or using something else or rethink logic

 

Posted
1 hour ago, Nbacon said:

Examples 
 

 

 

 


public void generateBotMouseEvent(int id, // MouseEvent.MOUSE_PRESSED or MouseEvent.MOUSE_RELEASED I think there maped to 1 and 0
              long time,           // The system time of when you want this click to happen.
              int modifiers,       // Set this to 0.
              int x,               //the x on a cartisian plane      (0,0) is top left
              int y,               // the y on a cartisian plane
              int clickCount,       // 1 is click once 2 is double ...
              boolean popupTrigger, //just make this false
              int button,           //MouseEvent.BUTTON1 ,  MouseEvent.BUTTON2  right/left
              boolean botInput)     //make this true

 

 

This a tip for all new to coding and want to see exaples of obscure code with bad docs.(I have said it like 30 times)

  1. goto github.com
  2. login
  3. type the string of the package you are using your case "org.osbot.rs07.input.mouse.MouseDestination;" put osbot after 
  4.  click Code its under Repositories  (https://github.com/search?q=org.osbot.rs07.input.mouse.MouseDestination&type=Code)
  5. Look at the code and try to make it work.
  6. If you cant find anything try searching other keywords or using something else or rethink logic

 

thanks thanks thanks thanks👍

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...