Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
<Action>
System.Execute(u'C:\\Windows\\System32\\tscon.exe', u'1 /dest:console /password:myPassworP', 0, False, 2, u'', False, True, u'', False, True, False, False)
</Action>
</EventGhost>It works fine when the password is hardcoded, but not when I try to use a variable in place of it. Example
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
<Action>
System.Execute(u'C:\\Windows\\System32\\tscon.exe', u'1 /dest:console /password:{eg.event.payload.arcomm}', 0, False, 2, u'', False, True, u'', False, True, False, False)
</Action>
</EventGhost>This second example macro seems to run all the way through because I get the response on my phone saying the computer is successfully unlocked, but the lockscreen is still present. Any idea why this isn't working?

