[Sikuli-driver] [Question #373612]: Jar File searches in first folder of ImagePath only
New question #373612 on Sikuli: https://answers.launchpad.net/sikuli/+question/373612 Hello, i have a problem with jar built. It looks for images only in one (first added) folder and ignores others folder in ImagePath. I print out the ImagePath and all added folders are normally shown. But if finding in the first folder fails, the script stopps. I have already tried all variants but I still cannot find a solution. Please, help me. I add this way: ImagePath.add("launcher.Launcher/images/general"); ImagePath.add("launcher.Launcher/images/general/registration"); ImagePath.add("launcher.Launcher/images/general/server"); ImagePath.add("launcher.Launcher/images/general/buttons"); [error] Image: could not be loaded: jar:file:/D:/workspaces/default/firmname/target/project-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/images/general/registration/ok.png [error] Image: Image not valid, but TextSearch is switched off! FindFailed: Region: doFind: Image not loadable: ok Line 2535, in file Region.java The image "ok" is in the folder "buttons". If i run this in eclipse, it works fine. How could I solve that? Tahnks in advance, Den -- 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 1190150] Re: [1.0.1 ok] [request] IDE: should have possibility to see location of file
hello in the same cas of this request and context , when click on insert an image , in window 7 (64) bits , it is impossible to select on the window IDE, see the thumbnail , it is a little penible . more if we use the explorer to navigate to the folder of images to see the image and pick up name of it , sikuli is crashing -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1190150 Title: [1.0.1 ok] [request] IDE: should have possibility to see location of file Status in Sikuli: Fix Committed Bug description: --- fixed with 1.0.1: window title shows full path Found out problem when using same name for Sikuli file but both are on separate folders. When Sikuli restarts it opens previously opened files automatically. Problem is that you cannot know where from the file was loaded if you don't remember it or check it separately. Example of locations: 1. C:\FirstFolder\SikuliTest 2. C:\SecondFolder\SikuliTest Request is to add location of file to title bar or some other place as it helps to keep track of place where file is saved or loaded. Sikuli version: Sikuli 1.0.0 32bit Operating system: Windows 7 64bit + SP1 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1190150/+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 #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: ok an thanks for all , i sent it in a littelte time -- 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 #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: je voudrais apprendre a utiliser les events du style OnAppear ainsi que les autres et gerer les parametrers dedans , pensant que le temps de reponse de ce genre de chose permet d ' etre plus rapide que le exists . mais je n' arrive pas a faire fonctionner ca : def myHandler () : if QueteValideeReg.exists(1413219985088.png): wait(1) QueteValideeReg.click(1413219985088.png) if exists(Pattern(1413716368262.png).similar(0.92)): click(Pattern(1413716368262.png).similar(0.92)) if PrincipaleReg.exists(1413716480430.png): # instance PrincipaleReg.click(1413716513801.png) nb_quetes_tours_faites += 1 print(nb_quetes_tours_faites) continue nb_quetes_tours_faites = 0 while nb_quetes_tours_faites != 200 : QueteValideeReg.onAppear(1413219985088-2.png, myHandler) observe(FOREVER, background = True) -- 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 #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: ok thanx for this explanations RailMAn. i 'm going to test , i think the 2 things are usefull in my code so thanx again a lot ^^. i ' ve a little probleme with : type (NUM0) and all numbers of numpad , perhaps in this version it changes ? sometimes does not do the job on the screen , but in the IDE , it says that il does , i dont understand why . letters is fully functionnal , problems only with numpad numbers . -- 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 #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: i think your code is godd and working but , i ve already the same probleme , in my code , it takes too much time to do the job . i post here the entire code i ' ve done to optimize it and have a good result . actually no errors but not working as it should . voili ^^ #Settings.DelayAfterDrag = 0.01 #Settings.DelayBeforeDrop = 0.01 Settings.MoveMouseDelay = 0.01 #Settings.ObserveScanRate = 0.1 #Settings.WaitScanRate = 0.05 #setThrowException(True) def myHandler (event) : #if QueteValideeReg.exists(1413219985088.png): nb_quetes_tours_faites += 1 wait(1) QueteValideeReg.click() # clicks what the exists before found if exists(Pattern(1413716368262.png).similar(0.92)): click() # clicks what the exists before found if PrincipaleReg.exists(1413716480430.png): # instance PrincipaleReg.click(1413716513801.png) event.stopObserver() # we have to stop observing, since it is started newly in the outer loop AsnaDetectReg =Region(1395,242,492,689) PrincipaleReg = Region(264,246,1038,661) QueteValideeReg = Region(704,582,518,292) QueteAPrendreReg = Region(1252,261,289,306) QueteTourAPrendreReg = Region(619,603,341,114) RegionAIncrement = Region(1059,847,153,102) RegionSkills = Region(693,866,606,152) ### # test de quetes ### #click(Region(1282,326,124,44)) # on declenche la quete #wait(1) # ### # test de quetes ### nb_quete_a_faire = 100 # nombre de quetes totales de 1 a 200 nb_quetes_tours_faites = 0 activer_grande_boucle = 1 # 1 pour activer la boucle generale , autre pour arreter et tester des quetes separées while nb_quetes_tours_faites != nb_quete_a_faire and activer_grande_boucle == 1 : if QueteAPrendreReg.exists(Pattern(1413220289146.png).similar(0.40)): try : QueteAPrendreReg.click(Pattern(1413220289146.png).similar(0.40)) except FindFailed : pass while not QueteTourAPrendreReg.exists(1413220465870.png): wait(0.5) #on attend de prendre une nouvelle quete if QueteTourAPrendreReg.exists(1413220465870.png): QueteTourAPrendreReg.click(1413220465870.png) # on prend la nouvelle quete wait(0.5) if QueteTourAPrendreReg.exists(1414411177236.png) : QueteTourAPrendreReg.click(1414411177236.png) else : click(Region(1282,326,124,44)) # on declenche la quete wait(1) ## # Quetes SANS delais d' attente ## if AsnaDetectReg.exists(1413716914077.png) : # 1ere quete if PrincipaleReg.exists (1413819051767.png) : # raid solo RaidReg = Region(283,252,1007,612) lettre = while lettre != r and lettre != m : # on cree une boucle pour forcer a taper les bonnes lettres et sortir de la boucle . lettre = input(Tapez 'r' pour raid , 'm' pour manuel : ) if lettre == r : # si l' utilisateur a tapé R , on lance le raid . RaidReg.click(1414165702675.png) mini_raid_reg = Region(463,378,631,461) mini_raid_reg.click(Pattern(1414166762775.png).targetOffset(-70,-22))# passes partout decoché ( cochés par defaut ) . wait(0.5) mini_raid_reg.click(1414166856506.png)# debut de raid wait(305) mini_raid_reg.click(1414167189873.png) # fin de raid elif lettre == m : RaidReg.click(1413819186263.png) if RaidReg.exists(1413819319813.png) : # si on a plus de vigueur on peut y aller les yeux fermés RaidReg.click(1413819385296.png) wait(2) # passage en combat ou lancer le combat , MODE MANUEL FORCE ou PAS . if RegionAIncrement.exists(Pattern(1410792368702-1.png).similar(0.61)) : print( on continue et on passe a l ' attaque ) while
Re: [Sikuli-driver] [Question #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: hello RailMan , i use sikuli V 1.1.0 Beta 4 , coding with pyton language . -- 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 #255984]: handler
Question #255984 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255984 den posted a new comment: hi , i had not given the entire code because it is very big , and the big part have no influence on this probleme . i ' ve already initialize before the while loop the $ : nb_quetes_tours_faites = 0 my probleme is to create and have a handler capably to do the job where it isn ' t in comeentary on ths code i ' ve given . so i would like a handler or create mine but with help to do this : if QueteValideeReg.exists(1413219985088.png): wait(1) QueteValideeReg.click(1413219985088.png) if exists(Pattern(1413716368262.png).similar(0.92)): click(Pattern(1413716368262.png).similar(0.92)) if PrincipaleReg.exists(1413716480430.png): # instance PrincipaleReg.click(1413716513801.png) nb_quetes_tours_faites += 1 print(nb_quetes_tours_faites) continue the beginning code i ve given was juste for help and comprehension . -- 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 #255984]: handler
New question #255984 on Sikuli: https://answers.launchpad.net/sikuli/+question/255984 hello alll , i am fench so ... i am new user of sikuli , and i just try to learn jython . i read the faq a lot of times but i dont understand very wel , the aplication and how tu use an appear event for example , and particulary the parameter . i try to do a lot of thing in my code but i dont find anything working :( i would like to automatise in a loop , an on appear event here the code for trying to help me ^^ : while nb_quetes_tours_faites != 200 : #QueteValideeReg.onAppear(1413219985088-2.png, myHandler) #observe(FOREVER, background = True) if QueteValideeReg.exists(1413219985088.png): wait(1) QueteValideeReg.click(1413219985088.png) if exists(Pattern(1413716368262.png).similar(0.92)): click(Pattern(1413716368262.png).similar(0.92)) if PrincipaleReg.exists(1413716480430.png): # instance PrincipaleReg.click(1413716513801.png) nb_quetes_tours_faites += 1 print(nb_quetes_tours_faites) continue i know that is a simple thing to do for an experiment user , but it is not my case XD i have no ideea of how to make the handler , i ' ve try a lot , 3 weeks and i ' m so busy with this ... jyton put an eception if i put the continue in my handler. in the doc the handler part is very poor ( or i have understand nothing ) all help appreciated for solving my probleme . thx -- 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] [Bug 1354703] [NEW] sikuli crash when rename identically 2 .png
Public bug reported: hello , on windows 7 64 bits OS , with latest version . when i am copying a .png and paste it in IDE , we rename the two . png with the same name , this create a big crash , IDE don t want to save anything and we need to reboot PC . sorry for my english ^^ i hope you understand whatt i try to tell you ^^ s ** 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/1354703 Title: sikuli crash when rename identically 2 .png Status in Sikuli: New Bug description: hello , on windows 7 64 bits OS , with latest version . when i am copying a .png and paste it in IDE , we rename the two . png with the same name , this create a big crash , IDE don t want to save anything and we need to reboot PC . sorry for my english ^^ i hope you understand whatt i try to tell you ^^ s To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1354703/+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] [Bug 1354706] [NEW] OCR grey .png
Public bug reported: hello , i ' m using windows 7 64 bits ns latest version of sikuli , sikuli don ' t recognize colors . example : we ask it to clic on a button , when this is done the button become grey , and sikuli want to clic it constantly and finish to crash or , it is impossible to move the mouse ^^ it is permanent with all differents buttons . i ' ve tested on 20 differents buttons . ** 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/1354706 Title: OCR grey .png Status in Sikuli: New Bug description: hello , i ' m using windows 7 64 bits ns latest version of sikuli , sikuli don ' t recognize colors . example : we ask it to clic on a button , when this is done the button become grey , and sikuli want to clic it constantly and finish to crash or , it is impossible to move the mouse ^^ it is permanent with all differents buttons . i ' ve tested on 20 differents buttons . To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1354706/+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 #144486]: How to: Running Sikuli on computer A. Sikuli connects through VNC to control computer B
Question #144486 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/144486 Lingling Den posted a new comment: Could do you share up your solution? -- 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