> >
> > Do you mean when you are renaming a file and the little edit window is open
> > to rename?
> >
> No, no edit dialogs.
No, I mean the little edit box that appears on XP. I don't know what happens
on win7 or vista, but on xp, this little script, attached to a hot key, will
select the characters before the last . in a file name which is selected for
rename in xp:
local hwnd=win.getfocus
local text=win.gettext(hwnd)
local EM_SETSEL=0x00B1
// win.debug(win.hex(hwnd), text) // uncomment for debug output
local dot=revfind(text, ".")
if (dot>=1)
win.sendmessage(hwnd, EM_SETSEL, 0, dot)