Python use with Mightex Buffer USB camera

2010-10-27 Thread Greg Miller
Does anyone have any experience using Python and ctypes to interface with one of the Mightex USB cameras? I am following the CPP code example and so far I think I've done pretty well talking to the dll. I am able to get serial number information back from the camera, however I am not sure if I'm u

Re: catching WM_TIMER message

2010-09-20 Thread Greg Miller
On Sep 20, 11:30 am, Tim Golden wrote: > On 20/09/2010 16:15, Greg Miller wrote: > > > I'm trying to get the following code converted to Python...and am > > stuck > > > if(GetMessage(&msg.NULL,NULL,NULL)) > > { > >       if(msg.message == WM_TI

catching WM_TIMER message

2010-09-20 Thread Greg Miller
I'm trying to get the following code converted to Python...and am stuck if(GetMessage(&msg.NULL,NULL,NULL)) { if(msg.message == WM_TIMER) { TranslateMEssage(&msg); DispatchMessage(&msg); } } I think GetMessage is a canned C or C++ function, and I'm not sure

starting a Python 2.5 executable without the DOS window

2009-02-27 Thread Greg Miller
. Thanks for any information. Greg Miller -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite utf8 encoding error

2005-11-21 Thread Greg Miller
Thanks again, I'll look into this method. Greg Miller -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite utf8 encoding error

2005-11-18 Thread Greg Miller
Thank you for all your suggestions. I ended up casting the string to unicode prior to inserting into the database. Greg Miller -- http://mail.python.org/mailman/listinfo/python-list

sqlite utf8 encoding error

2005-11-17 Thread Greg Miller
deDecodeError: 'utf8' codec can't decode bytes in position 13-18: unsupported Unicode code range does anyone have any idea on what could be going wrong? The string that I store in the database table is: 'Keinen Text für Übereinstimmungsfehler gefunden' I thought that all st

Re: launching adobe reader with arguments from os.system call

2005-09-08 Thread Greg Miller
Thank you for the information, when I launched the Reader on the actual hardware it launched quickly. I think I just have too much running on my application PC. I will consider starting an AcroReader app however. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: launching adobe reader with arguments from os.system call

2005-09-08 Thread Greg Miller
0_en.pdf"') I'm going to give your method a try to see if it launches any quicker. Thanks again. Greg Miller -- http://mail.python.org/mailman/listinfo/python-list

launching adobe reader with arguments from os.system call

2005-09-06 Thread Greg Miller
Currently I am launching adobe reader using the following call: os.system("path.file.pdf") this works fine for opening the pdf doc at the beginning. We would like to enhance this and open the document to either a page or a nameddest in the doc. The syntax for that in the DOS command prompt world i

Re: COM problem .py versus .exe

2005-06-30 Thread Greg Miller
That code works great, and is a tad bit cleaner than what I came up with, thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: COM problem .py versus .exe

2005-06-30 Thread Greg Miller
Thanks for the information, I stumbled across that page yesterday. It seems all the problems with this are solved. The executable works just like the Python version. Now I have to come up with an algorithm to parse through the output data to come up with the version numbers. Thanks for all your

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
I tried the code snippet using win32api.GetFileVersionInfo(), what I get now is the following when running on the executable machine: . . . FileFlagsMask => 63 FileType => 2 FileVersionMS => 65536 FileVersionLS => 1 Signature => -17890115 FileSubtype => 0 FileFlags => 0 ProductVersionLS => 1 FileD

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
I didn't see the earlier post, thanks for the resend. The firefighting is just about over, I have to find the machine owner to get permission to try the code. Then back to the dll version battle. If I can keep away from dealing with the ctypes code I will. I'll see how this works for me. Thank

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
Unfortunately I have a "fire" to put out with a patch to the existing machine code, I'll get back to looking into the problem a little later. Thanks very much for you assistance with this! I really didn't look into the GetFileVersionInfo, can I assume that is a cytypes function? -- http://mail.

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
line 157 is in fact where the traceback says the failure is: File "autoStart.py", line 241, in test File "wmib.pyc", line 157, in ? File "win32com\client\__init__.pyc", line 73, in GetObject File "win32com\client\__init__.pyc", line 88, in Moniker com_error: (-2147221020, 'Invalid syntax', None, N

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
I put you code snippet into my code, running it from the desktop PC gave me the following output ( I added a print statement ): . . . winmgmts: T i.Caption is \\rocps00101\ROCPR001 T i.Caption is \\ROCPS00101\ROCPR024 T i.Caption is \\ROCPS00101\R

Re: COM problem .py versus .exe

2005-06-29 Thread Greg Miller
The two machines are both running Windows XP, the desktop is running XP Pro, the "virgin" PC is running XP embedded. I would say the biggest difference is that the embedded machine has only the py2exe executable running/installed, while the desktop has the full python24 installation. I get no bui

Re: COM problem .py versus .exe

2005-06-28 Thread Greg Miller
Hello again, I put the executable on the "virgin" PC today. I am using the wmi(b) that you gave me. The error that I am receiving now is: File "autoStart.pyc", line 241, in test File "wmib.pyc", line 157, in ? File "win32com\client\__init__.pyc", line 73, in GetObject File "win32com\client\__ini

Re: COM problem .py versus .exe

2005-06-27 Thread Greg Miller
Thanks for the tweaked code, it worked on my desktop. The acid test will be when I put it on one of the "virgin" PC's ( no python installed, just running the py2exe executable ) that run the machine. I won't be getting one of those until later in the week, but I'm hoping that since it cleared the

COM problem .py versus .exe

2005-06-27 Thread Greg Miller
I have a .DLL that I am extracting the file version from using wmi.py. The specific code is: c = wmi.WMI() for f in c.CIM_DataFile(Name="c:\\glossersdmsservices\\bin\\glosscmanager.dll"): sdmsver = f.Version this works fine when running the application as a python file, when I

Re: mySQL values not updating after query

2005-04-15 Thread Greg Miller
I just discovered that a few minutes ago, thanks. -- http://mail.python.org/mailman/listinfo/python-list