Shortcut Key Activate (off focus) and Deactivate questions

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Shortcut Key Activate (off focus) and Deactivate questions

Post by newpie » Tue Feb 09, 2016 4:04 am

Hello, I was wondering if there is a method to activate a card of a stack while the program has no focus when the combination shortkey is hit. I know how to make the combo short key work already while stack is active fyi.

Activate question:
Example:
- Alt +b activates a card (as a mnemonic) built in a button
- When user goes to a different program on windows and the livecode exe loses focus how do ensure when they hit Alt+B the card will pop up. Currently as it has no focus it does nothing.

Deactivate question:
Is there a way to deactivate a mnemonic of a button until it is done running its script it activates. It is as simple as using disable button command.

Thanks for the help, please let me know if you have questions.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Shortcut Key Activate (off focus) and Deactivate questio

Post by LCNeil » Tue Feb 09, 2016 11:01 am

Hi newpie,

I don't believe such functionally is directly possible within a LC app. To bring the LC app back into focus, you would need to use something like AutoHotKey. The following link should give you some information on this-

http://lifehacker.com/5468862/create-a- ... fic-window

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Re: Shortcut Key Activate (off focus) and Deactivate questio

Post by newpie » Wed Feb 10, 2016 5:09 am

Thank you Neil for the quick reply. I used Autohotkey before so that won't be an issue.

Is there a way I can wrap an autohotkey compiled version (exe version) as an external or something similar when I save my livecode script as a standalone?

thx again

Post Reply