Active window and mouse location
bobsneidar at iotecdigital.com
Mon May 14 10:57:53 EDT 2018
As a workaround, making it a system window, then immediately making it a topLevel window should get around your issue. Not sure why it behaves the way it does. Going to a stack should make the stack the topStack, and only other stacks set as modal or system windows would override that behavior.
> On May 13, 2018, at 07:26 , Douglas Ruisaard via use-livecode <use-livecode at lists.runrev.com> wrote:
> Since I do not create the stack as a "modal stack" (a command I didn't even know existed... again, thanks for THAT), then does that make my card (only one in the app) a "system" window? After read the doc's on "modal stack", I doubt that I want my stack to become "modal"... even temporarily.
> What I seek is that window that "remains on top" *is* the LC card's window (I only have one card in this app)... but this statement is qualified as explained below.
> When I "leave" the LC window to perform an action on another window (e.g. Notepad), the Notepad window become the active window. What I want (and achieve using AutoHotKey) is, after placing a section of text from another window (Notepad, Outlook, Excel, etc.)into the clipboard (via ^C, double click, etc.), my LC card's window becomes the top-most, active window AUTOMATICALLY. Of course I could MANUALLY "dig it out" from behind any overlaying windows but I'm much too lazy to do THAT.
> LC happily (and impressively) "sees" the "new" clipboard data in a "timing loop", and inserts it into my LC processing. What I am seeking, in an LC native procedure, is for the LC card's window to become the top-most window. I DO NOT want to make my LC window the top-most ALL THE TIME, as the " set the systemwindow of stack "stackname" to true" does... just re-emerge as the top-most window when I want it to.
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
More information about the Use-livecode