mirror of
https://github.com/2006-Scape/Parabot-Randoms.git
synced 2026-07-07 00:38:28 +00:00
Merge branch 'development' of github.com:Parabot/Randoms into feature/anti-bot-detector
# Conflicts: # src/main/java/org/parabot/randoms/Core.java
This commit is contained in:
@@ -21,6 +21,7 @@ public class MouseOnScreen implements Random {
|
||||
public void execute() {
|
||||
int x = org.parabot.environment.api.utils.Random.between(100, Context.getInstance().getApplet().getWidth());
|
||||
int y = org.parabot.environment.api.utils.Random.between(100, Context.getInstance().getApplet().getHeight());
|
||||
|
||||
Mouse.getInstance().moveMouse(x, y);
|
||||
}
|
||||
|
||||
@@ -39,7 +40,7 @@ public class MouseOnScreen implements Random {
|
||||
return RandomType.SCRIPT;
|
||||
}
|
||||
|
||||
private boolean onScreen(){
|
||||
private boolean onScreen() {
|
||||
Point loc = Mouse.getInstance().getPoint();
|
||||
return Context.getInstance().getApplet().contains(loc);
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ public class QuestionSolver implements Random {
|
||||
} catch (MalformedURLException | UnsupportedEncodingException | ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user