[Sikuli-driver] [Question #680728]: Is there any wait until available in Sikuli
New question #680728 on Sikuli: https://answers.launchpad.net/sikuli/+question/680728 HI Is there any wait until available in sikuli i have a screen on my desktop application when i click on a button loading image will be displayed. i need to wait unitl that loading image disappears. Is there any solution to wait until loading image gets disappear. Note : It will take long time to disappear Thanks in advance -- You received this question notification because your team Sikuli Drivers 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] [Bug 1828501] [NEW] switchApp()
Public bug reported: VS 1.1.3 Win10 64bit I can use the software as normal with what seems like all the methods, but as soon as I use switchApp() it fails to run. I have tried this tutorial: https://www.youtube.com/watch?v=xTTIikzxFfc I have the exact same code as him and mine will not work at all. I have tried a few google chrome screens A couple other games. This will not work at all. ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1828501 Title: switchApp() Status in Sikuli: New Bug description: VS 1.1.3 Win10 64bit I can use the software as normal with what seems like all the methods, but as soon as I use switchApp() it fails to run. I have tried this tutorial: https://www.youtube.com/watch?v=xTTIikzxFfc I have the exact same code as him and mine will not work at all. I have tried a few google chrome screens A couple other games. This will not work at all. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1828501/+subscriptions ___ 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 #680652]: how to use Region.onChange in pyton with jpype
Question #680652 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680652 Status: Answered => Open wu is still having a problem: hi RaiMan i do you told this but have some problem there is error class CallBack(ObserverCallBack):TypeError: __new__() takes 2 positional arguments but 4 were given and my code is class CallBack(ObserverCallBack): def changed(event): print ("change") someRegion.onChange(50, CallBack()) -- You received this question notification because your team Sikuli Drivers 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 #680702]: Import Question
Question #680702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680702 Status: Answered => Solved Mike Praeuner confirmed that the question is solved: on very first run I was told I needed jython, so I grabbed that file (+ ruby) and have not gotten any messages or seen the IDE since I did try to run via command line C:\Users\MikE\Desktop>java -jar sikulix.jar Exception in thread "main" org.sikuli.script.SikuliXception: fatal: Java arch must be 64 Bit (java 8 version 1.8 vm 25.211-b12 class 52.0 arch null) at org.sikuli.script.support.RunTime.terminate(RunTime.java:548) at org.sikuli.script.support.RunTime.get(RunTime.java:751) at org.sikuli.ide.SikulixIDE.main(SikulixIDE.java:59) IDE terminated: returned: 1 so I downloaded this: https://javadl.oracle.com/webapps/download/AutoDL?BundleId=238729_478a62b7d4e34b78b671c754eaaf38ab Which resolved the issue with v1.1.4 -- You received this question notification because your team Sikuli Drivers 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 #680702]: Import Question
Question #680702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680702 RaiMan proposed the following answer: --- 1.1.4 the jruby and jython jars are moved to SikuliX extension folder. -- import with only import testpad2 only testpad2.launchNox() works when using from testpad2 import * all global names (defined at the indent level null) are now known in the current context so launchNox() works ... and testpad2.launchNox() of course too with import * one must be careful and have a naming convention, since imported names overwrite existing names withou notice You received this question notification because your team Sikuli Drivers 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 #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework
Question #680679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680679 RaiMan posted a new comment: Since Python/Jython is an interpreting language, you can create strings of valid code at runtime and eval: let the python expression be evaluated and get the result exec: just run the given string as python code in the current context (global variables) all the best -- You received this question notification because your team Sikuli Drivers 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 #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework
Question #680679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680679 Melvin Raymond posted a new comment: By the way, just for those who might need to know. I simply put region = eval(region) and app region = eval(app region) into the function below to covert the arguments into a usable form that setROI could use: def column_options_context_menu (self, selected_view, dataset, column, region, overflow, appregion): region = eval(region) # converts Region object so it can be used in setROI(region) due to RFW appregion = eval(appregion) # converts Region object back to usable form for setROI(appregion) -- You received this question notification because your team Sikuli Drivers 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 #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework
Question #680679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680679 Status: Answered => Solved Melvin Raymond confirmed that the question is solved: Raiman! Excellent! That worked. You make that look so easy and it was. This saved my bacon once again. Thank you Raiman! Now I need to look into what "eval" actually is and how it works. Learned something really good this morning. Problem solved by Raiman. -- You received this question notification because your team Sikuli Drivers 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 #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework
Question #680679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680679 Status: Open => Answered RaiMan proposed the following answer: In a function where you get a string instead of an objec from RFWt, simply say region = eval(regionString) Take care, that the string contains something, that is valid Python! -- You received this question notification because your team Sikuli Drivers 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 #680702]: Import Question
Question #680702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680702 Mike Praeuner posted a new comment: I tried to setup 1.1.4 - but having issues (win10) will try again later when I have more time to troubleshoot (1.1.3 is installed) when I launch (1.1.4) sikulix.jar it deletes the jruby and jython files but never launches (Java8u211) https://raiman.github.io/SikuliX1/downloads.html Everything is working as expected now that I have the header on the correct script :P I did notive that this: testpad2.launchNox() and this launchNox() both work - I am assuming the correct syntax is testpad2.launchNox(), but since the other works as well does that mean you can redefine a function on a script that loads the original function from another script (probably all sorts of issues with that - but just curious) -- You received this question notification because your team Sikuli Drivers 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 #680717]: Sikuli underscore (_)
Question #680717 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680717 RaiMan proposed the following answer: try with paste() -- You received this question notification because your team Sikuli Drivers 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 #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework
Question #680679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680679 Melvin Raymond posted a new comment: I was doing a little thinking this morning while riding the bike to work. It doesn't solve the problem with passing the correct object from Robot Framework to Sikuli Jython functions but could possibly be a workaround just in case: I could call an external function that takes the "region" object that has been sent to my Jython function. That external function could parse out the "X", "Y", "W", "H" , and then turn them inter Integers. Then those integers could be stuffed into a tuple object. The tuple object could be returned back to me. Then I could reference the tuple items in the setROI(x, y, w, h) to set my Region of Interest. I'm just familiarizing myself with tuples as of yesterday, so perhaps this could be a workaround that once it's working could be used for any Region(x, y, w, h) sent to the Jython function from Robot Framework. I might be wrong about this but it was something I was pondering. Just FYI: The reason for sending objects to the Jython functions is to keep all images outside of the functions so if something changes I'll be able to fix the object in just 1 place as opposed to digging through all my Jython functions to fix the object. -- You received this question notification because your team Sikuli Drivers 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 #680717]: Sikuli underscore (_)
Question #680717 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680717 Thuraisingam posted a new comment: i can't use 1.1.4, currently i use 1.1.3, do you have a solution please -- You received this question notification because your team Sikuli Drivers 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 #680717]: Sikuli underscore (_)
Question #680717 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680717 Status: Open => Answered RaiMan proposed the following answer: try with version 1.1.4 -- You received this question notification because your team Sikuli Drivers 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 #680717]: Sikuli underscore (_)
New question #680717 on Sikuli: https://answers.launchpad.net/sikuli/+question/680717 Hi, i want to put an underscore type but don't work, nothing is written i use : type("Report.png", "_") -- You received this question notification because your team Sikuli Drivers 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 #204013]: Clicking UAC dialogs
Question #204013 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204013 Bharatendu SOUMIL proposed the following answer: Solid workaround to get the UAC on the foreground, which would allow taking its screenshot: 1. Run gpedit.msc 2. Under Computer Configuration\Windows Settings\Security Settings\Local Policies\SecurityOptions, change "User Account Control": Switch to the secure desktop when prompting for elevation" to disabled. Credit: https://stackoverflow.com/questions/42636098/sikulix-jython-uac- automation -- You received this question notification because your team Sikuli Drivers 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 #680652]: how to use Region.onChange in pyton with jpype
Question #680652 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680652 Status: Open => Answered RaiMan proposed the following answer: Nice try ;-) IMHO: class CallBack(ObserverCallBack): def changed(event): # this is what you have to overwrite print ("in change handler") someRegion.onChange(50, CallBack()) -- You received this question notification because your team Sikuli Drivers 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 #678321]: Serious extended delay --- try with 1.1.4 from a Terminal
Question #678321 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678321 Status: Open => Answered RaiMan proposed the following answer: You seem to have your sikulix.jar in some access-restricted area. Have it somewhere in your home folder. -- You received this question notification because your team Sikuli Drivers 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 #680702]: Import Question
Question #680702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680702 Status: Open => Answered RaiMan proposed the following answer: from sikuli import * need not be in main script (done internally automatically) but MUST be in EVERY imported script BTW: with 1.1.4+ import testpad2 reload(testpad2) from testpad2 import * can be only: from testpad2 import * (the reload is done internally automatically) -- You received this question notification because your team Sikuli Drivers 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