Jump to content

mouse press release ??


dayong143333333

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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👍

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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