[Sikuli-driver] [Question #689094]: how to click a button along with ctrl and shift keys in autoit and java
New question #689094 on Sikuli: https://answers.launchpad.net/sikuli/+question/689094 hi , I want to click a button with unique id as :"[CLASS:TButton; INSTANCE:1]". But it should be clicked using control and shift keys. Am trying to do it as below: // autoitObj.controlFocus("Modify Order", "", "[CLASS:TButton; INSTANCE:1]"); // autoitObj.autoItSetOption(autoitObj.OPT_SEND_KEY_DOWN_DELAY, "50"); // autoitObj.send("{SHIFTDOWN}{CTRLDOWN}",false); autoitObj.send("{+}{^}",false); autoitObj.controlClick("Modify Order", "", "[CLASS:TButton; INSTANCE:1]"); autoitObj.send("{SHIFTUP}{CTRLUP}",false); // autoitObj.controlClick("Modify Order", "", "[CLASS:TButton; INSTANCE:1]"); I tried with controlSend option too. Also It cliks the button but without control and shift keys. Can someone help, as i need this urgently. Am using autoit, java, and sikuli. Regards, Harpreet -- 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 #689093]: whether it can make runnable jar without other setting
New question #689093 on Sikuli: https://answers.launchpad.net/sikuli/+question/689093 Now, I have read the following page. https://answers.launchpad.net/sikuli/+question/685465 https://answers.launchpad.net/sikuli/+faq/2947 for 2.0.2 whether it is possible to make one runable jar or file including the custom script, without install jython or sikuli or java it can use on another PC directly? as current understand, it can run from the command line, java -jar sikulixapi-2.0.3.jar -r custome.jar #custome.jar is created from sikulixIDE, export as jar. BTW, for SikulixIDE to export script as jar, it will display "not set", but jar is created already, what mean "not set" thanks -- 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 1865423] Re: Bath env paths are not considering in Sikuli IDE
I am launching SikuliX using below bath file and after launching i am import modules from "lib_path" directory @echo off setlocal ENABLEDELAYEDEXPANSION set mypath=%cd% set WSPath=%mypath% set lib_path=%mypath% set extension_path=%mypath% call set WSPath=%%WSPath:\SikuliX=% %%% call set lib_path=%%lib_path:\SikuliX=% %\SikuliX\Lib%% call set extension_path=%%extension_path:\SikuliX=% %\SikuliX\Extensions%% SET PATH=%lib_path%;%extension_path%;%PATH% java -jar %mypath%\sikulix.jar -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1865423 Title: Bath env paths are not considering in Sikuli IDE Status in Sikuli: New Bug description: i have set below path and try to import modules from below path not working SET PATH=%c:\test_path%;%PATH% Note: SikuliIDE 1.1.3 is working but latest releases its not working To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1865423/+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 #688961]: about onChange() function
Question #688961 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688961 larryli posted a new comment: thanks for your answer. In my side, I try to save each capture and then to check whether there is big change or not. I try to use the following new_image.saveInto(capture_fld) there is the following error, but in the code, I find saveInto is public in ScreenImage class, and capture also return ScreenImage, whether 2.0.2 version does not support it? [error] AttributeError ( 'org.sikuli.script.ScreenImage' object has no attribute -- 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 #689076]: Logical looping for speed
Question #689076 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689076 Eric G posted a new comment: I also have another problem where I am start sikuli from cmd administrator but the hotkeys still don't register over an application. I have to click out of the application for sikuli to respond to hotkeys like shift alt c. -- 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 #689061]: sikuli Connectiong to MSSQL
Question #689061 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689061 Status: Answered => Open Sam Wang is still having a problem: Hi RaiMan, Thanks. I look forward to the 2.0.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 #689076]: Logical looping for speed
Question #689076 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689076 Eric G posted a new comment: So with findAny I have ##stuff regTest=Region(0,0,1200,50) images = ["img1.png","img2.png","img3.png"] while 1: matches = regTest.findAny(images) if match in matches: while exists("Actionbutton.png"): click(match.getIndex()) Am I using match.getIndex() correctly? I only need to click the first instance that matched -- 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 #689084]: My code is not calculating sales discount.
Question #689084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689084 Status: Answered => Open chukwuka ihemaguba is still having a problem: Yes, I saw those, and corrected them. Still it is not calculating the discounts -- 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 #689084]: My code is not calculating sales discount.
Question #689084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689084 Status: Open => Answered Manfred Hampl proposed the following answer: 1. I do not see any relationship to Sikuli, but only Python. You should start with books that teach how to do Python programming. 2. Learn how to debug programs with print statements at key locations. 3. If discount is not an integer, but a float, then you should initialize it with 0.0 instead of 0 (the same for other variables). 4. Again you have typo errors: quantity_purchased vs. qunatity_purchased 5. calculate_fullprice() does not return a value. -- 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 #689083]: Openning CMD via sikulix and doing some operation
Question #689083 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689083 Manfred Hampl proposed the following answer: see the manual e.g. https://sikulix-2014.readthedocs.io/en/latest/interaction.html#starting-and-stopping-other-applications-and-bring-them-to-front https://sikulix-2014.readthedocs.io/en/latest/appclass.html -- 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 #689084]: My code is not calculating sales discount.
New question #689084 on Sikuli: https://answers.launchpad.net/sikuli/+question/689084 Hello everyone, I am having problems getting my code to calculate sales discount. I have modules that I imported; one of them is the sales price. I wonder if it has a direct effect on why the program is not calculating the sales discounts. At the end of everything, it gives me $0.00, for the sub-total; $0.00 for the total discount, and $0.00 for the final price. Please take a look at it for me. The two imported modules are listed below, then the main Python code follows. Thanks # Project 4 # Chuka Ihemaguba # The "RETAIL_PRICE" module RETAIL_PRICE = 99 # Project 4 # Chuka Ihemaguba # Welcome Shoppers print("Welcome Shoppers!") print("Below are the discounts on the product based on how many you buy.") print("--\n") print("Quantity of 100 or more items: 40% discount") print("Quantity of 50-99 items: 30% discount") print("Quantity of 20-49 items: 20% discount") print("Quantity of 10-19 items: 10% discount") print("Quantity of less than 10 items: No discount\n\n\n") # Project 4 # Chuka Ihemaguba # 3/1/20 # This program requests the number of packages bought. # Then it calculates the discount, based on the stipulations. # And then the program displays the discount amount, and # the total amount after the discount # Import statement import R_Price, Welcome_shoppers # Declaration statement quantity_purchased = 0 discount = 0 sub_total = 0 total_discount = 0 total = 0 # Define the "main" function def main(): # Call the sub-functions quantity_purchased = Input_packages() discount = determine_discount() sub_total = calculate_fullprice(R_Price, quantity_purchased) total_discount = calculate_discount(sub_total, discount) total = final_price(sub_total, discount) Print_SDT() # Define the "Input_packages" function def Input_packages(): # Get the quantity of packages from user qunatity_purchased = int(input('Quantity purchased: ')) return qunatity_purchased # Define the "determine_discount" function def determine_discount(): if quantity_purchased < 10: discount = 0# No discount elif 10 <= quantity_purchased and qunatity_purchased < 20: discount = 0.1# 10% off elif 20 <= quantity_purchased and qunatity_purchased < 50: discount = 0.2# 20% off elif 50 <= quantity_purchased and qunatity_purchased < 100: discount = 0.3# 30% off else: discount = 0.4# 40% off return discount # Define the "calculate_fullprice" function def calculate_fullprice(R_Price, quantity_purchased): sub_total = R_Price.RETAIL_PRICE * quantity_purchased # Define the "calculate_discount" function def calculate_discount(num1, num2): total_discount = sub_total * discount return total_discount # Define the "total" function def final_price(num_A, num_B): total = sub_total - discount return total # Define the "Print_SDT" function def Print_SDT(): print('Subtotal: ', '$', format(sub_total, ',.2f')) print('Discount: ', '$', format(total_discount, ',.2f')) print('Total: ', '$', format(total, ',.2f')) main() -- 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 #689083]: Openning CMD via sikulix and doing some operation
Question #689083 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689083 Pritam Biswas posted a new comment: Okk, what's the way if i just want to open CMD via sikulix? -- 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 #689076]: Logical looping for speed
Question #689076 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689076 Status: Open => Answered RaiMan proposed the following answer: you should have a look at the feature findAny(), which detaches the find op for each given image to a different thread. hence the searches are done in parallel internally. constructs like yours are done sequentially one after the other. I guess that reg_range is already as small as possible. https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.findAny -- 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 #689083]: Openning CMD via sikulix and doing some operation
Question #689083 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689083 Status: Open => Answered RaiMan proposed the following answer: have a look at the appropriate Python features available to access the filesystem. ... a visual approach like you asked for is surely not appropriate ;-) and has a high risk for useless time spending and frustration. -- 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 1865423] Re: Bath env paths are not considering in Sikuli IDE
I do not understand, how this should have worked in 1.1.3. Do you have an example? this looks really odd: %c:\test_path% -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1865423 Title: Bath env paths are not considering in Sikuli IDE Status in Sikuli: New Bug description: i have set below path and try to import modules from below path not working SET PATH=%c:\test_path%;%PATH% Note: SikuliIDE 1.1.3 is working but latest releases its not working To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1865423/+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
[Sikuli-driver] [Question #689083]: Openning CMD via sikulix and doing some operation
New question #689083 on Sikuli: https://answers.launchpad.net/sikuli/+question/689083 Hi, I want to open CMD and want to perform some operation like typing some keyword and traversing through directory. What's the syntax for this? Version- SikuliXVer2.1.0-SNAPSHOT java- jdk 1.8 Regards, Pritam -- 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 #689061]: sikuli Connectiong to MSSQL
Question #689061 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689061 Status: Open => Answered RaiMan proposed the following answer: --- You mean I should use sikuliapi to do the connect-to mssql task? no, not really as I think you understood. This was only for the "another workaround" that allows to run your script from commandline until 2.0.4 is out. but you might use the sikulixide.jar as well. -- 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 #688961]: about onChange() function
Question #688961 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688961 RaiMan proposed the following answer: Sorry, no idea. I tried something with your setup (always compare to a start image) and it worked as expected. You have to find a way, to track it down. -- 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 #689074]: 2.1.0 build 567 IDE fails to load files with spaces in name
Question #689074 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689074 Status: Open => Answered RaiMan proposed the following answer: thanks for finding. should be fixed with build #568 test appreciated -- 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 #688888]: Lenovo ThinkPad: Win 10 Enterprise: Click not working with Java 8 version 211 and 241
Question #68 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/68 RaiMan requested more information: What about monitor setup? Any special settings (scaling, ...)? -- 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 #689020]: Checking shortcut keys for opening a tool window
Question #689020 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689020 Status: Open => Answered Manfred Hampl proposed the following answer: Are you sure that ALT still has to be pressed while typing "a"? Maybe you shoudl try keyDown(KeyModifier.ALT) type("m") keyUp(KeyModifier.ALT) type("a") wait(3) Eventuelly you need a small delay between "m" and "a" keyDown(KeyModifier.ALT) type("m") wait(0.5) type("a") keyUp(KeyModifier.ALT) We do not know what your program does and how that is implemented. You have to test a bit yourself. And - by the way - "still not working" does not provide any insight to us. What happens if you try? Does a wrong window open, or does it type the chararcters to a wrong window, or does absolutely nothing visible on screen, or ...? -- 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 #688888]: Lenovo ThinkPad: Win 10 Enterprise: Click not working with Java 8 version 211 and 241
Question #68 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/68 Ravina Ingole posted a new comment: Yes I have tried with Java 13 and SikuliX 2.0.2.Still it is showing us the same error as before. Please let us know if their is any other work around for this. -- 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 #689020]: Checking shortcut keys for opening a tool window
Question #689020 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689020 Status: Solved => Open Sreelekshmi is still having a problem: hover(AddChassis) keyDown(KeyModifier.ALT) type("ma") keyUp(KeyModifier.ALT) wait(3) assert search(AddChassisWindow),"AddChassisWindow is not found" still not working , not sure . I am using 1.1.4 version -- 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 #689020]: Checking shortcut keys for opening a tool window
Question #689020 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689020 Status: Answered => Solved Sreelekshmi confirmed that the question is solved: hover(AddChassis) keyDown(KeyModifier.ALT) type("ma") keyUp(KeyModifier.ALT) wait(3) assert search(AddChassisWindow),"AddChassisWindow is not found" still not working , not sure . I am using 1.1.4 version -- 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 #688961]: about onChange() function
Question #688961 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688961 larryli posted a new comment: thanks for your information. I try to do as thef ollowing: old_image = getScreen().capture(search_reg) finder = Finder(old_image) for x in range(0, 100): new_image = getScreen().capture(search_reg) start = time.time() changes = finder.findChanges(new_image) #print "elapsed:", time.time() - start for change in changes: print "**changed ",change, change.getW(),change.getH() changed = change.getW()*change.getH() wait(0.3) print("---We're on time %d" % (x)) as the log, it seems, always changed 18x13, but when there is big change in the region, it seems not detect. search region is R[811,385 19x14]@S(0) **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 0 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 1 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 2 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 3 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 4 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 5 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 6 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 7 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 8 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 9 **changed R[0,0 18x13]@S(0) 18 13 ---We're on time 10 **changed R[0,2 8x7]@S(0) 8 7 -- 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