found image but clicks somewhere els

Bug #2067220 reported by Tom Weda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
New
Undecided
Unassigned

Bug Description

Hi,

Im using:
Windows 11 home 23H2
on a HP omen laptop
    64-bits besturingssysteem, x64-processor

sikulixide-2.0.5
java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)

im running sikuliX as ADMIN

When ill try to do something like this:
"

if anvin.exists("1716749859488.png", 30):
    click()
"

it found the image but when it needs to click its on a diffrent place(middle screen).

here the debug:
C:\Windows\System32>java -jar C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar -v -c
[DEBUG]startUp: IDE: Running: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar
[DEBUG]startUp: IDE: AppData: C:\Users\tomwe\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting with classpath: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar ...
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[143 debug] RunTime:temp folder ok: C:\Users\tomwe\AppData\Local\Temp\Sikulix_1639043226
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\tomwe\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 API
user.home: C:\Users\tomwe
work dir: C:\Windows\System32
running on Windows 10.0 from a jar
running Java Oracle Corporation 22.0.1+8-16
java.io.tmpdir: C:\Users\tomwe\AppData\Local\Temp
app data folder: C:\Users\tomwe\AppData\Roaming\Sikulix
executing jar: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar
*** classpath dump sikulix
  0: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[27 debug] Sikulix: starting IDE
[46 debug] RunTime:temp folder ok: C:\Users\tomwe\AppData\Local\Temp\Sikulix_1778909180
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\tomwe\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 IDE
user.home: C:\Users\tomwe
work dir: C:\Windows\System32
running on Windows 10.0 from a jar
running Java Oracle Corporation 22.0.1+8-16
java.io.tmpdir: C:\Users\tomwe\AppData\Local\Temp
app data folder: C:\Users\tomwe\AppData\Roaming\Sikulix
executing jar: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar
*** classpath dump sikulix
  0: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar
*** classpath dump end
***** show environment end
[121 debug] IDE: running with Locale: nl_NL
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[132 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[214 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[214 debug] IDE: Init ScriptingSupport
[216 debug] IDESupport: enter
[1604 debug] Runner: added: PackedSikulix [zip] application/zip
[1605 debug] Runner: added: PackedSikulix [skl] text/skl
[1606 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[1606 debug] Runner: added: Text [txt] text/text
[1611 debug] Runner: added: Jython [py] text/jython
[1612 debug] Runner: added: SikulixJar [jar] text/jar
[1612 debug] Runner: added: Sikulix [] directory/sikulix
[1613 debug] Runner: added: NetworkRunner [] NET
[1613 debug] Runner: added: PowerShell [ps1] text/powershell
[1613 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
[1613 debug] IDESupport: added: Jython
[1614 debug] IDESupport: added: Text
[1614 debug] IDESupport: exit: defaultrunner: Jython (py)
[1616 debug] IDE: Reading Preferences
[1617 debug] IDE: Adding components to window
[1627 debug] IDE: [I18N] menuRecent
[1638 debug] IDE: [I18N] menuToolAndroid
[1640 debug] IDE: creating tabbed editor
[1694 debug] IDE: creating message area
[1744 debug] IDE: creating combined work window
[1747 debug] IDE: Putting all together
[1749 debug] IDE: Putting all together - after main pane
[1790 debug] IDE: Putting all together - after toolbar
[1792 debug] IDE: Putting all together - before layout
[1815 debug] IDE: Putting all together - after layout
[1815 debug] IDE: Putting all together - Restore last Session
[1816 debug] IDE: Restore scripts from last session
[1818 debug] IDE: Restore Python script: 2.py
[1824 debug] EditorPane: created 1716754701556
[1831 debug] EditorPane: loadfile: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli\2.py
[1832 debug] JythonRunner: starting initialization
[1849 debug] EditorPane: InitTab: (text/jython)
[1850 debug] SikuliEditorKit.read
[1858 debug] ImagePath: new BundlePath: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli
[1858 debug] EditorPane: setFiles: for: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli\2.py
[1859 debug] EditorPane: checkSource: started (C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli\2.py)
[1868 debug] Screen: initScreens: starting
[1868 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[1870 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[1870 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[1870 debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[1872 debug] Screen: initScreens: monitor mouse check
[1886 debug] Screen: *** checking: R[0,0 1920x1080]@S(0) center: (960, 540) --- OK
[1900 debug] Screen: initScreens: ending
[2111 debug] Image: loaded: 1716713604031.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716713604031.png)
[2112 debug] Image: cached: 1716713604031.png (5 KB) (# 1 KB 5 -- 0 % of 64 MB)
[2114 debug] FileManager: slashify: file: 1716716739135.png
[2117 debug] Image: loaded: 1716716739135.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716716739135.png)
[2118 debug] Image: cached: 1716716739135.png (3 KB) (# 2 KB 8 -- 0 % of 64 MB)
[2120 debug] FileManager: slashify: file: 1716750331087.png
[2123 debug] Image: loaded: 1716750331087.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750331087.png)
[2124 debug] Image: cached: 1716750331087.png (5 KB) (# 3 KB 14 -- 0 % of 64 MB)
[2129 debug] Image: loaded: 1716716964730.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716716964730.png)
[2132 debug] Image: cached: 1716716964730.png (9 KB) (# 4 KB 23 -- 0 % of 64 MB)
[2137 debug] Image: loaded: 1716717125381.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716717125381.png)
[2138 debug] Image: cached: 1716717125381.png (22 KB) (# 5 KB 45 -- 0 % of 64 MB)
[2142 debug] Image: loaded: 1716722620733.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722620733.png)
[2143 debug] Image: cached: 1716722620733.png (10 KB) (# 6 KB 56 -- 0 % of 64 MB)
[2148 debug] Image: loaded: 1716724619520.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716724619520.png)
[2148 debug] Image: cached: 1716724619520.png (1 KB) (# 7 KB 57 -- 0 % of 64 MB)
[2150 debug] Image: reused: 1716722620733.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722620733.png)
[2154 debug] Image: loaded: 1716724257301.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716724257301.png)
[2155 debug] Image: cached: 1716724257301.png (17 KB) (# 8 KB 75 -- 0 % of 64 MB)
[2159 debug] Image: loaded: 1716724317723.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716724317723.png)
[2160 debug] Image: cached: 1716724317723.png (5 KB) (# 9 KB 80 -- 0 % of 64 MB)
[2161 debug] Image: reused: 1716713604031.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716713604031.png)
[2163 debug] FileManager: slashify: file: 1716750958280.png
[2166 debug] Image: loaded: 1716750958280.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750958280.png)
[2167 debug] Image: cached: 1716750958280.png (4 KB) (# 10 KB 84 -- 0 % of 64 MB)
[2168 debug] FileManager: slashify: file: 1716750641059.png
[2172 debug] Image: loaded: 1716750641059.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750641059.png)
[2174 debug] Image: cached: 1716750641059.png (4 KB) (# 11 KB 89 -- 0 % of 64 MB)
[2175 debug] FileManager: slashify: file: 1716750730968.png
[2179 debug] Image: loaded: 1716750730968.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750730968.png)
[2180 debug] Image: cached: 1716750730968.png (3 KB) (# 12 KB 93 -- 0 % of 64 MB)
[2181 debug] FileManager: slashify: file: 1716750771579.png
[2184 debug] Image: loaded: 1716750771579.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750771579.png)
[2185 debug] Image: cached: 1716750771579.png (4 KB) (# 13 KB 97 -- 0 % of 64 MB)
[2186 debug] FileManager: slashify: file: 1716750797311.png
[2190 debug] Image: loaded: 1716750797311.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716750797311.png)
[2190 debug] Image: cached: 1716750797311.png (4 KB) (# 14 KB 102 -- 0 % of 64 MB)
[2192 debug] Image: reused: 1716713604031.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716713604031.png)
[2196 debug] Image: loaded: 1716717289504.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716717289504.png)
[2197 debug] Image: cached: 1716717289504.png (4 KB) (# 15 KB 107 -- 0 % of 64 MB)
[2201 debug] Image: loaded: 1716717718403.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716717718403.png)
[2202 debug] Image: cached: 1716717718403.png (3 KB) (# 16 KB 110 -- 0 % of 64 MB)
[2207 debug] Image: loaded: 1716717903077.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716717903077.png)
[2208 debug] Image: cached: 1716717903077.png (10 KB) (# 17 KB 121 -- 0 % of 64 MB)
[2214 debug] Image: loaded: 1716717968665.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716717968665.png)
[2215 debug] Image: cached: 1716717968665.png (22 KB) (# 18 KB 143 -- 0 % of 64 MB)
[2219 debug] Image: loaded: 1716718011488.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716718011488.png)
[2221 debug] Image: cached: 1716718011488.png (4 KB) (# 19 KB 148 -- 0 % of 64 MB)
[2222 debug] FileManager: slashify: file: 1716725211764-1.png
[2227 debug] Image: loaded: 1716725211764-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716725211764-1.png)
[2228 debug] Image: cached: 1716725211764-1.png (4 KB) (# 20 KB 153 -- 0 % of 64 MB)
[2231 debug] FileManager: slashify: file: 1716722029205-1.png
[2236 debug] Image: loaded: 1716722029205-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722029205-1.png)
[2237 debug] Image: cached: 1716722029205-1.png (4 KB) (# 21 KB 158 -- 0 % of 64 MB)
[2238 debug] FileManager: slashify: file: 1716722066563-1.png
[2242 debug] Image: loaded: 1716722066563-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722066563-1.png)
[2247 debug] Image: cached: 1716722066563-1.png (4 KB) (# 22 KB 163 -- 0 % of 64 MB)
[2249 debug] FileManager: slashify: file: 1716722237906-1.png
[2253 debug] Image: loaded: 1716722237906-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722237906-1.png)
[2254 debug] Image: cached: 1716722237906-1.png (5 KB) (# 23 KB 168 -- 0 % of 64 MB)
[2256 debug] FileManager: slashify: file: 1716724965706-1.png
[2260 debug] Image: loaded: 1716724965706-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716724965706-1.png)
[2261 debug] Image: cached: 1716724965706-1.png (4 KB) (# 24 KB 172 -- 0 % of 64 MB)
[2262 debug] FileManager: slashify: file: 1716722338951.png
[2265 debug] Image: loaded: 1716722338951.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/2.sikuli/1716722338951.png)
[2265 debug] Image: cached: 1716722338951.png (4 KB) (# 25 KB 177 -- 0 % of 64 MB)
[2270 debug] IDE: Restore Python script: 1.py
[2272 debug] EditorPane: created 1716754702004
[2275 debug] EditorPane: loadfile: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli\1.py
[2276 debug] EditorPane: InitTab: (text/jython)
[2277 debug] SikuliEditorKit.read
[2278 debug] ImagePath: new BundlePath: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli
[2278 debug] EditorPane: setFiles: for: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli\1.py
[2278 debug] EditorPane: checkSource: started (C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli\1.py)
[2454 debug] Image: loaded: 1716749859488.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716749859488.png)
[2454 debug] Image: cached: 1716749859488.png (5 KB) (# 1 KB 5 -- 0 % of 64 MB)
[2456 debug] FileManager: slashify: file: 1716725211764-1.png
[2459 debug] Image: loaded: 1716725211764-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716725211764-1.png)
[2459 debug] Image: cached: 1716725211764-1.png (4 KB) (# 2 KB 10 -- 0 % of 64 MB)
[2460 debug] FileManager: slashify: file: 1716722029205-1.png
[2463 debug] Image: loaded: 1716722029205-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716722029205-1.png)
[2463 debug] Image: cached: 1716722029205-1.png (4 KB) (# 3 KB 15 -- 0 % of 64 MB)
[2465 debug] FileManager: slashify: file: 1716722066563-1.png
[2467 debug] Image: loaded: 1716722066563-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716722066563-1.png)
[2468 debug] Image: cached: 1716722066563-1.png (4 KB) (# 4 KB 20 -- 0 % of 64 MB)
[2470 debug] FileManager: slashify: file: 1716722237906-1.png
[2473 debug] Image: loaded: 1716722237906-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716722237906-1.png)
[2474 debug] Image: cached: 1716722237906-1.png (5 KB) (# 5 KB 25 -- 0 % of 64 MB)
[2475 debug] FileManager: slashify: file: 1716724965706-1.png
[2479 debug] Image: loaded: 1716724965706-1.png (file:/C:/Users/tomwe/OneDrive/Bureaublad/sikulix/1.sikuli/1716724965706-1.png)
[2479 debug] Image: cached: 1716724965706-1.png (4 KB) (# 6 KB 29 -- 0 % of 64 MB)
[2481 debug] ImagePath: new BundlePath: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli
[2482 debug] IDE startup: 2,5 seconds *** Running on Java 9+
[debug] Jython: added as Jython::sys.path[0]:
C:\Users\tomwe\AppData\Roaming\Sikulix\Lib\site-packages
[debug] Jython: ***** sys.path
 0: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\2.sikuli
 1: C:\Users\tomwe\AppData\Roaming\Sikulix\Lib\site-packages
 2: C:\Users\tomwe\AppData\Roaming\Sikulix\Lib
 3: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\Lib
 4: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\sikulixide-2.0.5.jar\Lib
[4183 debug] JythonRunner: ready: version 2.7.2
[debug] IDE: AbortKey was pressed: aborting all running scripts
[debug] IDE: MenuAction.openBugReport
null/null/null
[debug] IDE: MenuAction.openBugReport
null/null/null
[debug] ImagePath: new BundlePath: C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli
[debug] save image for copy&paste: 1716749859488.png -> C:\Users\tomwe\OneDrive\Bureaublad\sikulix\1.sikuli\1716749859488.png

Tom Weda (tomwee)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.