ControlFocus on Rainmeter InputText.dll Plugin

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
icybricks
Posts: 3
Joined: 27 Mar 2017, 22:49

ControlFocus on Rainmeter InputText.dll Plugin

27 Mar 2017, 23:45

I'm trying to give ControlFocus to a Rainmeter InputBox, which is based on RainMeter's InputText.dll plugin. My trouble is in identifying the InputBox.

Here's what Window Spy says:
Window Title, Class and Process
InputBox
ahk_class WindowsForms10.Window.8.app.0.3ce0bb8_r42_ad1
ahk_exe Rainmeter.exe

Control Under Mouse Position (the inputbox)
ClassNN: WindowsForms10.EDIT.app.0.3ce0bb8_r42_ad11

Here's some identification code I ran on the InputBox:

Code: Select all

WinGetActiveTitle, titleofinputbox
MsgBox %titleofinputbox% ;returns InputBox
WinGetClass, classofinputbox, %titleofinputbox%
MsgBox %classofinputbox% ;returns nothing (null)
Here's some code I tried:

Code: Select all

ControlFocus, WindowsForms10.Window.8.app.0.3ce0bb8_r42_ad1, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus, WindowsForms10.EDIT.app.0.3ce0bb8_r42_ad11, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus, 3ce0bb8_r42_ad1, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus,, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus, ahk_class WindowsForms10.Window.8.app.0.3ce0bb8_r42_ad1, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus, ahk_class 3ce0bb8_r42_ad1, InputBox
MsgBox %ErrorLevel% ;returns 1

ControlFocus, ahk_class WindowsForms10.EDIT.app.0.3ce0bb8_r42_ad1, InputBox
MsgBox %ErrorLevel% ;returns 1

;As a test, I preloaded the Rainmeter InputBox with the word foobar
ControlFocus, foobar, InputBox
MsgBox %ErrorLevel% ;returns 1
Please help guide me through this scripting. Thank you!
icybricks
Posts: 3
Joined: 27 Mar 2017, 22:49

Re: ControlFocus on Rainmeter InputText.dll Plugin

05 Apr 2017, 21:18

UPDATE: Still looking for a solution or for an explanation as to why what I've tried doesn't work.
MaxAstro
Posts: 557
Joined: 05 Oct 2016, 13:00

Re: ControlFocus on Rainmeter InputText.dll Plugin

06 Apr 2017, 09:46

Not sure if it will make a difference, but your second to last attempt has a typo - should be r42_ad11, and you have r42_ad1.
icybricks
Posts: 3
Joined: 27 Mar 2017, 22:49

Re: ControlFocus on Rainmeter InputText.dll Plugin

06 Apr 2017, 19:25

Thanks @MaxAstro. I corrected the typo but the ControlFocus statements I tried still fail, returning 1.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 216 guests