[python-win32] mouse cursor coordinates

2012-02-03 Thread Jacob Kruger
Wondering off-hand if there's a simple/easy way to obtain mouse cursor coordinates, and, also, how simple is it to interact with operating system, in terms of if the mouse cursor is in fact outside the GUI as such - if that makes sense? TIA Jacob Kruger Blind Biker Skype: BlindZA '...fate had

Re: [python-win32] mouse cursor coordinates

2012-02-03 Thread Tim Roberts
Jacob Kruger wrote: > Wondering off-hand if there's a simple/easy way to obtain mouse cursor > coordinates, and, also, how simple is it to interact with operating > system, in terms of if the mouse cursor is in fact outside the GUI as > such - if that makes sense? win32gui.GetCursorPos will return

Re: [python-win32] mouse cursor coordinates

2012-02-03 Thread Jacob Kruger
Thanks. What primarily meant is wondered if an app would only be able to get hold of mouse cursor coordinates if mouse cursor was over parts of it's interface, or would it still be able to get real coordinates, as opposed to relative coordinates even if the mouse moved out off it's interface/w

Re: [python-win32] mouse cursor coordinates

2012-02-03 Thread Jacob Kruger
Ok, just tested it using win32gui.GetCursorPos function, and it does seem to obtain coordinates outside primary window as well, so let's see - thanks. Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' - Original Message - From: "Tim

Re: [python-win32] mouse cursor coordinates

2012-02-03 Thread Tim Roberts
Jacob Kruger wrote: > Ok, just tested it using win32gui.GetCursorPos function, and it does seem to > obtain coordinates outside primary window as well, so let's see - thanks. Right -- you can go fetch the coordinates any time, no matter where the mouse is on the desktop. But you only get mouse m

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Bill Tutt
Hrm. Is it just embedding via COM servers and services or something else? i.e. If I wrote a C++ WTL based UI to drive some embedded Python COM client logic or SQL queries do you think I'd need to do anything extra special? For various scary reasons I need to write a log collection tool to run on W

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Tim Roberts
Bill Tutt wrote: > > For various scary reasons I need to write a log collection tool to run > on Win2k and Win2k8 R2. The tool needs to collect some WMI, SQL, and > eventlog data. > I can't reboot the computer the tool runs on, so I can't install any > additional software. > Why does that conclus

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Tim Roberts
Bill Tutt wrote: > Installing .net 2.0 would. It would require doing the requisite > security updates for .net 2.0 for Win2k, etc Why do you need .NET 2.0 to install a Python app? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ p

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Bill Tutt
I don't. IF I could install anything I'd install .Net 2.0 since we're a C#/C++ house. I need to keep the size of this log collection tool small and don't want to waste space on bits of .py/.pyc/.pyds that I don't need. I'd rather save space on my technicians USB key for the collected logs/database

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Mark Hammond
Hi Bill, On 4/02/2012 9:52 AM, Bill Tutt wrote: Hrm. Is it just embedding via COM servers and services or something else? i.e. If I wrote a C++ WTL based UI to drive some embedded Python COM client logic or SQL queries do you think I'd need to do anything extra special? Not running the postins