Quote:
Originally Posted by dugan
The list of possible modifiers is right here:
https://www.autopy.org/documentation...rence/key.html
Code:
Modifier: META
Modifier: ALT
Modifier: CONTROL
Modifier: SHIFT
You want no modifiers, so the third argument would be "[]".
Your call should therefore be:
Code:
autopy.key.toggle("t",down,[])
|
Thank you so much, this worked, with the following code
Code:
import autopy
ar = open("autorun.txt", "r+")
down = ar.read().strip()
ar.close()
ar = open("autorun.txt","w")
if (down == "True"):
ar.write("False")
autopy.key.toggle("t",True,[])
else:
ar.write("True")
autopy.key.toggle("t",False,[])
ar.close()
But, now I have a new problem, it seems, with the "t" key being held down by AutoKey, it precludes it from noticing when I hit the script activation key a second time. (something that was not true in Windows AutoHotKey)