ControlSend To Entire Window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

ControlSend To Entire Window

22 Dec 2014, 15:15

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
geek
Posts: 1055
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: ControlSend To Entire Window

22 Dec 2014, 15:20

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).
For example:

Code: Select all

ControlSend, ahk_parent, {Ctrl}r, ProgramTitle
Though I think you might've meant {Ctrl down}r{Ctrl up}
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

Re: ControlSend To Entire Window

09 Jan 2015, 10:26

Perfect! Thanks GeekDude!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 366 guests