Jump to content

Get control info in windows 7 control panel


Nemo
 Share

Recommended Posts

Hi,

when I use AutoIt v3 window info tool to catch info in control panel of windows 7, it only provide the parent's info.

Any idea how to get those children applets info or how I can control those children applet? It looks it is not always the same counts to send tab key.

Thanks.

Link to comment
Share on other sites

You get DirectUIHWND class for the control. In earlier versions of Windows it was a SysListView32 class control. The new control has clickable "owner drawn" elements that do not expose a Windows API for AutoIt to use.

Sending synthetic keystrokes, like "{DOWN}" or "{TAB}" might be the best you can do with it. However, remember that each of those functions probably has other more programable ways to do the same functions, like NetSh to configure the network, WMI COM interfaces, or DLL calls. Just because you can't use the GUI much doesn't mean you can't perform those functions elsewhere.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Thanks PsaltyDS.

Do you know if there is a way to call the applet Contorl Panel>>Programs>>Default Programs?

I was using call appwiz.cpl to get into Programs and Features then send backspace to programs. However when I try to send Tabs to get into Default Programs, I found some times it's 20 tabs, sometimes it's 17 tabs or 15 tabs. So not sure how to do, or there is another way.

codes to get into Programs and Features are below.

Run("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl")

WinWaitActive("Programs and Features")

Send("{BS}")

Link to comment
Share on other sites

Those are just file associations, settable in the registry, and a good example of why you don't need the GUI tool to handle it. Look at the keys under "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts".

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...