mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
Merge pull request #209 from Parabot/bugfix/screenshot-fix
[BUGFIX] Removed JFrame from screenshot
This commit is contained in:
@@ -160,7 +160,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
case "Create screenshot":
|
case "Create screenshot":
|
||||||
try {
|
try {
|
||||||
Robot robot = new Robot();
|
Robot robot = new Robot();
|
||||||
Rectangle parabotScreen = new Rectangle((int) getLocation().getX(), (int) getLocation().getY(), getWidth(), getHeight());
|
Rectangle parabotScreen = new Rectangle((int) getLocation().getX(), (int) getLocation().getY() + (menuBar.getHeight() + features.getHeight()), getWidth(), getHeight());
|
||||||
BufferedImage image = robot.createScreenCapture(parabotScreen);
|
BufferedImage image = robot.createScreenCapture(parabotScreen);
|
||||||
String randString = StringUtils.randomString(10);
|
String randString = StringUtils.randomString(10);
|
||||||
boolean search = true;
|
boolean search = true;
|
||||||
@@ -363,4 +363,4 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
public JMenuItem getNotifications() {
|
public JMenuItem getNotifications() {
|
||||||
return notifications;
|
return notifications;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user