Jump to content

Noob with Controls ID


Recommended Posts

Hi,

THere is something strange i guess with Window Management Function.

I don't understand why when i get the handle of a windows i need to use ID, cause in my case in open the regedit window but with AU3info tool i cannot get the global window ID, so i cannot use ControlSend (which is what i prefer to be sure to use the correct window).

I hope you can help me.

Tx

Link to comment
Share on other sites

Hi,

THere is something strange i guess with Window Management Function.

I don't understand why when i get the handle of a windows i need to use ID, cause in my case in open the regedit window but with AU3info tool i cannot get the global window ID, so i cannot use ControlSend (which is what i prefer to be sure to use the correct window).

I hope you can help me.

Tx

You don't need the window handle, just title (and optionaly some visible text) for ControlSend(). I don't know if it will take a window handle in place of title/text. :whistle:

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

It will if you use this at the top of your script.

Opt("WinTitleMatchMode", 4)
yes it works like that :whistle:

But i have a problem i try to solve again, i launch a CTRL+H (^f) to open search windows and sometimes it works sometimes not ?

When it doesn't work if i make myself the shorcut, my script then execute the next steps ?? strange.

I correctly get the handle and add a winwait but ?

Mybe its my windows that his crazy

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...