I want to make a hotkey that makes the backspace key work like it did in XP... so it would send alt+up.
The problem is that the backspace key needs to still work in the rename or location bar.
Any advice?
I haven't figured out how to do this yet either. I'm sure there's a way, but so far I've not come across it.
Hm. ControlGetFocus -should- allow one to get the currently focused UI element, so give that a try.
Managed to track down this on the AHK forums at
http://www.autohotkey.com/forum/topic24377.html
I've tested it in Win7 and it seems to work perfectly. Credit to fragman on that forum.
Backspace::
;make sure no renaming in process and we are actually in list or in tree
ControlGet renamestatus,Visible,,Edit1,A
ControlGetFocus focussed, A
if(renamestatus!=1&&(focussed="DirectUIHWND3"||focussed=SysTreeView321))
{
SendInput {Alt Down}{Up}{Alt Up}
return
}else{
Send {Backspace}
return
}
You must log in to post.