Re: [Sikuli-driver] [Question #661046]: How to reuse the code in sikuli
Question #661046 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661046 Status: Answered => Solved Saket confirmed that the question is solved: Yes I searched this & found on net : def func001(): # < modify func001 ==> func001() and this typo was done by my side : click("1511773811501.png") # < modify Click ==> click Yes this worked perfectly "for no in range(10): func001() " Thanks for your help Masuo, I could understand new concept of functions with this. Now i will implement this in my actual script where i wanted to reuse / run my particular line of code n times, if i come across any issue. i will mention you in that, if possible help me, 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
Re: [Sikuli-driver] [Question #661046]: How to reuse the code in sikuli
Question #661046 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661046 Saket posted a new comment: Hi Roman, Thanks to you as well for your valuable comment, My urgent requirement was to reuse my code for n times. Excel read write operation I did it by code only, but still whenever possible I will try csv read write part mentioned by you. Thanks for your support but for my current scenario I think function method should work, for now i have tried using function in test script, now i will implement it in my actual script. -- 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 #661046]: How to reuse the code in sikuli
Question #661046 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661046 Saket posted a new comment: don't know but i just commented the code written above & again wrote same line below it and same thing is worked. -- 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 #661046]: How to reuse the code in sikuli
Question #661046 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661046 Status: Answered => Open Saket is still having a problem: Hi Masuo, I am using functions concept for the 1st time, so i am not sure what i have done in right or wrong. Based on your suggestion I have created a simple login logout function & calling it but I am getting below mentioned error. Can you please help me with this ? Error : [error] script [ Test_Function_Script ] stopped with error in line 3 at column 3 [error] SyntaxError ( "mismatched input ' ' expecting EOF", ) For your ref. line 3 in my code is 'def func001:' My code is : def func001: hover("1511773804916.png") Click("1511773811501.png") wait(5) hover("1511773854020.png") click("1511773872796.png") print("Message : Function is called..") #Example when you want to use func001 10 times for no in range(10): func001() -- 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 #661046]: How to reuse the code in sikuli
New question #661046 on Sikuli: https://answers.launchpad.net/sikuli/+question/661046 How to reuse the code in sikuli : Hi Guys, sorry for the repeated question but I am unable to understand / implement the solutions i found. 1. I have created a script to read data from excel row by row from 1st column & i want to paste it somewhere in browser and perform few steps then i want to go back to that excel and read 2nd row data and so on till there is a data in 1st column. As soon as i find a blank row i want to stop 2. Or i would like to perform read operation say 100 times is it possible ? My code : hover("1511501830618.png") click("1511501830618.png") hover("1511330922974.png") click("1511330922974.png") type(Key.DOWN) print("Message : Down Button pressed...") wait(1) while not exists("1511502908573.png"): print("Message : Keyword found...") wait(1) type("c",KEY_CTRL) wait(1) hover("1511501976440.png") click("1511501976440.png") wait(1) type("v",KEY_CTRL) wait(1) click("1511501830618.png") type(Key.DOWN) wait(1) hover("1511502768982.png") while exists("1511503440749.png"): print("Message : No Keyword found...") break; Please help me with this guys, 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
Re: [Sikuli-driver] [Question #403722]: How to save newly generated Profile ID and use it in further script.
Question #403722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403722 Saket posted a new comment: ok thanks, will try 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 #403722]: How to save newly generated Profile ID and use it in further script.
Question #403722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403722 Saket posted a new comment: Which one is easier ? and can be used across multiple scrips as well ? can you give some link which will explain these concepts or help me with some small example ??? -- 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 #403722]: How to save newly generated Profile ID and use it in further script.
Question #403722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403722 Saket posted a new comment: Its like on creating a new user, it allots one unique Profile ID to newly created user say Saket (SL12100), so this SL12100 id, i want to save and provide to further part of scripts dynamically. Is it possible. ?? so basically profile id is say 2 characters & 5 digits. -- 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 #403400]: How to create a batch file to run multiple sikuli scripts one after one.
Question #403400 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403400 Saket posted a new comment: Hi Masuo, kindly help me with this new query : https://answers.launchpad.net/sikuli/+question/403722 -- 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 #403722]: How to save newly generated Profile ID and use it in further script.
New question #403722 on Sikuli: https://answers.launchpad.net/sikuli/+question/403722 Hi, In my script I am creating new user which generated one profile ID, which i want to save / remember and use it in further scripts. Is it possible to use some variable or some new concept. ? -- 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 #403400]: How to create a batch file to run multiple sikuli scripts one after one.
Question #403400 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403400 Saket posted a new comment: Hey Masuo, Thanks this worked properly : "C:\Users\OpenSpace002\Desktop\Sikuli\runsikulix.cmd -r C:\Users\OpenSpace002\Desktop\Sikuli\Test\Test1.sikuli" I could run it from command prompt Thank you so 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
Re: [Sikuli-driver] [Question #403400]: How to create a batch file to run multiple sikuli scripts one after one.
Question #403400 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403400 Status: Answered => Solved Saket confirmed that the question is solved: Thanks masuo, 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 #403400]: How to create a batch file to run multiple sikuli scripts one after one.
Question #403400 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403400 Saket posted a new comment: Is PATH-TO-SIKULIX "C:\Users\OpenSpace002\Desktop\Sikuli", isn't it? -- Yes path is right ... Thanks for your response will try this now. and will update you. -- 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 #403400]: How to create a batch file to run multiple sikuli scripts one after one.
Question #403400 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403400 Status: Answered => Open Saket is still having a problem: Hey, Already tried for this - How to run SikuliX from Command Line could not run from command line it gives some error -r, --run (one or more entries seperated by space) can you help me to run C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes1.sikuli C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes2.sikuli C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes3.sikuli these scrips from command prompt : which command should i run ? -- 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 #269960]: How to get SIKULI script results..?
Question #269960 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269960 Saket proposed the following answer: @Ravi How are you able to run multiple scrips through bat file ?? can you please help me. -- 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 #403400]: How to create a batch file to run multiple sikuli scripts one after one.
New question #403400 on Sikuli: https://answers.launchpad.net/sikuli/+question/403400 Hi, I have installed sikuli on desktop : on path C:\Users\OpenSpace002\Desktop\Sikuli and i want to create a bat file to run multiple scrips which are saved in folders C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes1.sikuli C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes2.sikuli C:\Users\OpenSpace002\Desktop\Sikuli\Test\Tes3.sikuli I have created batch file as @echo off start /i /b /wait C:\Users\OpenSpace002\Desktop\Sikuli.runsikulix -r C:\Users\OpenSpace002\Desktop\Sikuli\Test\Test1.sikuli ECHO Ran project 1 start /i /b /wait C:\Users\OpenSpace002\Desktop\Sikuli.runsikulix -r C:\Users\OpenSpace002\Desktop\Sikuli\Test\Test2.sikuli ECHO Ran project 2 but on executing this batch file - getting error as "windows can not find 'C:\Users\OpenSpace002\Desktop\Sikuli.runsikulix'. Make sure you typed named correctly, and then try again. " -- 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