I found a strange/surprising new behaviour while testing with Duplicate_starter_menu_entry.ahk:
TC's Directory Hotlist configuration normally has buttons
- "TButton1"="Help" to "TButton7"="Add item".
After sending a SPACE to button "Change Title" they are
- "TButton1"="&>>", "TButton2"="Help" to "TButton8"="Add item".
=> The button list in the second case changed to the same as used in Starter menu
(although we are still in Directory Hotlist and button "&>>" is not visible).
This was introduced in TC 7.50. TC 7.04a didn't change its control names in this case.
Bug/flaw or new feature?
To reproduce:
- call TC's Directory Hotlist configuration (Ctrl+D, configure)
- put the focus on an existing line
- check that the name of button "Help" is "TButton1" (with spy tool of your choice, e.g. AU3_Spy.exe, delivered with Autohotkey)
- start the script below (=part of the whole script Duplicate_starter_menu_entry.ahk)
- close the "Rename title" dialog and re-check the name of button "Help"
=> it changed from "TButton1" to "TButton2"
Code: Select all
#SingleInstance, Force
; *** wait for & activate window
WinWait , ahk_class TUSERMENUCHANGE,
IfWinNotActive, ahk_class TUSERMENUCHANGE,, WinActivate, ahk_class TUSERMENUCHANGE,
WinWaitActive , ahk_class TUSERMENUCHANGE,
; *** press button "Change title" to get title of current entry
ControlSend, TButton4, {Space}, ahk_class TUSERMENUCHANGE ; Button "Change Title"
XP SP3, TC 7.50 up to 7.55a pre2
(does NOT occur in TC 7.04a)