Re: [Sikuli-driver] [Question #671371]: click() not working.
Question #671371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671371 Status: Answered => Solved nick oh confirmed that the question is solved: SOLVED : I used the following code to basically 'click longer' and allow Bluestacks to take its time registering inputs. def clicc(): wait(0.3) mouseDown(Button.LEFT) wait(0.2) mouseUp() wait(0.2) ~stuff~ hover(image) clicc() hover(image) clicc() ... -- 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 #671371]: click() not working.
Question #671371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671371 nick oh confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #671371]: click() not working.
Question #671371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671371 Description changed to: I know this exact same question has been asked a milion times, but hear me out : I'm trying to click some buttons using Sikuli 1.1.2 running on Admin by using sudo on Terminal. OS : MacOS High Sierra 10.13.5 Program I'm clicking on : Bluestacks 2.0.0 I've tried click(), doubleClick(), hover(img) then click(), define region and click region, run on user and run using sudo, everything. The click()s sometimes work and when it does it will work until that session is terminated. But when it does not, however, sikuli will say that it did click but the clicks are not actually registered on the bluestacks screen. And no, I use switchApp("Bluestacks") at the start of the code and it focuses properly. Is it because of something funky going on with Bluestacks? with Sikuli? or with MacOS? Or am I just bad at coding and messed up? Any help is appreciated, I don't think I have much time. -- 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 #671371]: click() not working.
New question #671371 on Sikuli: https://answers.launchpad.net/sikuli/+question/671371 I know this exact same question has been asked a milion times, but here me out : I'm trying to click some buttons using Sikuli 1.1.2 running on Admin by using sudo on Terminal. OS : MacOS High Sierra 10.13.5 Program I'm clicking on : Bluestacks 2.0.0 I've tried click(), doubleClick(), hover(img) then click(), define region and click region, run on user and run using sudo, everything. The click()s sometimes work and when it does it will work until that session is terminated. But when it does not, however, sikuli will say that it did click but the clicks are not actually registered on the bluestacks screen. And no, I use switchApp("Bluestacks") at the start of the code and it focuses properly. Is it because of something funky going on with Bluestacks? with Sikuli? or with MacOS? Or am I just bad at coding and messed up? Any help is appreciated, I don't think I have much time. -- 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 #671214]: OCR help : Read some numbers and type it
New question #671214 on Sikuli: https://answers.launchpad.net/sikuli/+question/671214 I need to read a 4 number text field, click the box below, and paste the read text. I tried : code = text() //click the box type (code) and it says that "type(): 1st arg can't be coerced to String" What am I doing wrong? -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Oh No posted a new comment: Is anyone still working on this, please? :( -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Status: Answered = Open Oh No is still having a problem: Vacation is quite understandable. Hope you had a relaxing time :) If you need anything else, please let me know. I'm really looking forward to the final result. -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Status: Answered = Open Oh No is still having a problem: How's everything going? How's the Windows MovieMaker workflow setup going? Please give me an update when it's convenient. Thanks! -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Oh No posted a new comment: I was unable to work on this without your help, so the project came to a complete halt, but I'd really like to finish it. I have sent you an email, thanks! -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Status: Answered = Open Oh No is still having a problem: Is anyone still willing to work on the project outlined in post #5? Thanks! Hope it's not against the rules/guidelines to resurrect such an old thread. -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Status: Answered = Open Oh No is still having a problem: I'm not sure whether I should start a new thread or just post my questions here. I need to create many videos using movie maker. I've successfully setup sikuli to do this, but currently I rely too heavily on pictures/GUI rather than direct commands. This is error prone, not to mention slower, so I'm trying to eliminate my reliance on GUI wherever possible. First a brief description of what I am trying to achieve. Create folders and pictures for students. (done) Copy these folders and their contents to student directories. Also copy pictures to video directories Create videos (either all, or some specified subset) -- (done, but sometimes returns an error) More about the videos (well, picture slideshow) - there are about 65 videos, and each is contained in a separate folder. Let's say there are a group of 10 different students. To create each student's videos, I first need to copy their individual files(pictures) according to the specific video and overwrite them in the video folder. Then need to open Windows Movie Maker and save the video to a certain sub-directory of that student's folder. The name of the saved file should also include the student's name. For example video 2-JAS.mp4, will become 2-JAS-student's name.mp4. the final result for that student should be about 65 videos in a sub-directory of the student's folder, all with their name appended to the video name. This part I can achieve using sikuli's GUI capabilities, but sometimes get errors. Because saving the videos can sometimes take quite some time depending on the total number of videos, I'd also like to automate the process to create, say, videos 1 to 65 for the first student, then for the second, third, fourth and so on until all the students have their videos. This I really have no idea how to accomplish unless some programming is involved. Any guidance on this would be greatly appreciated. Notes: Sometimes Windows Movie Maker will return an error message - I've gotten around this by using if exists and then closing out the error message before proceeding. Also every now and then a notification urging me to update will pop up and might interfere with the saving process. This is also dealt with using if exists… As usual, I can provide more details where necessary - and given my current sleep deprived state if someone can clearly understand my incoherent descriptions of this project I'll be surprised. Really shouldn't attempt to multi-task so often, and especially when getting by on such little sleep. -- 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 #247554]: Open Windows Movie Maker files without GUI
Question #247554 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247554 Oh No posted a new comment: Ok, I deleted the space between r and to create the raw string. This time there are no error messages, but the result is that a command prompt window is opened and nothing else happens. The command prompt's title is D:\Media\Students 2013\WMM\2-JAS.wlmp -- 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 #247554]: Open Windows Movie Maker files without GUI
Question #247554 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247554 Oh No posted a new comment: Thanks, with this it works, but there is still a command prompt window that pops up. Also, any wlmp file that I double click on will open automatically with MovieMaker, so I'm not sure why the previous code didn't work. movieMaker = rC:\Program Files (x86)\Windows Live\Photo Gallery\MovierMaker.exe subprocess.Popen((cmd, /C, start, movieMaker, os.path.join(dir, movie))) movie = 2-JAS.wlmp dir = rD:\Media\Students 2013\WMM import subprocess import os subprocess.Popen((cmd, /C, start, os.path.join(dir, movie))) -- 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 #247554]: Open Windows Movie Maker files without GUI
New question #247554 on Sikuli: https://answers.launchpad.net/sikuli/+question/247554 I'd like to open a Movie Maker file, which I believe must be an incredibly simple task, but alas I still can't get it to work. For example I have a file called 2-JAS.wlmp in D:\Media\Students 2013\WMM How can I open it? -- 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 #247554]: Open Windows Movie Maker files without GUI
Question #247554 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247554 Oh No posted a new comment: I'm receiving the following error message: [error] script [ *Untitled ] stopped with error in line 2 at column 8 [error] SyntaxError ( 'no viable alternative at input \'D:\\Media\\Students 2013\\WMM\'', ) -- 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 #247554]: Open Windows Movie Maker files without GUI
Question #247554 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247554 Status: Answered = Open Oh No is still having a problem: I just used the code from your previous message: movie = 2-JAS.wlmp dir = r D:\Media\Students 2013\WMM import subprocess import os subprocess.Popen((cmd, /C, start, os.path.join(dir, movie))) -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
Question #247469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247469 Oh No posted a new comment: @Raiman, I didn't know how to attach files here, so I emailed you instead. @Rafiq, thanks as well for the suggestions. I just tried some rudimentary experimenting with .bat files, but for some reason the code won't execute. I'll eventually look into it further... really need to learn python - yet another thing on my worry plate :) -- 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 #247532]: Boolean logic - If image exists, then...
New question #247532 on Sikuli: https://answers.launchpad.net/sikuli/+question/247532 Occasionally when I open Windows Movie Maker an error message pops up on the screen. Therefore I need to instruct Sikuli to do something else in the event of the error message. Just that I am totally new to python and struggling with it at the moment. How can I set up some sort of if statement as follows: If (find this image), then do ABC. else do XYZ. Thanks! Oh, and of course I can provide more information if necessary. -- 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 #247532]: Boolean logic - If image exists, then...
Question #247532 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247532 Status: Open = Solved Oh No confirmed that the question is solved: Never mind - I think I found a solution which was to use if exists(Myimage): then -- 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 #247469]: Need someone to program Sikuli to perform some tasks for me - relatively easy for any programer
New question #247469 on Sikuli: https://answers.launchpad.net/sikuli/+question/247469 Maybe I can figure this out with enough time, but I really don't have the time as I'm facing a number of fast approaching deadlines. Here's what I'd like to achieve, and of course I'm willing to pay for someone to put together the code for me. I have many different students for who I need to put together some videos for using Windows Movie Maker. I will I have a master folder, for the sake of simplicity we will call this student's master folder using her English name - HAPPY In this master folder there are master pictures with assorted names, for example listen, teacher, important, school, goodbye and so on. Currently I need to create 65 new folders for each student numbered 1 through 65. In each of these folders need to copy some of the pictures from the master folder and rename those pictures. For example in folder 1(one) I need to copy the files listen, school, important, and teacher Some important notes - there will only be one source file for each picture in the master folder, however, in almost every case there need to be multiple copies of the same picture in the created sub-folders. Eg. listen in folder one should be copied 6 times, each instance with a different name. The names of these files are incredibly important and need to follow my exact template. Therefore they cannot just be a simple numbered sequence. Again in my folder 1(one) example the names for the listen files would need to be 22_listen, 27_listen, 50_listen, 57_listen - Copy, 60_listen - Copy - Copy and finally 66_listen This is stage one of the project and for now might actually be sufficient. Ideally though there are two other stages. The second stage would then be to copy the pictures from these 65 folders into other folders on my computer, where they will replace existing pictures. From my limited understanding the second two stages should actually be relatively straightforward,and in fact to achieve them I think I'd just need to know how to copy the contents of one folder to another in the quickest way possible. I think using commands would be much more efficient than making use of graphical interfaces so that's how I'd like to achieve this stage when possible. I've managed to complete the third stage on my own... maybe... so no need to go into the details for now. Hopefully this all makes sense, but if not I'd be happy to do my best to explain my case until someone understands! Thanks! -- 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