Re: [Sikuli-driver] [Question #261614]: Clicking on submenu item changes menu
Question #261614 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261614 George Mathijssen confirmed that the question is solved: Thanks Eugene Maslov, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #261614]: Clicking on submenu item changes menu
Question #261614 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261614 Status: Answered = Solved George Mathijssen confirmed that the question is solved: Thank you for the suggestions. Both solutions (hover and clickOrtho) work for me, with the clickOrtho function feeling a bit smoother. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #261614]: Clicking on submenu item changes menu
Question #261614 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261614 Status: Open = Answered RaiMan proposed the following answer: just insert respective hover(calculatedPoint) and if you know the geometrics of your submenu, you might calculate the respective click points. So a search is only needed for the first click to open the submenu. If you use the IDE preview, you might set a target offset, so that after the click, the mouse is already at the right place to then use the hover afterwards. But maybe your problems already have gone, when you use: Settings.MoveMouseDelay = 0 which makes the mouse jump. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #261614]: Clicking on submenu item changes menu
Question #261614 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261614 Eugene Maslov proposed the following answer: To prevent menu disappearing, move the mouse right, then down. The function below can help. def clickOrtho(img): start=Env.getMouseLocation() end=find(img).getCenter() mouseMove(Location(end.x,start.y)) mouseMove(Location(end.x,end.y)) click(end) return end #usage: e.g. menu View-Zoom-Reset of Firefox click(menu_view.png) click(menu_zoom.png) clickOrtho(menu_reset.png) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #261614]: Clicking on submenu item changes menu
New question #261614 on Sikuli: https://answers.launchpad.net/sikuli/+question/261614 I am currently using Sikuli to test my Qt desktop application and I have some trouble clicking on sub-menu items. My application has a menu item which is a sub-menu with 2 items and I cannot get Sikuli to select the second sub-item. I am using the following steps: * click() on the main-menu * click() on the sub-menu * click() on the second item in the sub-menu I have noticed that when the mouse moves from the sub-menu to the sub-menu item, it takes the shortest path which is a straight diagonal line. This path brushes the menu item that is just below the sub-menu and thus the sub-menu disappears, which makes my test fail. Is there a way to let Sikuli move the mouse first horizontally into the sub-menu and then vertically down to the item? I have tried the diagonal path manually and I noticed that it works depending on the application and movement speed. Windows Explorer for example gives you some time to move, unlike my application which requires speedy mouse movements in this case. As an alternative I could use the alt-key method on the menu items, which I luckily implemented for all menu items. Or maybe I can change Settings.MoveMouseDelay when in menus to skip the movement simulation? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp