Hmm Just a curiosity question to further the experiment if you don't mind.. I had been thinking you could use the "click" command to bring things to front, but if its not in front you can't do that. So out of curiosity.. If you set it to a system window so that its in front of everything, and then use the click command (click at x,y) then un-systemwindow it, does it retain focus? I'd test here, but for some reason it behaves differently for me. (It sounds like your autohotkey answer is still the better option.)
On Thu, May 10, 2018 at 8:13 AM, Douglas Ruisaard via use-livecode < use-livecode@lists.runrev.com> wrote: > More specifically, if I increase the "wait", the desired windows comes to > the foreground, the wait expires and then it "retreats" back behind the > other window(s) to its original placement. Neat trick for a timed "pop-up" > window. Without the "false" reset, the window remains as the foreground > window FOREVER... blocking any other windows or pop-up (e.g. "answer") > windows if they appear behind this foreground window. THAT in turn means > that you have to kill the foreground window in order to proceed.... so > don't try this trick at home, kids! > > Nonetheless, an interesting command.. one which I will consider using in > another place and time. > > Thanks again, > Doug > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > Hmm. Not sure whats up then. doing the systemwindow trick pops things > to the front for me from behind > > a browser of whatever happens to be in front, so no clue why it won't > work for you. (unless the > > window that it is behind is a system window itself) > > > > On Wed, May 9, 2018 at 3:34 PM, Douglas Ruisaard via use-livecode < > use-livecode@lists.runrev.com> > > wrote: > > > > > Thanks, Mike... but this doesn't make my LC screen active... it does > > > flicker it but leaves it in buried under the top window. > > > > > > I'll check out those links, Lagi... thanks for the research.... > > > > > > Thanks to Bob und Klaus for the "Launch" suggestion ... however, I > > > don't want to open, launch or startup anything, I just need the LC > > > window which is displaying the card processing to become the top-most > > > window ... so I'm not sure exactly what I would use as the "document" > in the launch command. > > > I will, however, keep this in mind for other purposes. > > > > > > As expected, a VERY simple, one-line script to AutoHotKey did the > trick... > > > which can be compiled into a standalone executable... and then shell'd > to. > > > Only thing is that it isn't cross-platform... windows only. If I find > > > the time, I'll try Bob's suggestion for the Apple. > > > > > > Many Thanks! > > > Doug > > > > > > > > > Douglas Ruisaard > > > Trilogy Software > > > (250) 573-3935 > > > > > > > > > > > While the solution is not perfect, you can have your script set the > > > > systemwindow of stack "stackname" to true wait 1 tick set the > > > > systemwindow of stack "stackname" to false > > > > > > > > (Saw this on the forums at one time or another, think the thanks go > > > > to > > > Lagi) > > > > > > > > The only negative of this method is the flicker as it goes system, > > > > then back again. > > > > > > > > > > > > ------------------------------ > > > > > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode