Bringing a Livecode Application to the Front

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Contact:

Bringing a Livecode Application to the Front

Post by Nonsanity » Fri Jul 13, 2012 3:59 pm

I've got an interesting in-house need that would normally go against good human interface guidelines.

I have a Livecode application that sits in the background behind other applications (on Windows in this case) that is constantly polling for a particular keystroke combination. When that happens, it starts working on something. What I'd also like it to do is make itself the topmost application. I haven't been able to find any way to do this yet.

I tried setting the systemwindow of the stack to true and then to false (because I don't want it to STAY the topmost) but that just makes it flicker into and out of the topmost position. The go to command only works within the application's windows.

I need to make it act as if the application window was clicked on or the application was selected from the task bar. This can be a Windows-only solution if it must be.

~ Nonsanity
~ Nonsanity
~ Chris Innanen

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Bringing a Livecode Application to the Front

Post by Klaus » Fri Jul 13, 2012 4:08 pm

Hi Chris,

maybe this helps:
http://www.sonsothunder.com/devres/live ... roc001.htm

Best

Klaus

Post Reply