Win32api in Sharpcap python lib
Posted: Mon Aug 23, 2021 2:50 am
Hi,
I'm trying to use Metaguide from within Sharpcap using a series of small scripts which will be called from inside the SC sequencer using the "Run python script" command. The commands etc are from Metaguide documentation and developer. Sample is below:
===============
import win32api
import win32con
import win32com.client
import sys
idguide = win32api.RegisterWindowMessage("MG_RemoteGuide")
win32api.PostMessage(win32con.HWND_BROADCAST, idguide, 0, 0)
sys.exit("Started guiding")
=======================
The script I've written works fine in Python 3.9.6 shell/IDE, but when running from SC it gives the error "no module named win32api".
Right now I've worked around by converting the scripts into exe and then calling from the sharpcap sequencer, but its painful.
Presumably the SC python lib doesn't include pywin32? If so, can it be included?
Thanks
I'm trying to use Metaguide from within Sharpcap using a series of small scripts which will be called from inside the SC sequencer using the "Run python script" command. The commands etc are from Metaguide documentation and developer. Sample is below:
===============
import win32api
import win32con
import win32com.client
import sys
idguide = win32api.RegisterWindowMessage("MG_RemoteGuide")
win32api.PostMessage(win32con.HWND_BROADCAST, idguide, 0, 0)
sys.exit("Started guiding")
=======================
The script I've written works fine in Python 3.9.6 shell/IDE, but when running from SC it gives the error "no module named win32api".
Right now I've worked around by converting the scripts into exe and then calling from the sharpcap sequencer, but its painful.
Presumably the SC python lib doesn't include pywin32? If so, can it be included?
Thanks