Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
Thomas Heller, it seems, that your email address [EMAIL PROTECTED] doesn't work or at least don't accept attachments, so maybe you can provide me with another one? > ptr = cast(pBuf, POINTER(Buffer)) > print ptr # should print > struct = ptr[0] results in breakdown of Python (Windows e

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Thomas Heller
"Claudio Grondi" <[EMAIL PROTECTED]> writes: >> For the mistake you made see below, hope that helps. > It doesn't. > >> > pBuf_buf = cast(pBuf, Buffer) >> Here's the problem. pBuf is a pointer to a Buffer structure, not the >> buffer structure itself. >> Something like >> pBuf_buf = Buffe

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
> For the mistake you made see below, hope that helps. It doesn't. > > pBuf_buf = cast(pBuf, Buffer) > Here's the problem. pBuf is a pointer to a Buffer structure, not the > buffer structure itself. > Something like > pBuf_buf = Buffer.from_address(pBuf) > may work. If I currently underst

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Thomas Heller
"Claudio Grondi" <[EMAIL PROTECTED]> writes: > Background information: > - > in order to monitor mainboard sensory data > as fan speeds, temperatures, applications > like SpeedFan http://www.almico.com/speedfan.php > or MBM http://mbm.livewiredev.com/ > can be used.

Re: (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
, Delphi code examples). but ... I failed to get the data into a Python script :-( . For details see my other "Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control" posting. Claudio "Almico" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[E

Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
Background information: - in order to monitor mainboard sensory data as fan speeds, temperatures, applications like SpeedFan http://www.almico.com/speedfan.php or MBM http://mbm.livewiredev.com/ can be used. Both of the mentioned apps expose data got from the hardwar

Re: (win32) speedfan api control

2005-04-05 Thread Almico
"Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > your script works ok on my W2K box :-). > > It makes me curious if I can get also the > temperatures into Python script for > further processing as easy as the setting > of the checkbox is done? (I have not > much

Re: (win32) speedfan api control

2005-04-04 Thread Claudio Grondi
>>It makes me curious if I can get also the >>temperatures into Python script for >>further processing > Winspector is good for this kind of thing. Thanks for the link to Winspector - with this tool it's really easy to find out the names required to get down to the window elements of a running ap

Re: (win32) speedfan api control

2005-04-04 Thread Simon Brunning
On Apr 2, 2005 3:22 AM, tlviewer <[EMAIL PROTECTED]> wrote: (Snip Windows GUI automation stuff.) WATSUP includes a module for Windows GUI automation. It's probably worth a look - it might save you from doing all the research that I had to do! http://www.tizmoi.net/watsup/intro.html -- Cheers, S

Re: (win32) speedfan api control

2005-04-04 Thread Simon Brunning
On Apr 3, 2005 1:52 AM, Claudio Grondi <[EMAIL PROTECTED]> wrote: > May I ask how did you get the > "TJvXPCheckbox" and the other > values necessary to access the program > GUI ? (as I can see, there is no source > code of SpeedFan available) ? Winspector is good for this kind of thing. http://ww

Re: (win32) speedfan api control

2005-04-03 Thread Cappy2112
Nice idea- getting the handle to a control. But how do you know what to pass for wparam , lparam , flags ? BTW- I don't see anything unique to Active Python here. You can do all of this with the Python windows extensions, which can be installed without Active Python. -- http://mail.python.org/ma

Re: (win32) speedfan api control

2005-04-02 Thread Claudio Grondi
your script works ok on my W2K box :-). It makes me curious if I can get also the temperatures into Python script for further processing as easy as the setting of the checkbox is done? (I have not much experience with this kind of programming yet) May I ask how did you get the "TJvXPCheckbox" and

(win32) speedfan api control

2005-04-01 Thread tlviewer
hello, If you run the Mainboard monitor, speedfan, here is an ActivePython script to force automatic fan control. http://www.almico.com/speedfan.php It's a great example of how clean the WinApi interface is in ActivePython. The script sets focus to the checkbox of interest and toggles the