While i try to find out if window is closed in (Linux) wine my python loop has a strange and (for me) logical behavior.
the source with this loop beginning (Source 1):
for x in range(0, 290): # default is 25
keyboard.send_keys("\n#40 x='%s'" % str(x))
keyboard.send_keys("")
if x > 1:
keyboard.send_keys("\n#42 x='%s'" % str(x))
break
For me it gives the following logical output (output 1):
#40 x='1'
#40 x='2'
#42 x='2'
But the source with this loop beginning (Source 2):
for x in range(0, 290): # default is 25
# keyboard.send_keys("\n#40 x='%s'" % str(x))
keyboard.send_keys("")
if x > 1:
keyboard.send_keys("\n#42 x='%s'" % str(x))
break
gives me no output at all
expected output for (Source 2):
#40 x='2'
#42 x='2'
i testing with this file https://gist.github.com/sl5net/b10770763d49b30fe2105b365ab3421e inside AutoKey i Linux Mint. Its starting an AutoHotKey Script (https://lintalist.github.io/).
if you want seeing me (i spreche deutsch im live stream), i struggling with this problem, look here to this live stream: https://youtu.be/V6kQAgiyj1Y?t=571