Hello! I'm trying to open a new window within a program, which is accomplished manually by pressing {Ctrl}r. I can accomplish this by using Send {Ctrl}r, but I can't figure out how to make it work with a ControlSend command. I use ControlSend a lot, but it's always for sending requests to discrete controls, not to entire windows. I tried simply omitting the control parameter, and using ahk_id %ControlHwnd%, but neither of them cause anything to happen. What might I be doing wrong?
Paul
ControlSend To Entire Window
- PaulLeavitt
- Posts: 58
- Joined: 21 Oct 2014, 10:04
Re: ControlSend To Entire Window
For example:TheDocs wrote:Control [paramter]:
<snip>
If this parameter is ahk_parent, the keystrokes will be sent directly to the target window instead of one of its controls (see Automating Winamp for an example).
Code: Select all
ControlSend, ahk_parent, {Ctrl}r, ProgramTitle
![Image](https://geekdude.io/static/kofi_bg_tag_dark.png)
![Image](https://geekdude.io/static/ahkwiki2.png)
![Image](https://geekdude.io/static/v2course2.png)
![Image](https://geekdude.io/static/icons/CQT.png)
![Image](https://geekdude.io/static/discord-mark-blue.png)
- PaulLeavitt
- Posts: 58
- Joined: 21 Oct 2014, 10:04
Re: ControlSend To Entire Window
Perfect! Thanks GeekDude!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 366 guests