OK - so if I'm correct in understanding this, let's say hypothetically, I have
something like so...
HKLM...
something
something else
something else
something else
If I were to use my operation, and export the entire tree, I would get a copy
Rickey, Kyle W wrote:
> Thanks Tim. I used the following to select my tab of interest:
>
> TCM_SETCURSEL = 0x130C
> win32gui.SendMessage(hwnd, TCM_SETCURSEL, 3, 0)
>
> However, according to MSDN:
> http://msdn.microsoft.com/en-us/library/bb760612(VS.85).aspx
> "Remarks
>
> A tab control does no
Apparently I jumped the gun.
I tried:
lParam = (y << 16) | x
win32gui.SendMessage(top_hwnd, win32con.WM_LBUTTONDOWN, 0, lParam)
win32gui.SendMessage(top_hwnd, win32con.WM_LBUTTONUP, 0, lParam)
with x and y 1st being on-screen coordinates, and 2nd with x and y being
referenced from the corner of
Thanks Tim. I used the following to select my tab of interest:
TCM_SETCURSEL = 0x130C
win32gui.SendMessage(hwnd, TCM_SETCURSEL, 3, 0)
However, according to MSDN:
http://msdn.microsoft.com/en-us/library/bb760612(VS.85).aspx
"Remarks
A tab control does not send a TCN_SELCHANGING or TCN_SELCHAN
Dahlstrom, Roger wrote:
> I think my mistake was assuming that reading the values was going to be
> sufficient. For all the purposes I've used, it was. For my edification,
> what's the functional difference? I mean, what I was doing was able to walk
> the registry, extract information, save i
Rickey, Kyle W wrote:
>
> Let’s say I’ve got a window for which I want to simulate a mouse click
> at a specific x, y coordinate. I already have the hwnd but I’m not
> sure how to construct the lParam. I’ve used SendMessage in the past to
> click on buttons, etc., but I knew their hwnds. How do I c
> To me the bigger criticism is that there are probably 600 other programs
> that do the same > thing, but what fun would it be for me to use someone
> else's program...
got it.
I'll take a look at your program.
___
python-win32 mailing list
python-
> Is this capability not already part of XP?
> I've got my machines set to go to sleep after 1 hour,
> no programming needed.
> Right click on the Desktop, Properties, ScreenSaver, Power.
A couple of problems with doing it like that:
1) if you set your computer to go to sleep after X minutes, you
Let's say I've got a window for which I want to simulate a mouse click
at a specific x, y coordinate. I already have the hwnd but I'm not sure
how to construct the lParam. I've used SendMessage in the past to click
on buttons, etc., but I knew their hwnds. How do I construct the lParam.
Per the MSD
Message: 3
Date: Fri, 05 Dec 2008 08:40:32 -0600
From: Mike Driscoll <[EMAIL PROTECTED]>
Subject: Re: [python-win32] rebooting windows from Python?
To: [EMAIL PROTECTED]
Cc: Python-Win32 List
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> On the off
I think my mistake was assuming that reading the values was going to be
sufficient. For all the purposes I've used, it was. For my edification,
what's the functional difference? I mean, what I was doing was able to walk
the registry, extract information, save it for later, modify it, then re-
Dahlstrom, Roger wrote:
> Well, like I said, I've never done it in Python, and this is going back a
> bit, so some things might be different, but I'm not talking about RegSaveKey
> or RegRestoreKey, I'm talking about using EnumKey and CreateKey. As far as I
> can remember, I didn't have any spe
Well, like I said, I've never done it in Python, and this is going back a bit,
so some things might be different, but I'm not talking about RegSaveKey or
RegRestoreKey, I'm talking about using EnumKey and CreateKey. As far as I can
remember, I didn't have any special permissions for that.
Alec,
I've been using the following method that I found on
ActiveState's Cookbook, which I modified a little
(http://code.activestate.com/recipes/360649/):
Does that method ever hang during shutdown? I've tested the WMI method a few
times and got one hang, where it was asking me to termi
> I've been using the following method that I found on
> ActiveState's Cookbook, which I modified a little
> (http://code.activestate.com/recipes/360649/):
Does that method ever hang during shutdown? I've tested the WMI method a few
times and got one hang, where it was asking me to terminate a pr
Dahlstrom, Roger wrote:
> ... Basically what I'm saying is not that you need *no* permissions, just
> that you don't need any *special* permissions - if you have permission to
> read it and enumerate the subkeys, that is (at least in my experience, maybe
> I'm not doing exactly what the request
Well, sure the registry itself is not text, but the keynames contained within
it are, and so are the values, once you've read them. Basically what I'm
saying is not that you need *no* permissions, just that you don't need any
*special* permissions - if you have permission to read it and enumera
Dahlstrom, Roger wrote:
> If you can read the registry, you can save it without any other special
> permissions. It is just text.
>
> Just export a branch of your own registry and open it with notepad to see the
> format. I do it all the time, it works fine.
>
Well, you are simplifying thin
Tim Golden wrote:
>
> [*} One note which I remember: the .reg files are usually UTF16LE;
> not sure if that's important or not.
Regedit and "reg export" create UTF16 files, but regedit and "reg
import" are perfectly happy to read 8-bit .reg files.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & B
Tim Golden wrote:
Dahlstrom, Roger wrote:
If you can read the registry, you can save it without any other
special permissions. It is just text.
Just export a branch of your own registry and open it with notepad to
see the format. I do it all the time, it works fine.
You're quite right, Rog
Dahlstrom, Roger wrote:
If you can read the registry, you can save it without any other
special permissions. It is just text.
Just export a branch of your own registry and open it with notepad
to see the format. I do it all the time, it works fine.
You're quite right, Roger, and other peop
If you can read the registry, you can save it without any other special
permissions. It is just text.
Just export a branch of your own registry and open it with notepad to see the
format. I do it all the time, it works fine.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL P
Alec,
And thus I say for the second time in 24 hours: Eureka!
For anyone else coming down this path, here's how to shutdown, reboot or logoff Windows, each with the option to force the action. In other words, you can force Windows to reboot even if its asking if you want to save a document.
Mike Driscoll wrote:
Tim Roberts wrote:
Mike Driscoll wrote:
We're doing what amounts to a registry session audit here at work, so
I need to walk a specific set of subfolders in our registry and get
the contents thereof. The subfolders will vary from user to user. I
found Tim Golden's excelle
Tim Roberts wrote:
Mike Driscoll wrote:
We're doing what amounts to a registry session audit here at work, so
I need to walk a specific set of subfolders in our registry and get
the contents thereof. The subfolders will vary from user to user. I
found Tim Golden's excellent registry walking s
And thus I say for the second time in 24 hours: Eureka!
For anyone else coming down this path, here's how to shutdown, reboot or logoff
Windows, each with the option to force the action. In other words, you can
force Windows to reboot even if its asking if you want to save a document.
nLogOf
Alec Bennett wrote:
import wmi
wmi.WMI(privileges=["Shutdown"]).Win32_OperatingSystem()[0].Shutdown ()
Stylin, works. The only thing it doesn't do that I personally need
it to do is the "force shutdown". In other words "shutdown.exe -f".
I found this page with some hints but couldn't get
>
> import wmi
>
> wmi.WMI(privileges=["Shutdown"]).Win32_OperatingSystem()[0].Shutdown ()
>
>
Stylin, works. The only thing it doesn't do that I personally need it to do is
the "force shutdown". In other words "shutdown.exe -f". I found this page with
some hints but couldn't get it to work:
Mike Driscoll wrote:
We're doing what amounts to a registry session audit here at work, so I
need to walk a specific set of subfolders in our registry and get the
contents thereof. The subfolders will vary from user to user. I found
Tim Golden's excellent registry walking script on his website
Tim Roberts wrote:
Alec Bennett wrote:
I'm wondering if there's some way to reboot or shutdown Windows from within Python?
I can log out like this:
win32api.ExitWindowsEx(4)
And according to the documentation, I should be able to shutdown like this:
win32api.ExitWindowsEx(2)
But that retur
30 matches
Mail list logo