Search found 4 matches

by stillirise
Wed Nov 25, 2020 12:32 am
Forum: General Support
Topic: Running Powershell within Python Script
Replies: 8
Views: 720

Re: Running Powershell within Python Script

Hi, Thanks for the reply but the same error is occurring: "You cannot call a method on a null valued expression". I can run the same command on the python command line successfully - it turns off and on my bluetooth: >>> proc = subprocess.Popen('"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\power...
by stillirise
Wed Nov 18, 2020 11:57 pm
Forum: General Support
Topic: Running Powershell within Python Script
Replies: 8
Views: 720

Re: Running Powershell within Python Script

I can run the command from the Windows prompt just fine: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command C:\Users\humble\bluetooth.ps1 -BluetoothStatus Off I can't seem to make it work. I can run from the command line successfully. I can run a local python script successfully. The...
by stillirise
Tue Nov 17, 2020 10:02 pm
Forum: General Support
Topic: Running Powershell within Python Script
Replies: 8
Views: 720

Re: Running Powershell within Python Script

Hi Sem;colon, Thanks for the reply, but I'm not understanding what I should do. When I Copy as Python from the Run Command action, I get this: eg.plugins.System.Command(u'd', True, False, u'', True, False, False, False, False) What does that mean, and where should I paste it exactly? I included the ...
by stillirise
Thu Nov 12, 2020 7:02 pm
Forum: General Support
Topic: Running Powershell within Python Script
Replies: 8
Views: 720

Running Powershell within Python Script

Good day, This is my first attempt at EventGhost, so please bear with me. As part of an Unlock Workstation Macro, I have a Session.Unlock Event then a Python Script Action. In the Python Script action, I have a Powershell script which turns on and off my Windows 10 bluetooth adapter based on time of...