Re: [Sikuli-driver] [Question #649925]: compile sikuli scripts, run exes?
Question #649925 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/649925 Status: Answered => Solved eduardobedoya 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 #649925]: compile sikuli scripts, run exes?
Question #649925 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/649925 Status: Answered => Open eduardobedoya is still having a problem: Thanx Masuo, Yes I know all about the image recognition behaviour, in Sikuli, AHK, and others. what I meant by fast, is a way to make multiple scripts to be loaded fast, I remember a pseudo way to call many scripts (by hotkey) from a single Sikuli script, but the scripts just took too much time only to load (like 1.5 seconds), once loaded they run fast. It really would be nice to have sikuli scripts to load fast as executables. Is there any release date for Sikuli v2? any guess? Thanks again, Thanks Advanced. -- 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 #649925]: compile sikuli scripts, run exes?
New question #649925 on Sikuli: https://answers.launchpad.net/sikuli/+question/649925 Hi, long time don't use Sikuli, like 2 years now does Sikuli now support compiling? I would like to compile my Sikuli scripts into a standallone executable exes, that could work on any windows 8.1 computer wo having sikuli installed. Also speed is key, I would like the scripts to run fast. I read some stuff about that been available from Sikuli version 1.1.1 is that true??? I would like to script again in Sikuli, cuz all this time I've been using other paid packages with less powerfull img recognition tools, only due to compilation capabilities. Thanks Advanced. -- 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 #293145]: Can Sikuli detect if a App or WindowClass is focused or not? if not, is there any workaround?n
Question #293145 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293145 eduardobedoya gave more information on the question: very bad :( it has past almost half a year, since I last used Sikuli, but still not support on this matter, isn't there any workaround?? what about this??? https://answers.launchpad.net/sikuli/+question/235183 Thanks Advanced. -- 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 #293145]: Can Sikuli detect if a App or WindowClass is focused or not? if not, is there any workaround?n
Question #293145 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293145 Status: Answered => Open eduardobedoya is still having a problem: very bad :( I has past almost half a year, since I last used Sikuli, but still not support on this matter, isn't there any workaround?? what about this??? https://answers.launchpad.net/sikuli/+question/235183 Thanks Advanced. -- 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 #293145]: Can Sikuli detect if a App or WindowClass is focused or not? if not, is there any workaround?n
New question #293145 on Sikuli: https://answers.launchpad.net/sikuli/+question/293145 Hi can SIkuli detect if there is an App or WindowClass is focused or not? if not, is there any workaround? I want to send CTRL Y keys if the focused window is Excel or Firerfox, whenever I press CTRL Shift Z I have the script to do that, except the part of telling if Excel or Firefox are focused. Thanks Advanced. -- 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 eduardobedoya posted a new comment: Thanks Raiman, no I don't intend to have a hotkey to stop a script, it stop when it ends... but I would like to run one script and after it ends (it write a file), then execute another script,... From your example I used this... def runMySikuliScriptA(event): runScript(C:\Sikuli\Scripts\MySikuliScriptA) Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA) def runMySikuliScriptB(event): runScript(C:\Sikuli\Scripts\MySikuliScriptB) Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB) while True: wait(1) Doing this I can press CTRL SHIFT F1 and run scriptA, then after it ends, I press CTRL SHIFT F2 to run scriptB, it worked ok So this last infinite loop is necessary right? is it helps sikuli to wait until next shortcut is press right?? Thanks Raiman. -- 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 Description changed to: Hi, Im running Sikuli 1.1.0 I am having this problem... def runMySikuliScriptA(event): runScript(C:\Sikuli\Scripts\MySikuliScriptA) Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA) while True: wait(1) def runMySikuliScriptB(event): runScript(C:\Sikuli\Scripts\MySikuliScriptB) Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB) while True: wait(1) If I run this script, and then I press Ctrl Shift F1 it runs MySikuliScriptA successfuly, but if then I press Ctrl Shift F2 (in order to run MySikuliScriptB it doesn't do anything and when stopping SIkuli (Shift Alt C) I get this message... java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:111) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.up(Mouse.java:360) at org.sikuli.script.Mouse.reset(Mouse.java:100) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:326) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2177) What does that mean? how can I solve this? I would like to put 6 or 7 scripts all with hotkeys. Do I need to put the wait for 1 second after each script? or just at the end of all?? Thanks Advanced. -- 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 Description changed to: Hi, Im running Sikuli 1.1.0 I am having this problem... def runMySikuliScriptA(event): runScript(C:\Sikuli\Scripts\MySikuliScriptA) Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA) while True: wait(1) def runMySikuliScriptB(event): runScript(C:\Sikuli\Scripts\MySikuliScriptB) Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB) while True: wait(1) If I run this script, and then I press Ctrl Shift F1 it runs MySikuliScriptA properly and successfuly (create a Debug.log, and write a file successfully), but if then (after 2 seconds) I press Ctrl Shift F2 (in order to run MySikuliScriptB it doesn't do anything and when stopping SIkuli (Shift Alt C) I get this message... java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:111) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.up(Mouse.java:360) at org.sikuli.script.Mouse.reset(Mouse.java:100) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:326) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2177) What does that mean? how can I solve this? I would like to put 6 or 7 scripts all with hotkeys. Do I need to put the wait for 1 second after each script? or just at the end of all?? Thanks Advanced. -- 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 #264483]: 1.0.1 how to run sikuli script from command line
Question #264483 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264483 Status: Solved = Open eduardobedoya is still having a problem: Hi Raiman, please tell me, is it really necessary to wait for one second after running this? why is that? thanks def runMySikuliScript(event): runScript(C:\Sikuli\Scripts\MySikuliScript) Env.addHotkey(Key.F12, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScript) while True: wait(1) -- 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 #269618]: Error when running more than one script using hotkeys.
New question #269618 on Sikuli: https://answers.launchpad.net/sikuli/+question/269618 Hi Raiman, please tell me, is it really necessary to wait for one second after running a script via hotkey? I am having this problem... def runMySikuliScriptA(event): runScript(C:\Sikuli\Scripts\MySikuliScriptA) Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA) while True: wait(1) def runMySikuliScriptB(event): runScript(C:\Sikuli\Scripts\MySikuliScriptB) Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB) while True: wait(1) If I run this script, and then I press Ctrl Shift F1 it runs MySikuliScriptA successfuly, but if then I press Ctrl Shift F2 (in order to run MySikuliScriptB it doesn't do anything and when stopping SIkuli (Shift Alt C) I get this message... java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:111) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.up(Mouse.java:360) at org.sikuli.script.Mouse.reset(Mouse.java:100) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:326) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2177) What does that mean? how can I solve this? I would like to put 6 or 7 scripts all with hotkeys, Im running Sikuli 1.1.0, Do I need to put the wait for 1 second after each script? or just at the end of all?? Thanks Advanced. -- 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 1474033] Re: Python construc to swap variables doesn't work in Sikuli
it returns... var1 = 0 var2 = 1 var1 = 1 var2 = 1 In python it should return... var1 = 0 var2 = 1 var1 = 1 var2 = 0 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474033 Title: Python construc to swap variables doesn't work in Sikuli Status in Sikuli: New Bug description: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, Var2 = var2, var1 print var1 = , var1 print var2 = , var2 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474033/+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 1474033] [NEW] Python construc to swap variables doesn't work in Sikuli
Public bug reported: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, Var2 = var2, var1 print var1 = , var1 print var2 = , var2 ** 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/1474033 Title: Python construc to swap variables doesn't work in Sikuli Status in Sikuli: New Bug description: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, Var2 = var2, var1 print var1 = , var1 print var2 = , var2 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474033/+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 1474033] Re: Python construc to swap variables doesn't work in Sikuli
thanks, Raiman, wau 1.1.0 ill check it out. ** Description changed: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 - var1, Var2 = var2, var1 + var1, var2 = var2, var1 print var1 = , var1 print var2 = , var2 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474033 Title: Python construc to swap variables doesn't work in Sikuli Status in Sikuli: Opinion Bug description: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, var2 = var2, var1 print var1 = , var1 print var2 = , var2 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474033/+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 #235254]: Unable to save sikuli
Question #235254 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235254 eduardobedoya posted a new comment: Hi Raiman, why is the creation of the html on save need for?? Thanks Advanced. -- 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 #132445]: Reading / writing to a file in sikuli
Question #132445 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/132445 eduardobedoya posted a new comment: Hi RaiMan, please could you tell me if there has been changes in the way to create, write, and delete files in sikuli? Thanks Advanced. I would like to create a file, and then append some lines at the end of 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
[Sikuli-driver] [Question #268974]: How to create, write, append in last line and delete file in Sikuli?
New question #268974 on Sikuli: https://answers.launchpad.net/sikuli/+question/268974 Hi I would like to know if there has been changes in the way to create, write, append in the las line, and delete files in sikuli? -- 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 #132445]: Reading / writing to a file in sikuli
Question #132445 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/132445 eduardobedoya posted a new comment: Hi RaiMan, please could you tell me if there has been changes in the way to create, write, and delete files in sikuli? Thanks Advanced. -- 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 #268974]: How to create, write, append in last line and delete file in Sikuli?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 Description changed to: Hi I would like to know how to create, write, append in the las line, and delete files in sikuli? Also if it is possible, to create a file and fill it with the current content (single line text) of the clipboard, is that possible??? Thanks Advanced. -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 Summary changed to: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content? -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 Status: Answered = Open eduardobedoya is still having a problem: Hi Raiman, please tell me, I read a launchpad answer from 2012, please tell me, is this answer deprecated?? https://answers.launchpad.net/sikuli/+question/132445 Thanks Advanced. -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 eduardobedoya gave more information on the question: Now Im using a Laptop with two harddrives, C and E, but let's say a pretend to use Sikuli in a system with only one C drive, can Sikuli write files in any C: subfolder?? I have try saving the file in C:\SIKoutput and I get the message: [error] IOError ( (13, 'Permission denied', 'C:\\SIKoutputSIKoutput.txt') ) -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 eduardobedoya gave more information on the question: cuz Im doing this... SIKoutput_dir = E: SIKoutput = file(SIKoutput_dir + SIKoutput.txt, w) SIKoutput.write(wuajaajjaja\n) SIKoutput.write(line2\n) SIKoutput.write(line3) SIKoutput.close() this works to create a new line SIKoutput.write(line2\n) but this doesn't SIKoutput.write(line2+el) -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 eduardobedoya gave more information on the question: cuz Im doing this... SIKoutput_dir = E: SIKoutput = file(SIKoutput_dir + SIKoutput.txt, w) SIKoutput.write(wuajaajjaja\n) SIKoutput.write(line2\n) SIKoutput.write(line3) SIKoutput.close() this works to create a new line SIKoutput.write(line2\n) but this doesn't SIKoutput.write(line2+el) But my main problem is that I can't write files to C:\Users\UserName\Desktop, only to E: drive. any clue? -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 eduardobedoya posted a new comment: cuz Im doing this... SIKoutput_dir = E: SIKoutput = file(SIKoutput_dir + SIKoutput.txt, w) SIKoutput.write(wuajaajjaja\n) SIKoutput.write(line2\n) SIKoutput.write(line3) SIKoutput.close() this work to create a new line SIKoutput.write(line2\n) but this doesn't SIKoutput.write(line2+el) But my main problem is that I can't write files to C:\Users\UserName\Desktop, only to E: drive. any clue? -- 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 #268974]: How to create, write, append, delete file in Sikuli? it is possible to create a file with the clipboard content?
Question #268974 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268974 Status: Open = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #268754]: What are the exit() parameters?
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Description changed to: Hi all, Im using this code... try: reg.click(Image) except App.setClipboard(image not found) exit() I would like to write in the Sikuli IDE log image not found + somevariable Currently Im using Debug.log(image not found %, xyz) where xyz = somevariable How can I put a variable value in a SIkuli IDE log and please I would like to know what are exit() parameters?? I've tried to read about that from here with no clue http://doc.sikuli.org/globals.html it seems that are numbers? like 1?? Thanks Advanced. -- 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 #268754]: What are the exit() parameters?
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Description changed to: Hi all, Im using this code... try: reg.click(Image) except App.setClipboard(image not found) exit() I would like to write in the Sikuli IDE log image not found + somevariable Currently Im using Debug.log(image not found %, xyz) where xyz = somevariable but when I run it I get this error [error] java.util.FormatFlagsConversionMismatchException ( java.util.FormatFlagsConversionMismatchException: Conversion = e, Flags = ) How can I put a variable value in a SIkuli IDE log Thanks Advanced and please I would like to know what are exit() parameters?? I've tried to read about that from here with no clue http://doc.sikuli.org/globals.html it seems that are numbers? like 1?? Thanks Advanced. -- 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 #268754]: What are the exit() parameters?
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Description changed to: Hi all, Im using this code... try: reg.click(Image) except App.setClipboard(image not found) exit() I would like to write in the Sikuli IDE log image not found + somevariable Currently Im using Debug.log(image not found %, xyz) where xyz = somevariable but when I run it I get this error [error] java.util.FormatFlagsConversionMismatchException ( java.util.FormatFlagsConversionMismatchException: Conversion = e, Flags = ) How can I put a variable value (or the clipboard content instead) in a SIkuli IDE log Thanks Advanced and please I would like to know what are exit() parameters?? I've tried to read about that from here with no clue http://doc.sikuli.org/globals.html it seems that are numbers? like 1?? Thanks Advanced. -- 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 #267500]: If image not found, set clipboard to img not found
Question #267500 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267500 Status: Answered = Open eduardobedoya is still having a problem: Hi Rainman please could you tell me, what are exit() parameters?? I've tried to read about that from here with no clue http://doc.sikuli.org/globals.html it seems that are numbers? like 1?? Thanks Advanced. -- 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 #268754]: What are the exit() parameters?
New question #268754 on Sikuli: https://answers.launchpad.net/sikuli/+question/268754 Hi all, Im using this code... try: reg.click(Image) except App.setClipboard(image not found) exit() I would like to write in the log image not found and please I would like to know what are exit() parameters?? I've tried to read about that from here with no clue http://doc.sikuli.org/globals.html it seems that are numbers? like 1?? Thanks Advanced. -- 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 #267500]: If image not found, set clipboard to img not found
Question #267500 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267500 Status: Open = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #268754]: put a variable as text into a Debug.log(image not found %, xyz); What are the exit() parameters?
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks Eugene S, that solved my question. -- 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 #268754]: put a variable as text into a Debug.log(image not found %, xyz); What are the exit() parameters?
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Summary changed to: put a variable as text into a Debug.log(image not found %, xyz); What are the exit() parameters? -- 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 #268754]: put a variable as text into a Debug.log(image not found %, xyz)
Question #268754 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268754 Summary changed to: put a variable as text into a Debug.log(image not found %, xyz) -- 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 #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)
Question #267835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267835 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #216583]: Sikuli script to press multiple key combinations in windows
Question #216583 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/216583 eduardobedoya posted a new comment: so there is not especial Sikuli syntax, only achievable through python loop 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 #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)
Question #267835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267835 eduardobedoya posted a new comment: the y axis is predictable the x axis is unpredictable in fact, the region in which Im searching is an horizontal rectangle (all the screen wide size and 300px height) Do I first got to find all previous Matches of the Img So it will count then if another one appear right? what if there is no image at the beginning? Sikuli AutoWaitTime takes hole three seconds if no image is found on screen I guess I would have to set the autowaittime to 1sec and then restore it to 3, cuz in all others findImg actions in my script I would like to wait 3 secs. Isn't any other way to kinda set autowaittime for a single findAll, (like in the wait action or in the exists actions) How would the python code look like? what approach should I follow. THanks Advanced. -- 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 #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)
Question #267835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267835 eduardobedoya posted a new comment: the y axis is predictable the x axis is unpredictable in fact, the region in which Im searching is an horizontal rectangle (all the screen width and 300px height) Do I first got to find all previous Matches of the Img, count them before [run another predifined function] and then count them again, and see if another one appear right? but my problem is when there is no image at the beginning (first count), cuz if so, Sikuli AutoWaitTime takes hole three seconds to set the first count = 0. How can I get the findAll result faster (in 1 sec) if there is not image at the beginning? I guess I would have to set the autowaittime to 1sec before run the first count, and then restore it to 3secs, cuz in all others findImg actions in my script I would like to wait 3 secs. Isn't any other way to kinda set autowaittime for a single findAll, (like in the 'wait' action or in the 'exists' actions which have their own autowaittime that can be set individually in each action), How can I change autowaittime for a single findAll? Is there is another better approach to do this task, please give me a hing of how would the python code look like? THanks Advanced. -- 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 #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)
Question #267835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267835 eduardobedoya posted a new comment: the y axis is predictable the x axis is unpredictable in fact, the region in which Im searching is an horizontal rectangle (all the screen width and 300px height) Do I first got to find all previous Matches of the Img, count them before [run another predifined function] and then count them again, and see if another same Img appear right? but my problem is when there is no image at the beginning (first count), cuz if so, Sikuli AutoWaitTime takes hole three seconds to set the first count = 0. How can I get the findAll result faster (in 1 sec) if there is not image at the beginning? I guess I would have to set the autowaittime to 1sec before run the first count, and then restore it to 3secs, cuz in all others findImg actions in my script I would like to wait 3 secs. Isn't any other way to kinda set autowaittime for a single findAll, (like in the 'wait' action or in the 'exists' actions which have their own autowaittime that can be set individually in each action), or any other action that could replace the findAll, that could have its own autowaitime that could be set individually in each action? Is there is another better approach to do this task, please give me a hint of how the python code would look like? THanks Advanced. -- 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 #267835]: How to wait for an Image or a duplicated Image
New question #267835 on Sikuli: https://answers.launchpad.net/sikuli/+question/267835 How can I wait for an Image (eg. RedStartImg) but sometimes there is already a RedStartImg in the screen and it will appear a second one, How can I wait for that second RedStartImg? sometimes there are two RedStartImg and it will appear a third one, some times there is None and it will appear one, How can I wait for that RedStartImage in this case? I know that RedStartImage takes to appear from 0.5 to 2 secs. please somebody, any hint? Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)
Question #267835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267835 Summary changed to: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img) -- 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 #267725]: How to change findAll WaitTimeout individually
Question #267725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267725 Summary changed to: How to change findAll WaitTimeout individually Description changed to: Hi, I would like to change the default WaitTimeout of a single findAll I know Settings.AutoWaitTimeout = (seconds) can change the default WaitTimeout in all the script (I don't know why everytime I have tested it, it only applies from the second time I run my script on, the first time I run the script the WaitTimeout remain to the defult value 3secs despite Settings.AutoWaitTimeout is set to 0) I know also setAutoWaitTimeout = (seconds) set the maximum waiting time for all subsequent find operations. So if I want to change the default WaitTimeout only for a single findAll op, I should use two setAutoWaitTimeout, one before to set to custom, and another after the findAll op to restore to default, Iam right? is this the only way? isn't anything like... if exist (Img, 0.2): #where 0.2 is the wait time and can be changed but applied to findAll? please any hint is very welcome Thanks Advanced. -- 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 #216583]: Sikuli script to press multiple key combinations in windows
Question #216583 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/216583 eduardobedoya posted a new comment: Is there a syntax to press enter five times? like... type(Key.ENTER{5}) Thanks Advanced. -- 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 #267725]: Change findAll WaitTimeout individually, and Wait for Duplicated or Not Img
Question #267725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267725 eduardobedoya posted a new comment: somebody, anyhint?? -- 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 #267725]: Change findAll WaitTimeout individually, and Wait for Duplicated or Not Img
Question #267725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267725 Summary changed to: Change findAll WaitTimeout individually, and Wait for Duplicated or Not Img -- 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 #267725]: change findAll WaitTimeout individually, and Wait for Duplicated or Not Img
Question #267725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267725 Description changed to: Hi community, I have kinda two questions, but are related to the same script. 1) I would like to change the default WaitTimeout of a single findAll I know Settings.AutoWaitTimeout = (seconds) can change the default WaitTimeout in all the script (I don't know why everytime I have tested it, it only applies from the second time I run my script on, the first time I run the script the WaitTimeout remain to the defult value 3secs despite Settings.AutoWaitTimeout is set to 0) I know also setAutoWaitTimeout = (seconds) set the maximum waiting time for all subsequent find operations. (no matter if I put this action inside a function? other findAll op will change its WaitTimeout no matte if they are inside other functions?) So if I want to change the default WaitTimeout only for a single findAll op, I should use two setAutoWaitTimeout, one before, and another after the findAll op, Iam right? is this the only way? isn't anything like... if exist (Img, 0.2): #where 0.2 is the wait time and can be changed but applied to findAll? 2) How can I wait for an Image (eg. RedStartImg) but sometimes there is already a RedStartImg in the screen and it will appear a second one, How can I wait for that second RedStartImg? sometimes there are two RedStartImg and it will appear a third one, some times there is None and it will appear one, How can I wait for that RedStartImage in this case? I know that RedStartImage takes to appear from 0.5 to 2 secs. Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 Status: Answered = Open eduardobedoya is still having a problem: Second chance would be write the log in a PostgreSQL database, is where the main macrorecoder records all the logs, I used that macrorecorder to call sikuli scripts, and sikuli send the results back via clipboard. So I guess recording to database directly from sikuli could be a chance. Is that posible?? Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 eduardobedoya posted a new comment: Second chance would be write the log in a PostgreSQL database, is where the main macrorecoder records all the logs, I used that macrorecorder to call sikuli scripts, and sikuli send the results back via clipboard. So I guess recording to database directly from sikuli could be a chance. Is that posible?? Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 eduardobedoya gave more information on the question: Second chance would be write the log in a PostgreSQL database, is where the main macrorecoder records all the logs, I used that macrorecorder to call sikuli scripts, and sikuli send the results back via clipboard. So I guess recording to database directly from sikuli could be a chance. Is that posible?? what about the clipboard, there is not any append clipboard command right? I guess I could store the clipboard in a string, and append all parts of clipboard that a wish to that string everytime needed inside sikuli, and when done send all appended string to clipboard. that is the only way right? Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 eduardobedoya gave more information on the question: Second chance would be write the log in a PostgreSQL database, is where the main macrorecoder records all the logs, I used that macrorecorder to call sikuli scripts, and sikuli send the results back via clipboard. So I guess recording to database directly from sikuli could be a chance. Is that posible?? what about the clipboard, there is not any append clipboard command right? I guess I could store the clipboard in a string, and append all parts of clipboard that a wish to that string everytime needed inside sikuli, and when done send all appended string to clipboard. that is the only way right? Thanks Advanced. -- 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 #267700]: Is there a way to append strings to clipboard?
Question #267700 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267700 eduardobedoya gave more information on the question: Second chance would be write the log in a PostgreSQL database, is where the main macrorecoder records all the logs, I used that macrorecorder to call sikuli scripts, and sikuli send the results back via clipboard. So I guess recording to database directly from sikuli could be a chance. Is that posible?? what about the clipboard, there is not any append clipboard command right? I guess I could store the clipboard in a string, and append all parts of clipboard that I wish to that string inside sikuli, and when done send all appended string to clipboard. that is the only way right? Thanks Advanced. -- 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 #267725]: change findAll WaitTimeout individually, and Wait for Duplicated or Not Img
New question #267725 on Sikuli: https://answers.launchpad.net/sikuli/+question/267725 Hi community, I have kinda two questions, but are related to the same script. 1) I would like to change the default WaitTimeout of a single findAll I know Settings.AutoWaitTimeout = (seconds) can change the default WaitTimeout in all the script (I don't know why everytime I have tested it, it only applies from the second time I run my script on, the first time I run the script the WaitTimeout remain to the defult value 3secs despite Settings.AutoWaitTimeout is set to 0) I know also setAutoWaitTimeout = (seconds) set the maximum waiting time for all subsequent find operations. (no matter if I put this action inside a function? other findAll op will change its WaitTimeout no matte if they are inside other functions?) So if I want to change the default WaitTimeout only for a single findAll op, I should use two setAutoWaitTimeout, one before, and another after the findAll op, Iam right? is this the only way? isn't anything like... if exist (Img, 0.2): #where 0.2 is the wait time and can be changed but applied to findAll? 2) Another trick that I would like to achieve is... How can I wait for an Image (eg. RedStartImg) but sometimes there is already a RedStartImg in the screen and it will appear a second one, How can I wait for that second RedStartImg? sometimes there are two RedStartImg and it will appear a third one, some times there is None and it will appear one, How can I wait for Image in that case? I know that Image takes to appear from 0.5 to 2 secs. Thanks Advanced. -- 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 #267725]: change findAll WaitTimeout individually, and Wait for Duplicated or Not Img
Question #267725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267725 Description changed to: Hi community, I have kinda two questions, but are related to the same script. 1) I would like to change the default WaitTimeout of a single findAll I know Settings.AutoWaitTimeout = (seconds) can change the default WaitTimeout in all the script (I don't know why everytime I have tested it, it only applies from the second time I run my script on, the first time I run the script the WaitTimeout remain to the defult value 3secs despite Settings.AutoWaitTimeout is set to 0) I know also setAutoWaitTimeout = (seconds) set the maximum waiting time for all subsequent find operations. (no matter if I put this action inside a function? other findAll op will change its WaitTimeout no matte if they are inside other functions?) So if I want to change the default WaitTimeout only for a single findAll op, I should use two setAutoWaitTimeout, one before, and another after the findAll op, Iam right? is this the only way? isn't anything like... if exist (Img, 0.2): #where 0.2 is the wait time and can be changed but applied to findAll? 2) Another trick that I would like to achieve is... How can I wait for an Image (eg. RedStartImg) but sometimes there is already a RedStartImg in the screen and it will appear a second one, How can I wait for that second RedStartImg? sometimes there are two RedStartImg and it will appear a third one, some times there is None and it will appear one, How can I wait for that RedStartImage in this case? I know that RedStartImage takes to appear from 0.5 to 2 secs. Thanks Advanced. -- 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 #147764]: if not found image skip to --- use exists() instead of find()
Question #147764 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/147764 eduardobedoya posted a new comment: Hi RaiMan I was looking at this question cuz I needed to script something like... if image not found then... so, Im jut wondering, Can I use a code like this... if exists(logout-image, 3)) #wait 3 seconds click(getLastMatch()) #if exists click on it if not but then how can I determine what happens if logout-image doesn't exist? else?? Thanks Advanced. -- 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 #147764]: if not found image skip to --- use exists() instead of find()
Question #147764 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/147764 eduardobedoya posted a new comment: Hi RaiMan I was looking at this question cuz I needed to script something like... if image not found then... so, Im jut wondering, Is there a way to do something like this??? print A print B if exists(logout-image, 3)) #wait 3 seconds click(getLastMatch()) #if exists click on it print C print D where: print ABCD mean the workflow so if logout-image doesn't exist then do not continue with print C, print D, but instead... App.setClipboard(image not found) exit() This can only be achieve with try except right?? Im just curious about this particular syntax Thanks Advanced. -- 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 #147764]: if not found image skip to --- use exists() instead of find()
Question #147764 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/147764 eduardobedoya posted a new comment: Hi RaiMan I was looking at this question cuz I needed to script something like... if image not found then... so, Im jut wondering, Is there a way to do something like this??? print A print B if exists(logout-image, 3)) #wait 3 seconds click(getLastMatch()) #if exists click on it print C print D where: print ABCD mean the workflow so if logout-image doesn't exist then do not continue with print C, print D, but instead... App.setClipboard(image not found) exit() This can only be achieve with try: except right?? or it can also be achieve with the if exists syntax? I just was curious about this particular syntax Thanks Advanced. -- 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 #267500]: If image not found, set clipboard to img not found
New question #267500 on Sikuli: https://answers.launchpad.net/sikuli/+question/267500 Hi, Currently Im using... reg.click(Image) (if image doesn't appear within default wait stop script) and reg.wait(Image, 9) (if image doesn't appear within 9 seconds stop script) I remember the default wait was about 3 seconds How can I tell sikuli that if image doesn't appear set clipboard as image not found and only then stop script I have used... try: reg.click(Image) except App.setClipboard(image not found) which is the best way to achieve this? thanks advanced. -- 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 #267500]: If image not found, set clipboard to img not found
Question #267500 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267500 Description changed to: Hi, Currently Im using... reg.click(Image) (if image doesn't appear within default wait time stop script) and reg.wait(Image, 9) (if image doesn't appear within 9 seconds stop script) I remember the default wait was about 3 seconds How can I tell sikuli that if image doesn't appear set clipboard as image not found and only then stop script I have used... try: reg.click(Image) except App.setClipboard(image not found) which is the best way to achieve this? thanks advanced. -- 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 #267500]: If image not found, set clipboard to img not found
Question #267500 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267500 Description changed to: Hi, Currently Im using... reg.click(Image) (if image doesn't appear within default wait time stop script) and reg.wait(Image, 9) (if image doesn't appear within 9 seconds stop script) I remember the default wait was about 3 seconds How can I tell sikuli that if image doesn't appear set clipboard as image not found and only then stop script, (it's necessary to stop script after clipboard change) I have used... try: reg.click(Image) except App.setClipboard(image not found) which is the best way to achieve this? thanks advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or would take to much loops or variables so it may not be worth doing. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or it would take to much loops-variables to do it, so it may not be worth doing. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
New question #266392 on Sikuli: https://answers.launchpad.net/sikuli/+question/266392 Is it possible to wait for an image 9secs OR at least wait for 2 secs in total I mean sometimes the image appears in 0secs, then I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, so, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, so, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this cuz wait is inside a function that I have to repeat several times. Is this kinda easy to achieve? Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear provided (if it takes longer than 2secs) or 2secs in total. I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear provided that the wait time is equal or longer than 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or it would take to much resource usage, so it may not be worth doing. Thanks Advanced. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 eduardobedoya posted a new comment: In python there is a special function you can use... dir() it shows all functions and variables that are store in a py file I have notice that in Sikuli if I type... dir() doesn't show anything, however if I type... print dir() it shows a lot of variables, I guess those are sikuli system variables. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 eduardobedoya posted a new comment: In python there is a special function you can use... dir() it shows all functions and variables that are store in a py file I have notice that in Sikuli dir() doesn't show anything, if I type... print dir() it shows a lot of variables, I guess those are sikuli system variables. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 eduardobedoya gave more information on the question: Sorry, I just don't get it I have read this part... isinstance(object, classinfo) I read the paragraphs that talk about Local n Global but it doesn't provide examples what parameters have to be put in 'object, classinfo' in here... isinstance(object, classinfo)??? Sorry isn't there any other tutorial site with examples? That part off manual talks about tuples, clasess. I have read some about those, but, for the moment I just use variables n lists, and I would like to check its values when running sikuli, and tell when something is a string, or an integer, or a list, in order to test. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Solved = Open eduardobedoya is still having a problem: Sorry, I just don't get it I have read this part isinstance(object, classinfo) I read paragraph with Local n Global but it doesn't provide examples what parameters have to be put in object, classinfo in here... isinstance(object, classinfo)??? Sorry isn't there any other tutorial site with examples? It is just that that part off manual talks about tuples, clasess I have read some about those, for the moment I just use variables n lists, and I would like to check its values when running sikuli, and tell when something is a string, or an integer, or a list, in order to test. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 eduardobedoya posted a new comment: tahnks so much RaiMan! -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya gave more information on the question: But RaiMan you are setting Names =''' name1 name2 name3 ''' an then with simply using... namelist = names.split()[0:] printout: ['name1', 'name2', 'name3'] shure, it works fine, but In my case, I receive the name1, name2, name3 from clipboard, and so I use Names = App.getClipboard(); in order to store all names in Names variable but doing so, I don't know why, my Names variable is different than the Names variable you are setting your Names var Names ='''name1, name2, name3 ''' if you print them they seem the same, but when doing the split both have different results So when I use namelist = names.split()[0:] I get... [u'name1', u'name2', u'name3'] How I can get a variable like the one that you set? I guess the variable I have is not a multine variable, but a string with many carriage returns Also I have tried using regex in order to simply remove the \r\n from my Names variable newNames = re.sub(r\r\n, , Names) why is that??? please tell me, how can I remove the \r\n (new lines) form my clipboard, Iam stuck with this THanks Advanced. -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya gave more information on the question: I would like to convert Names into... 'corazona', 'Pebleo00', 'cofriasd', 'paflio', cuz there is another list that I need to compere it to... Names2 = ['corazona', 'paflio'] using... NamesSelected = [i for i, v in enumerate(Names) if v not in Names2] if I compare the clipboard as it is, I get an unespected result, How could I convert this unicode string enconced in utf-8 into 'corazona', 'Pebleo00', 'cofriasd', 'paflio', Thanks Advanced. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Solved = Open eduardobedoya is still having a problem: Is there any way to display all current variables values in IDLE, I could swear I saw something like that in a Python Tutorial, Ijust can recall. Thanks Advanced. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Answered = Open eduardobedoya is still having a problem: Sometimes you store a list as a string in order to apply regex to it, but then how you realize if it is string or a list also I watched in some Tutorial, someway to display all the values of the current variables in screen. I have tried to read this... http://stackoverflow.com/questions/836387/how-can-i-tell-if-a-python-variable-is-a-string-or-a-list and this... http://stackoverflow.com/questions/922774/check-if-input-is-a-list-tuple-of-strings-or-a-single-string I just cant get them to work. Could RainMan you please suggest a link??? -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 eduardobedoya gave more information on the question: Sometimes you store a list as a string in order to apply regex to it, but then how you realize if it is string or a list also I watched in some Tutorial, someway to display all the values of the current variables in screen. Is it possible to have a kinda variable values check in sikuli? I have tried to read this... http://stackoverflow.com/questions/836387/how-can-i-tell-if-a-python-variable-is-a-string-or-a-list and this... http://stackoverflow.com/questions/922774/check-if-input-is-a-list-tuple-of-strings-or-a-single-string I just cant get them to work. Could RainMan you please suggest a link??? -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 Status: Answered = Open eduardobedoya is still having a problem: How can I use it as a list of strings/? -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya gave more information on the question: I have remove the newlines from my Names variable using... newNames= re.sub(r(?m)(\n), , Names) so I get... name1 name2 name3 but, still when I do... namelist = names.split()[0:] I get... [u'name1', u'name2', u'name3'] So I guess the matter is that the clipboard is in utf-8 How can I change it please any hint -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya posted a new comment: Thanks Rainman, currently Im reading this https://docs.python.org/2/library/string.html?highlight=split#string.split do you suggest another better tutorial? 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya posted a new comment: solved using this... s= u'£10' s.encode('utf8') I know its said taht the u is purely used to let you know it's a unicode string in the representation, that it will not affect the string itself, that unicode strings work exactly as normal strings. But this is not the case in Sikuli xD I could not leave it as unicode string because of the reason explained in my comment above. There is an special python manual for Sikuli purposes xD -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya posted a new comment: solved using this... s= u'£10' s.encode('utf8') I know its said taht the u is purely used to let you know it's a unicode string in the representation, that it will not affect the string itself, that unicode strings work exactly as normal strings. But this is not the case in Sikuli xD I could not leave it as unicode string because of the reason explained above. There is an special python manual for Sikuli purposes xD -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 Status: Solved = Open eduardobedoya is still having a problem: But RaiMan you are setting Names =''' name1 name2 name3 ''' an then with simply using... namelist = names.split()[0:] printout: ['name1', 'name2', 'name3'] shure, it works fine, but In my case, I receive the name1, name2, name3 from clipboard, and so I use Names = App.getClipboard(); in order to store all names in Names variable but doing so, my Names variable is very different than the Names you are setting Names ='''name1, name2, name3 ''' So when I use namelist = names.split()[0:] I get... [u'name1', u'name2', u'name3'] How I can get a variable like the one that you set? I guess the variable I have is not a multine variable, but a string with many carriage returns Also I have tried using regex in order to simply remove the \r\n from my Names variable newNames = re.sub(r\r\n, , Names) why is that??? please tell me, how can I remove the \r\n (new lines) form my clipboard, Iam stuck with this THanks Advanced. -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 Status: Open = Solved eduardobedoya confirmed that the question is solved: solved using this... s= u'£10' s.encode('utf8') I know its said taht the u is purely used to let you know it's a unicode string in the representation, that it will not affect the string itself. But I could not leave it as unicode string because the reason explained above. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
Question #265864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265864 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 eduardobedoya gave more information on the question: I would like to convert Names into... 'corazona', 'Pebleo00', 'cofriasd', 'paflio', cuz I have another list that I need to compere it to Names2 = ['corazona', 'paflio'] NamesSelected = [i for i, v in enumerate(Names) if v not in Names2] How could I convert this unicode string enconced in utf-8 into 'corazona', 'Pebleo00', 'cofriasd', 'paflio', Thanks Advanced. -- 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 #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?
New question #265864 on Sikuli: https://answers.launchpad.net/sikuli/+question/265864 I would like to check if variable is a string or a list, or etc in Sikuli? I mean variables that are currently been used in the IDLE. Thanks Advanced. -- 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 #265768]: How can I move mouse to X, Y values in screen, and also to X, Y values relative to the current mouse position?
Question #265768 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265768 Status: Answered = Open eduardobedoya is still having a problem: I tried this... hover(1000, 1000) but I got the error... [error] TypeError ( hover(): expected 0-1 args; got 2 ) -- 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 #265776]: Is it possible to join a multiline string using python regex in Sikuli??
Question #265776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265776 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks Eugene S, that solved my question. -- 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 #265768]: How can I move mouse to X, Y values in screen, and also to X, Y values relative to the current mouse position?
Question #265768 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265768 Status: Open = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #265768]: How can I move mouse to X, Y values in screen, and also to X, Y values relative to the current mouse position?
Question #265768 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265768 eduardobedoya gave more information on the question: Sorry already solved is mouseMove(x, y) I was trying hover (x, y) -- 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 #265794]: Is there a way to tell Sikuli to wait until clipboard context change?
Question #265794 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265794 Status: Answered = Open eduardobedoya is still having a problem: Thanks Raiman So there is not other way to do this right? I thought I read something about JAVA script to get clipboard changes, that could be used in Sikuli PD: yes RaiMan, Im having a pain finding logic names to variables eg. matches allMatches sortedAllMatches etc 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