May 18, 20232 yr Hello, I want to make the map bigger until the icon that symboling my player on map interface is visible so the point is even if widget is not visible on main screen osbot dedects it as visible. It works more like != null than isVisible() even if i use something like this: randomQuestWidget =Â Quests.Quest.Doric's_Quest if (randomQuestWidget != null && randomQuestWidget.isVisible()) { Â Â randomQuestWidget.hover(); } Â it hovers the mouse on invisible quest ->Â https://prnt.sc/ROEan6Kj0oZH how can i check if a widget actually isVisible or not?
May 18, 20232 yr 9 hours ago, Yusi said: Hello, I want to make the map bigger until the icon that symboling my player on map interface is visible so the point is even if widget is not visible on main screen osbot dedects it as visible. It works more like != null than isVisible() even if i use something like this: randomQuestWidget =Â Quests.Quest.Doric's_Quest if (randomQuestWidget != null && randomQuestWidget.isVisible()) { Â Â randomQuestWidget.hover(); } Â it hovers the mouse on invisible quest ->Â https://prnt.sc/ROEan6Kj0oZH how can i check if a widget actually isVisible or not? You check the Y coordinate to be in the actual visible rectangleÂ
May 18, 20232 yr Author 44 minutes ago, Khaleesi said: You check the Y coordinate to be in the actual visible rectangle  I have made this and its working properly thank you 🙂  if (ernestTheChickenQuest != null && ernestTheChickenQuest.isVisible() && ernestTheChickenQuest.getAbsY() > 254 && ernestTheChickenQuest.getAbsY() < 415) { log("koyashScript"); }
May 18, 20232 yr 26 minutes ago, Yusi said:  I have made this and its working properly thank you 🙂  if (ernestTheChickenQuest != null && ernestTheChickenQuest.isVisible() && ernestTheChickenQuest.getAbsY() > 254 && ernestTheChickenQuest.getAbsY() < 415) { log("koyashScript"); } Nice!
Create an account or sign in to comment