@Alan-Kilborn said in Open with search:
@pdanes said in Open with search:
it changes in mid-stream. When I first call it, the dialog opens with “Find”, but after a while, it switches on its own to “Najít”. I haven’t (yet, anyway) taken the trouble to find out exactly when, or see if I can isolate the exact cause - I’ve been too busy just trying to get it working at all
Well THAT is certainly strange!
Isn’t it, though? What is happening is that only the first SendMessage call opens the dialog with “Find”. As long as the dialog stays open, and I simply put in different texts to search for and press the find button, it stays “Find”. As soon as a second SendMessage call is issued, or I manually switch to a different tab in the dialog, or I manually press ctrl/F (whether or not the search dialog is closed first), it immediately switches to “Najít” and stays that way from then on, for as long as Notepad remains open. If I completely close it, and it is opened again by the database and the search dialog is opened by the database’s SendMessage call, it is “Find” again. It seems that the very first SendMessage must bypass some initialization code. Maybe there is some other call I should issue first, some “SetInitialParameters” sort of thing, but I don’t really feel like looking for something that may not even exist. Just checking for both versions of the title works well enough. If someone who understands what’s going sees this and chimes in with some direction, I’ll fix it. If not, this works well enough.
A little odd, but I’ve seen stranger behavior from software.
Do they have a real Python interpreter built into Notepad? That’s some text editor.
It isn’t exactly “built-in”. It’s a plugin. But a rather miraculous one. :-)
So it seems. Python is probably something I should devote more time to. More and more situations are cropping up where knowing it well would be useful. At this point I can usually muddle my way to some result, but I don’t really ‘know’ the language, and I should.