[Sikuli-driver] [Question #685803]: Bundle files inside executable Jar
New question #685803 on Sikuli: https://answers.launchpad.net/sikuli/+question/685803 Hello.! I have created a simple JFrame with an image background in Sikuli IDE 1.3. My script is called test.sikuli and it is inside a folder called "test". The image I use for background is inside the folder "test". My problem is when I export to jar runnable from Sikuli IDE, the image background for the JFrame is not bundle inside the Jar. I even add the background image to the folder where sikuli api is but still not bundle inside the Jar. Can you give me an example of how I bundle this image inside the jar.? thanks..! -- 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 #675874]: Slow mouse move even with Settings.MoveMouseDelay=0
Question #675874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675874 Description changed to: -Im on java 11 java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode) -MacOS 10.13.6 -1.1.3 SikuliX Even with Settings.MoveMouseDelay=0 mouse movement is slow. If i change Settings.MoveMouseDelay=3 its working and goes slow as it supposed but with 0 its not fast. When it was going fast, with 3 points of region was super fast... I mean it was making a blur the cursornow i can see the points it goes... I run it from ide and from export jar... still the same.. any suggestion? the simple test: Settings.MoveMouseDelay = 0 ao = Region(304,159,1,1) a1 = Region(294,406,1,1) a2 = Region(327,627,1,1) a3 = Region(373,784,1,1) while True: ao.click() a1.click() a2.click() a3.click() -- 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 #675874]: Slow mouse move even with Settings.MoveMouseDelay=0
New question #675874 on Sikuli: https://answers.launchpad.net/sikuli/+question/675874 -Im on java 11 java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode) -MacOS 10.13.6 -1.1.3 SikuliX Even with Settings.MoveMouseDelay=0 mouse movement is slow. If i change Settings.MoveMouseDelay=3 its working and goes slow as it supposed but with 0 its not fast. When it was going fast, with 3 points of region was super fast... I mean it was making a blur the cursornow i can see the points it goes... I run it from ide and from export jar... still the same.. any suggestion? -- 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 #675874]: Slow mouse move even with Settings.MoveMouseDelay=0
Question #675874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675874 Description changed to: -Im on java 11 java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode) -MacOS 10.13.6 -1.1.3 SikuliX Even with Settings.MoveMouseDelay=0 mouse movement is slow. If i change Settings.MoveMouseDelay=3 its working and goes slow as it supposed but with 0 its not fast. When it was going fast, with 3 points of region was super fast... I mean it was making a blur the cursornow i can see the points it goes... I run it from ide and from export jar... still the same.. any suggestion? the simple test: Settings.MoveMouseDelay = 0 ao = Region(304,159,1,1) a1 = Region(294,406,1,1) while True: ao.click() a1.click() Log on ide: [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (73 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (110 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (107 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (109 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (108 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (106 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (107 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (100 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (98 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (100 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (106 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (108 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (99 msec) -- 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 #675874]: Slow mouse move even with Settings.MoveMouseDelay=0
Question #675874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675874 Description changed to: -Im on java 11 java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode) -MacOS 10.13.6 -1.1.3 SikuliX Even with Settings.MoveMouseDelay=0 mouse movement is slow. If i change Settings.MoveMouseDelay=3 its working and goes slow as it supposed but with 0 its not fast. When it was going fast, with 3 points of region was super fast... I mean it was making a blur the cursornow i can see the points it goes... I run it from ide and from export jar... still the same.. any suggestion? the simple test: Settings.MoveMouseDelay = 0 ao = Region(304,159,1,1) a1 = Region(294,406,1,1) a2 = Region(327,627,1,1) a3 = Region(373,784,1,1) while True: ao.click() a1.click() a2.click() a3.click() Log on ide: [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (73 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (110 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (107 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (109 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (108 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (106 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (107 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (103 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (104 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (100 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (98 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (100 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (106 msec) [log] CLICK on L(304,159)@S(0)[0,0 2560x1440] (108 msec) [log] CLICK on L(294,406)@S(0)[0,0 2560x1440] (99 msec) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1749262] Re: [1.1.2] Java9: IDE: Warnings illegal reflective access operation --- have to be accepted, not a problem
Im on 10.13.6, java 10. sikuli 1.4 and get this: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.python.core.PySystemState (file:/Applications/Gate.app/model.jar) to method java.io.Console.encoding() WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1749262 Title: [1.1.2] Java9: IDE: Warnings illegal reflective access operation --- have to be accepted, not a problem Status in Sikuli: In Progress Bug description: - comment this kind of warnings have to be accepted - they cannot be switched off. earliest with Java 10 later this year, it might get a problem. I will only fix things, that prevent THE USE of SikuliX with Java 9. These warnings do not prevent the usage of SikuliX. -- on Mac: - running SikuliX: ./SikuliX.app/Contents/Java/sikulix.jar [error] RunTimeINIT: * BE AWARE: Running on Java 9 - Please report problems * [info] HotkeyManager: add Capture Hotkey: ⌘+⇧ 2 (50, 5) [info] HotkeyManager: add Abort Hotkey: ⌘+⇧ C (67, 5) WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.sikuli.ide.CloseableModernTabbedPaneUI (file:/Users/xx/sikulix/SikuliX.app/Contents/Java/sikulix.jar) to constructor javax.swing.plaf.basic.BasicTabbedPaneUI$Actions(java.lang.String) WARNING: Please consider reporting this to the maintainers of org.sikuli.ide.CloseableModernTabbedPaneUI WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release on Windows: --- [error] RunTimeINIT: * BE AWARE: Running on Java 9 - Please report problems * WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.sikuli.script.RunTime (file:/E:/p-tools/sikulix/sikulix.jar) to field java.lang.ClassLoader.usr_paths WARNING: Please consider reporting this to the maintainers of org.sikuli.script.RunTime WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1749262/+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 #672521]: Save file (JfileChooser) problem
Question #672521 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/672521 Status: Answered => Solved spyros-liakos confirmed that the question is solved: Ok thanks... the code was correct... I was missing something in the rest of my code.. -- 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 #672521]: Save file (JfileChooser) problem
New question #672521 on Sikuli: https://answers.launchpad.net/sikuli/+question/672521 Hello... I got this code: choose_save_file = JFileChooser() ret_save = choose_save_file.showSaveDialog(None) if ret_save == JFileChooser.APPROVE_OPTION: save_select = choose_save_file.getSelectedFile() file_path = save_select.getAbsolutePath() file_directory = save_select.getCanonicalPath() pathios = file_directory final_file_name = File(file_path) file_out = FileOutputStream(final_file_name) When I run it from sikuli ide and I save a file is working.. When I export my jar from sikuli ide option and run it, it's not saving the file.. The same is also for loading a file.. if ret == JFileChooser.APPROVE_OPTION: fileoptions = chooseFile.getSelectedFile() pathios = fileoptions.getAbsolutePath() getProps = Properties() input = FileInputStream(pathios) getProps.load(input) check_collect_a.setText(getProps.getProperty("Test1")) get_check_collect = check_collect_a_enable.getText() check_remove_a_enable.setText(getProps.getProperty("Test2")) get_remove_ = check_remove_a_enable.getText() I read something about policy file but seems not working when I extract my jar.. Please any help? -- 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 #668789]: Assign every Match from findAll to a separate variable
Question #668789 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/668789 Status: Answered => Solved spyros-liakos confirmed that the question is solved: Great thanxns@@@! -- 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 #668789]: Assign every Match from findAll to a separate variable
Question #668789 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/668789 Status: Answered => Open spyros-liakos is still having a problem: Yes but how to store every match x- y in a separate variable?? thats my problem... -- 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 #668789]: Assign every Match from findAll to a separate variable
New question #668789 on Sikuli: https://answers.launchpad.net/sikuli/+question/668789 Hi there.I go this script: #---# Search = Region(100,100,1000,1000) img = "img.png" get_x = 0 get_y = 0 Region.Search.findAll(img) result = Search.getLastMatches() for matches in result: get_x = matches.getX() get_y = matches.getY() print "Found for X: ", get_x print "Found for Y: ", get_y #---# **The log is this which is ok, it founds the images I want! Found for x: 566 Found for y: 294 Found for x: 617 Found for y: 363 Found for x: 484 Found for y: 294 Found for x: 433 Found for y: 363 BUT: I want for every match to store x-y values to a separate variable, so I can manipulate my model... How I can achieve that?? Thanks -- 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 #668702]: Memory consumption
Question #668702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/668702 spyros-liakos gave more information on the question: Sorry I run from command line and I use the python language.. -- 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 #668702]: Memory consumption
Question #668702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/668702 Status: Needs information => Open spyros-liakos gave more information on the question: Java -- 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 #668702]: Memory consumption
New question #668702 on Sikuli: https://answers.launchpad.net/sikuli/+question/668702 Im working on Mac 10.13.4 with sikuli night build 1.1.3 and Java 10 (jre+jdk) It seems that garbage collector is not working well because I have a big project(1+lines) and memory is keep rising over 8 hours...I go for 1g ram consumption and going higher after 12 hours.. any idea??? -- 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 #667668]: Exit Javarunner
Question #667668 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667668 Status: Open => Solved spyros-liakos confirmed that the question is solved: Sorry guys I found it... :) It is: killall java It is very useful to have shell code inside python.. I can deal this way my users login to my application!! -- 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 #667668]: Exit Javarunner
Question #667668 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667668 Description changed to: I have this code inside my python program form Sikuli ide scriptbash = ''' set dialogText to text returned of (display dialog "Provide your Password:" default answer "") return dialogText EOF dialogText=$(osascript -e "$applescriptCode"); if [ -n "$dialogText" ]; then foo="" foo="$dialogText.txt" Status=$(curl -s -o /dev/null -w '%{http_code}' https://test.com/users/passcreated/$foo) if [ $Status -eq 200 ]; then echo "Log[]: Welcome user!" else echo "Log[]: No valid user!" exit 0 fi ''' proc = subprocess.Popen(['/bin/bash'], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdout_output = proc.communicate(scriptbash)[0] print stdout_output #continue to script. When I make it runnable jar and run it everything works except the "exit 0". I can't exit the jar runner no matter what I try..!! You got any suggestion please..? -- 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 #667668]: Exit Javarunner
Question #667668 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667668 Description changed to: I have this code inside my python program from Sikuli ide scriptbash = ''' set dialogText to text returned of (display dialog "Provide your Password:" default answer "") return dialogText EOF dialogText=$(osascript -e "$applescriptCode"); if [ -n "$dialogText" ]; then foo="" foo="$dialogText.txt" Status=$(curl -s -o /dev/null -w '%{http_code}' https://test.com/users/passcreated/$foo) if [ $Status -eq 200 ]; then echo "Log[]: Welcome user!" else echo "Log[]: No valid user!" exit 0 fi ''' proc = subprocess.Popen(['/bin/bash'], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdout_output = proc.communicate(scriptbash)[0] print stdout_output #continue to script. When I make it runnable jar and run it everything works except the "exit 0". I can't exit the jar runner no matter what I try..!! You got any suggestion please..? -- 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 #667668]: Exit Javarunner
New question #667668 on Sikuli: https://answers.launchpad.net/sikuli/+question/667668 I have this code inside my python program form Sikuli ide scriptbash = ''' set dialogText to text returned of (display dialog "Provide your Password:" default answer "") return dialogText EOF dialogText=$(osascript -e "$applescriptCode"); if [ -n "$dialogText" ]; then foo="" foo="$dialogText.txt" Status=$(curl -s -o /dev/null -w '%{http_code}' https://test.com/users/passcreated/$foo) if [ $Status -eq 200 ]; then echo "Log[]: Welcome user!" else echo "Log[]: No valid user!" exit 0 fi ''' proc = subprocess.Popen(['/bin/bash'], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdout_output = proc.communicate(scriptbashpython)[0] print stdout_output #continue to script. When I make it runnable jar and run it everything works except the "exit 0". I can't exit the jar runner no matter what I try..!! You got any suggestion please..? -- 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 #665147]: Print python to Java swing window
Question #665147 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665147 Status: Answered => Solved spyros-liakos 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 #665147]: Print python to Java swing window
Question #665147 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665147 spyros-liakos posted a new comment: Can you give simply practical example for your #1 comment Thanks -- 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 #665147]: Print python to Java swing window
New question #665147 on Sikuli: https://answers.launchpad.net/sikuli/+question/665147 I can't figure out how I can redirect the print from my python script to swing window... I have already a working swing panel with options for my script. thanx -- 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 #661161]: Convert bool to string
Question #661161 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661161 Status: Answered => Solved spyros-liakos 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
[Sikuli-driver] [Question #661161]: Convert bool to string
New question #661161 on Sikuli: https://answers.launchpad.net/sikuli/+question/661161 def Save_Settings(event): configFile = File("config.properties") inProps = Properties() inProps.setProperty("Member", check_member_enable.isSelected()) outputStream = FileOutputStream(configFile) inProps.store(outputStream, "host setttings") outputStream.close() I get this error: TypeError: setProperty(): 2nd arg can't be coerced to String I try: inProps.setProperty("Member", String.valueOf(check_member_enable.isSelected()) **How can I make this work.. ??? Thank you! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #660498]: Get x,y from onappear
Question #660498 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/660498 Status: Answered => Solved spyros-liakos confirmed that the question is solved: I need a working example to understand how to implement..and get those x,y as a variables... -- 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 #660498]: Get x,y from onappear
New question #660498 on Sikuli: https://answers.launchpad.net/sikuli/+question/660498 Hi there.. This works.. Reg_observe_always = Region(310,92,413,539) p = Pattern("clock.png") m = Reg_observe_always.exists(p,0) x = m.x y = m.y print x print y but when I try on onAppear instead of exists I get nothing -- 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 #631887]: GET VALUE FROM SWING GUI
Question #631887 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/631887 Status: Answered => Solved spyros-liakos 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 #631887]: GET VALUE FROM SWING GUI
Question #631887 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/631887 Description changed to: Hi. I can't get value from swing simple gui to the rest script I think it must be in a different thread but I can't find any working example Can you show me a working example?? *im running throw command line the script My simple code is this: from javax.swing import (JButton, JFrame, JPanel, JCheckBox, JLabel, BoxLayout,WindowConstants) from java.awt import BorderLayout myval = 0 #--- class Mytest(): def tally(event): global myval if checkbox1.isSelected(): myval = 2 else: myval = 3 frame.visible = False #--- frame = JFrame('Test!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE,size = (300, 300)) selectionPanel = JPanel() selectionPanel.layout=BoxLayout(selectionPanel, BoxLayout.Y_AXIS) frame.add(selectionPanel) #--- text = JLabel('-') selectionPanel.add(text) text = JLabel('hello there') selectionPanel.add(text) checkbox1 = JCheckBox('2', selected = False) selectionPanel.add(checkbox1) checkbox2 = JCheckBox('3', selected = False) selectionPanel.add(checkbox2) #--- buttonPanel = JPanel() frame.add(buttonPanel, BorderLayout.SOUTH) button = JButton('ok', actionPerformed = tally) buttonPanel.add(button) frame.visible = True print myval -- 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 #631887]: GET VALUE FROM SWING GUI
Question #631887 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/631887 Description changed to: Hi. I can't get value from swing simple gui to the rest script I think it must be in a different thread but I can't find any working example Can you show me a working example?? *im running throw command line the script My simple code is this: from javax.swing import (JButton, JFrame, JPanel, JCheckBox, JLabel, BoxLayout,WindowConstants) from java.awt import BorderLayout myval = 0 class Mytest(Thread): def tally(event): global myval if checkbox1.isSelected(): myval = 2 else: myval = 3 frame.visible = False frame = JFrame('Test!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE,size = (300, 300)) selectionPanel = JPanel() selectionPanel.layout=BoxLayout(selectionPanel, BoxLayout.Y_AXIS) frame.add(selectionPanel) text = JLabel('-') selectionPanel.add(text) text = JLabel('hello there') selectionPanel.add(text) checkbox1 = JCheckBox('2', selected = False) selectionPanel.add(checkbox1) checkbox2 = JCheckBox('3', selected = False) selectionPanel.add(checkbox2) buttonPanel = JPanel() frame.add(buttonPanel, BorderLayout.SOUTH) button = JButton('ok', actionPerformed = tally) buttonPanel.add(button) frame.visible = True print myval -- 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 #631887]: GET VALUE FROM SWING GUI
New question #631887 on Sikuli: https://answers.launchpad.net/sikuli/+question/631887 Hi. I can't get value from swing simple gui to the rest script I think it must be in a different thread but I can't find any working example Can you show me a working example?? *im running throw command line the script My simple code is this: from javax.swing import (JButton, JFrame, JPanel, JCheckBox, JLabel, BoxLayout,WindowConstants) from java.awt import BorderLayout checkbox1 = 0 myval = 0 class Mytest(Thread): def tally(event): global myoption global checkbox1 if checkbox1.isSelected(): myval = 2 else: myval = 3 frame.visible = False frame = JFrame('Test!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE,size = (300, 300)) selectionPanel = JPanel() selectionPanel.layout=BoxLayout(selectionPanel, BoxLayout.Y_AXIS) frame.add(selectionPanel) text = JLabel('-') selectionPanel.add(text) text = JLabel('hello there') selectionPanel.add(text) checkbox1 = JCheckBox('2', selected = False) selectionPanel.add(checkbox1) checkbox2 = JCheckBox('3', selected = False) selectionPanel.add(checkbox2) buttonPanel = JPanel() frame.add(buttonPanel, BorderLayout.SOUTH) button = JButton('ok', actionPerformed = tally) buttonPanel.add(button) frame.visible = True print myval -- 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 #461129]: [1.1.1] macOS 10.12.3: mouseDown suddenly stoped working correctly
Question #461129 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/461129 spyros-liakos posted a new comment: Ok. Thank you. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #461129]: mouseDown suddenly stoped working correctly
New question #461129 on Sikuli: https://answers.launchpad.net/sikuli/+question/461129 last nightly version stimuli 1.1.1 java se 8 (121) mac osx 10.12.3 --- Yesterday I got this: thumbnailRight = Region(1255,456,1,1) placeholderRight = Region(802,84,1,1) hover(thumbnailRight) mouseDown(Button.LEFT) Settings.MoveMouseDelay = 2 wait(0.5) mouseMove(placeholderRight) mouseUp() and it was painting a line in photoshop and while it was dragging the line you can see the line in real time.. *After the update on Java, go the mouse to start point, it goes to the end point, and after that you see the line gradually paint. *The weird think is that on another mac 10.10.2 with sikuli nightly 2016 11.10(i think) and java se 8(121) it works just fine!!! Whatever i try i can't figure out... I even delete all and reinstall it everything...still the same lag.! any suggestions? -- 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 #404461]: Create multiple check boxes popup dialog box --- use mixed-in Java code
Question #404461 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404461 Status: Answered => Solved spyros-liakos confirmed that the question is solved: Thank you.. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #404461]: Create multiple check boxes popup dialog box
New question #404461 on Sikuli: https://answers.launchpad.net/sikuli/+question/404461 Hello. Is there any way to create multiple checkboxes in one popup dialog box?? -- 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 #404238]: [1.1.0+] HowTo use Region.observe()
Question #404238 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404238 spyros-liakos posted a new comment: Hello again.. Now a new problem born... I left the script to play for about 7 hours and in 5th hour the observe stoped working...All the other moves work correctly but the observe stoped... Why stoped working -- 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 #404001]: stopObserver() doesn't work
Question #404001 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404001 spyros-liakos posted a new comment: Finally got this work out!! regblueline = Region(602,315,100,150) regblueline = JRegion(regblueline) clicktoavoiderrordone = Region(1280,95,2,2) count = False popupcoc = "error1.png" popupcoca = "error2.png" def handler(event): global count count = True wait(2) print("#Observe Error") clicktoavoiderrordone.click() print("con") event.repeat(2) return count regblueline.onAppear(Pattern("error1.png").exact(),handler) regblueline.onAppear(Pattern("error2.png").exact(),handler) regblueline.observeInBackground(FOREVER) Got NO errors, observeinbackgronnd works fine...and the handler returns with success..!! So the trick to observe in background always is this on 1.1.1 Thank you!!! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #404238]: Error Observe sikuli 1.1.1
New question #404238 on Sikuli: https://answers.launchpad.net/sikuli/+question/404238 Hello. With sikulix 1.1.0 api i was success run this: def handler(event): global count count = True wait(2) print("#Observe Error") clicktoavoiderrordone.click() event.stopObserver() regblueline.observe() return count regblueline.onAppear(Pattern("error2.png").exact(),handler) regblueline.onAppear(Pattern("error1.png").exact(),handler) regblueline.observe(background = true) #--- But now when i use the sikulix1.1.1 the latest you got on the site (yesterday downloaded) api i get this error:: File "/Users/mintekrec/Library/Application Support/Sikulix/Lib/sikuli/Region.py", line 63, in observe return self.observe(waitTime); RuntimeError: maximum recursion depth exceeded (Java StackOverflowError) Any hel please? -- 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 #403943]: Stable increasing memory - Hang script!!
Question #403943 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403943 Description changed to: Hello.! I got a stable increasing memory.It starts the script from 400mb ram and in 4hours increased to 2,50gb ram and then hangs the Mac. for tt in range(150): if count == 0: Model() else: ModelSolver() count = 0 continue -- 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 #403943]: Stable increasing memory - Hang script!!
Question #403943 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403943 Status: Answered => Open spyros-liakos is still having a problem: - In 2 hours i get the same amount of memory: 1,25gb and keep increasing What i noticed is,, when the loop starts from the begin and goes here: if onceplay == True: print("#Waiting Soldiers to Complete...") while True: if findtroopsfull.exists(Pattern(campsfull).exact()): break else: if count == 1: return count continue memory gets increased e.x from 650mb to 720mb!!! then all the script is executed with a very small of amount e.x 1-2mb and when it comes back to the start the loop we got the same (memory gets increased e.x from 650mb to 720mb!!!) - I have even try to brake the script to functions but still the same. -- 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 #403943]: Stable increasing memory - Hang script!!
Question #403943 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403943 spyros-liakos posted a new comment: Ok. -- 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 #403943]: Stable increasing memory - Hang script!!
Question #403943 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403943 spyros-liakos posted a new comment: 1.1.0 -- 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 #403943]: Stable increasing memory - Hang script!!
New question #403943 on Sikuli: https://answers.launchpad.net/sikuli/+question/403943 Hello.! I got a stable increasing memory.It starts the script from 400mb ram and in 4hours increased to 2,50gb ram and then hangs the Mac. The mac has 4gb ram and 10.10 osx. I run script from command this: java -jar ~/Desktop/Myapp/sikulixapi.jar -r ~/Desktop/Myapp/test.sikuli I believe its not the JVM but set in the code..please help!!! Here is the script: #-Detecting Os - Specifications---# from org.sikuli.natives import Vision Vision.setParameter("MinTargetSize", 6) # the default is 12. Settings.ActionLogs=0 Settings.InfoLogs=0 Settings.DebugLogs=0 myos = Settings.isMac() if myos == True: print("#Detected Mac OSX...START") else: popup("#Not detected Mac..EXIT") exit() regblueline = Region(602,315,100,150) #βρικει την μπλε γραμμη του error clicktoavoiderrordone = Region(1280,95,2,2) #παταει επανω δεξια για ασφαλεια clickendbattle = Region(111,582,36,20) #κουμπι κλικ για endbattle κοκκινο και end για error findtroopsfull = Region(56,136,50,50) #reg για αν γεμισαν τα troops tabtraintroops = Region(480,100,2,2) #reg για το tab_traintroops soldierreg = Region(100,460,50,50) #reg για να προσθεσει η να τσεκαρει troops regclosetroops = Region(1200,90,2,2) #reg για να κλεισει το παραθυρο troops ολο arm = Region(181,88,35,26) #reg για να παει στο tab_army swordreg = Region(50,580,2,2) #reg για να πατησει το σπαθι btnhome = Region(638,674,23,25) #reg για το κουμπι returnhome-τελιωσε η μαχη screenok = Region(1196,455,81,80) #reg για αν ειμαστε στην αρχικη οθονη regfindloot = Region(142,152,43,18) #reg για να βρει το καταλληλο loot nextfindbattlebtn = Region(1110,560,2,2) #reg για να κλικ σε επομενη αναζητηση βασης regmap = Region(90,690,2,2) #reg παταει στον χαρτη για επιθεση findmatchbtn = Region(300,598,2,2) #reg παταει στο κουμπι find-match attackreg = Region(173,67,920,570) #η περιοχη που ψαχνει για τα σημεια collect = Region(105,125,980,570) #reg για το collect στην αρχη #__Variables Attack_Find_Red_Points START# count = 0 FindLoot = "FindLootBattleV1.png" FastClickPoint = "1476737265836.png" campsfull = "1476660328402.png" onceplay = False popupcoc = "wifierrorcircle.png" popupcoca = "bluelineerror.png" OriginalBaseFind = "originalbasedone.png" Returnhomeendbattle = "Returnhomeendbattle.png" Endbattle = "Endbattle.png" blacksold = "blacksoldier.png" Surrender = "surrender.png" import random random.seed() #αποθηκευουμε τις συντεταγμενες των σημειων Apointattack = "" Bpointtattack = "" Cpointattack = "" Dpointattack = "" Epointattack = "" Fpointattack = "" ## #αν ειναι ισο η πανω απο 3 σημεια κανε επιθεση αλλιως ειναι false goforattack = True #τα δειγματα για τα σημεια Redpoint1 = "red1.png" Redpoint2 = "red2.png" Redpoint3 = "red3.png" RedPoint4 = "RedPoint4.png" RedPoint5 = "RedPoint5.png" RedPoint6 = "RedPoint6.png" ## #<--THE OBSERVE OPERATION> def handler(event): global count count = 1 wait(2) print("#Observe Error") clicktoavoiderrordone.click() #κλικ βασικο σφαλματος wait(2) event.stopObserver() regblueline.observe() return count regblueline.onAppear(Pattern("bluelineerror.png").exact(),handler) regblueline.onAppear(Pattern("wifierrorcircle.png").exact(),handler) regblueline.observe(background = True) #--START--# def Model(): global count while True: if screenok.exists(Pattern(OriginalBaseFind).exact()): clicktoavoiderrordone.click() print("#Starting the program...") break else: print("Waiting for the Original Base...") clicktoavoiderrordone.click() #κλικ βασικο σφαλματος wait(5) continue #<<---CREATE->># #print("#Prepare for Building") wait(0.5) clicktoavoiderrordone.click() wait(1) keyDown(Key.CMD) wheel(WHEEL_UP, 30) keyUp() wait(1) rnmtime = random.randint(2, 5) wait(rnmtime) wait(1) wait(0.1) swordreg.click() if count == 1: return count while True: wait(0.4) if findtroopsfull.exists(campsfull,0): print("#Base is Full...") rnmtime = random.randint(1, 2) wait(1) tabtraintroops.click() if count == 1: return count wait(1) if soldierreg.exists(Pattern(blacksold).similar(0.95)): wait(1) #regclosetroops.hover() regclosetroops.click() if count == 1: return count else: if count == 1: return count soldierreg.hover() mouseDown(Button.LEFT) wait(4) hover(FastClickPoint) mouseUp() wait(1)
Re: [Sikuli-driver] [Question #403018]: Pass value from handler (on appear) to main script
Question #403018 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403018 Status: Answered => Solved spyros-liakos confirmed that the question is solved: Im done!! Thank you!!! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #403018]: Pass value from handler (on appear) to main script
Question #403018 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/403018 Status: Needs information => Open spyros-liakos gave more information on the question: Thanks for replying..! I want to observe always for an error popup in the program i use. The error is a internet connection error. If this happen i know how to wait and solve it. But then i want the script to start from the begin.. For example i got this: def start(): click("start.png") def play(): click("play.png") def finish(): click("close.png") #begin the script for x in range(100) if error = True: finish() start() if error = True: finish() play() if error = True: finish() finish() #the observe always def handler(): error = True #some function to solve the error onAppear("error.png", handler) observe(FOREVER) while True: observe() My think is to have an "if" before every function and if value "error = True" will pass all functions and start from the begin of the loop. -- 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 #403018]: Pass value from handler (on appear) to main script
New question #403018 on Sikuli: https://answers.launchpad.net/sikuli/+question/403018 Hello and really thanks for support.!! Im trying to get the value from the handler to my main script. So when an observe is happen i can send my script flow to any direction The philosophy is to catch errors while the script is running and if so to call specific functions. *Im not a great programmer thats why i'v been stuck.. and need help please... :) My code: #functions popup def p1(): popup("hi1") def p2(): popup("h2") def p3(): popup("h3") def p4(): popup("h4") def p5(): popup("h5") #check if handler is activated if myvar == 22: p5() else: p1() #handel for onappear def handler(): myvar = 11 #onappear method onAppear("CalcImage.png", handler) observe(FOREVER) while True: observe() The error ofcource: [error] NameError ( name 'myvar' is not defined ) *Working on Sikuli 1.1.0 -- 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