Re: [Sikuli-driver] [Question #271912]: Images lost in script
Question #271912 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271912 Ben posted a new comment: thank you very much!!! -- 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 #271943]: Simple trading bot
New question #271943 on Sikuli: https://answers.launchpad.net/sikuli/+question/271943 Hello everyone, I'm working on a small project for a game I play called counter strike. It comes with a web application which essentially allows you to trade your own 'skins' (skins are the guns you see in this link https://i.gyazo.com/e2407660e5f7d207fa616648053f1aa9.png). Each skin comes at it's own price as you can see in the link above. What I would like sikuli to be able to do is identify the price of my one skin and then work out which is the best skin to trade with the other person. For example, in the screenshot you can see my skin is valued at £0.05, the other person has a range of skins all of different values. I would like sikuli to be able to do more than just realise that trading my £0.05 for their £110.90 skin will make me money. The reason for this is that this isn't a fair trade at all and so the other person definitely won't accept my offer. What I want is Sikuli to work out what is a fair trade, but where I still profit. For example, it uses a formula such as ('price of my skin' x 1.05) and another ('price of my skin' x 1.15) so that I make anywhere between 5% and 15% profit. The reason I am posting this question is because I have only owned this software for 48 hours and never coded before, so my ability for a complex process such as this is well out of my reach. I have spent the last 2 days learning all of the basics and feel comfortable with the software. I would be so grateful if anyone could lead me in the right direction, let me know some scripts which will make this easier or even code some parts of this. I think this would be a really fun project to work on with the talented coding community and can't wait for some replies:) (This is non-profit as values are just an in-game value that cannot be exchanged for real money). -- 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 #185791]: How to run "Sikuli On Virtual Machines"
Question #185791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/185791 RaiMan posted a new comment: @daluu Thanks for the pointer. I will have a look at it and probably support it in SikuliX version 2. -- 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 #185791]: How to run "Sikuli On Virtual Machines"
Question #185791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/185791 daluu posted a new comment: I came across this post a while back, forgot to mention here. Might be useful for those using Sikuli remotely with Remote Desktop: http://www.allianceglobalservices.com/blog/executing-automation-suite- on-disconnectedlocked-machines -- 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 #271912]: Images lost in script
Question #271912 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271912 Status: Open => Answered RaiMan proposed the following answer: Supposing "latest version" means latest nightly build of 1.1.0. --- I accidentally lost my images Any idea when and how that happened? --- I managed to recover all the images How did you do that? Are you using a normal script folder .sikuli, that contains a .py file and all the images? --- and so it returns to normal I have no idea, how the Pattern("1443553021333.png").exact() was created by your "recovery". This is usually created, when clicking on an image in the IDE and push the similarity to 0.99. Nevertheless, the image thumbnails should be shown in the IDE. If .exact() is not suitable for an image, then either use Preview to reset it to 0.7, or edit the .py file in an external editor and use find/replace changing Pattern("1443553021333.png").exact() to Pattern("1443553021333.png") or even in 2 steps to "1443553021333.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 #271920]: Getting "ConfigParser.NoSectionError" while trying to read input from a file
Question #271920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271920 Status: Open => Answered RaiMan proposed the following answer: look into the docs of ConfigParser -- 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 #271904]: OCR manually improve
Question #271904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271904 Status: Open => Answered RaiMan proposed the following answer: principally yes ;-) You have to dive into the teaching of Tesseract (on the Tesseract page). The teaching of new fonts usually ends up in some additional traineddata and option files, that have to be incorporated into SikuliX's tessdata folder. Currently it is only possible, to switch between languages. Come back, when you have decided for a concept. ... and if this is not suitable for you: it is always possible to install Tesseract (for the teaching you have to do that anyway) and use the Tesseract command from inside 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
[Sikuli-driver] [Question #271928]: type(xxx, Key.DELETE) don't delete highlighted text
New question #271928 on Sikuli: https://answers.launchpad.net/sikuli/+question/271928 in Notepad, enter "ThisIsaTest" and double click on it in order to get it selected with sikuli, run type(,Key.DELETE) instead of having deleted the selection, only 1 char have been removed ? type(,Key.SHIFT+Key.DELETE) is even "strange": it replace the text by a number ??? How to delete the whole highlighted text ? -- 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 #271722]: [1.1.0] How to control the inner timing of dragDrop()
Question #271722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271722 masuo requested more information: When I specified the trash on the desktop to image, it works properly. What happened ? Let's check the message . If the image did not found: [error] FindFailed ( can not find Did you get error messages? -- 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 #271722]: [1.1.0] How to control the inner timing of dragDrop()
Question #271722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271722 Status: Open => Needs information masuo requested more information: What happened ? Let's check the message . If the image did not found: [error] FindFailed ( can not find Did you get error messages? -- 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 #185791]: How to run "Sikuli On Virtual Machines"
Question #185791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/185791 RaiMan posted a new comment: @David The "remote server" feature is 1.0.1 only. The new server is experimental and information about is on http://sikulix.com/support (sorry for the typo before) -- 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 #271928]: type(xxx, Key.DELETE) don't delete highlighted text
Question #271928 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271928 RaiMan proposed the following answer: Be aware: type(someTarget, someKeys) is resolved in a sequence of click(someTarget) type(someKeys) and hence resets an existing selection. -- 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 #271928]: type(xxx, Key.DELETE) don't delete highlighted text
Question #271928 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271928 Status: Open => Answered RaiMan proposed the following answer: type(, Key.DELETE) would position the cursor somewhere in the middle of the text and then delete the character next to it. To select the text, you have to simulate the respective keys, that select a text and then issue the delete: e.g. doubleClick() type(Key.DELETE) or if the text is already selected simply type(Key.DELETE) -- 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 #271912]: Images lost in script
Question #271912 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271912 Status: Answered => Solved Ben confirmed that the question is solved: So I lost all my images when trying to tidy up folders as I wasn't sure where it had saved too. Having accidentally deleted the folder containing images and py, then closing the program I lost it all. When I opened the sikuli program it was as if it had remembered where I left off, but was unable to load the images due to the fact they were no longer present in the folder. I used a recovery prgram and got most images back in the folder with the same file name but this isn't being recognised by ide. I am now using a normal folder that contains a py file and the images, about 7 images have recovered correctly but only 2 of these are loading in the script. I think the pattern(".").eacr() was created from before where I set the image named 144355 .. To exact similarity but the photo was replaced with file name as it couldn't locate the photo. Will resetting it to 0.7 allow the ide to load the images from the file again? Thank you for the fast response -- 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 #271912]: Images lost in script
Question #271912 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271912 Status: Solved => Open Ben is still having a problem: Test -- 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 #271912]: Images lost in script
Question #271912 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271912 Status: Open => Answered RaiMan proposed the following answer: 1. take care, that all the images are in a separate backup folder. 2. make a folder myscript.sikuli containing your script file named myscript.py (you may choose what you want as myscript, but .sikuli and .py must have the same name. 3. now COPY the images from the backup folder to the myscript.sikuli folder 4. open the script in the IDE 5. images shown with their filename and not with their thumbnail where not found in the folder. make your decision, how to deal with it. 6. repair what is needed with each image using Preview (rename, similarity, target offset) 7. save the script and you are back. Be aware: all images (files .png) that are not referenced in the script with their filename (even in comments) are deleted at time of script save from the .sikuli folder (this is why a backup folder in your case makes sense until back again). Image filenames starting with a _ (underscore) are never deleted. You might switch between thumbnail and plain text view using ctrl-T (menu view). -- 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 #271904]: OCR manually improve
Question #271904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271904 Edmundo V. Neto posted a new comment: Maybe it would be possible to apply a filter to the images (to make it black and white and raise the contrast) to solve font smoothing and background differences but I did not tried that. -- 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 #271904]: OCR manually improve
Question #271904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271904 Edmundo V. Neto posted a new comment: Maybe it would be possible to apply a filter to the images (to make it black and white and raise the constrast) to solve font smoothing and background differences but I did not tried that. -- 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 #271904]: OCR manually improve
Question #271904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271904 Edmundo V. Neto proposed the following answer: Some time ago I needed to do something similar to what you want as I asked here: https://answers.launchpad.net/sikuli/+question/263287, Eugene suggested to kind of make my own OCR. The result is what I answered last, it takes 0.3 seconds to solve a phrase with 100% accuracy. Its not simple, it was made to recognise the text of a combobox, not to recognize an entire page, its intolerant to changes (the text rendered in the screen of a specific configuration is different from another, for example the font in my screen is different from the font in the exact same system inside virtualbox). I made a module, made a Fireworks image with character slices (its very specific to a screenshot of my program) to ease the cut and save work of each character, each character image name is its unicode number .png, the code only takes into account how paths are composed in Linux and its written with comments and variable names in brazilian portuguese. I made moreless what Eugene suggested, I process an area and try to find each character inside it, make a list of each occurrence of each character saving the character and its center position but I don't handle spaces. I sort the list by position, subtract the first position from the last to have the size of the text found and only inside that area I search for spaces, add them to the list, sort by center position again and then process a .py file inside a subdirectory that have the name of the font it holds, this is a set of "rules" to apply to the list, for example, if I process a dialog font, r with n and r with m have the exact same partial picture depending how I cut it, a r cannot have a blank pixel at the right with that font. (I work with the centers) If a r is found before a n with 1 pixel difference the r doesn't exist If a r is found before a m with 3 pixels difference the r doesn't exist ( a n is never found inside a m because of the blank pixel at the right, this rule is not needed) If you compare this with "region.right(xxx).text()" it seems overkill, but with my dialog 11pt font it have 100% accuracy. Unfortunately I don't know how to teach Tesseract to do that. -- 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 #271722]: [1.1.0] How to control the inner timing of dragDrop()
Question #271722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271722 Status: Answered => Open Nikki is still having a problem: This doesn'tdo anything: f = find("image.png") dragDrop(f, Location(f.x + 200, f.y)) -- 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