PDA

View Full Version : Exit / Fullscreen / Maximized



murali_mepath
2013-12-22, 03:40
hi,

My app uses VFP as app scripting language. The main page ( and only page) uses python as the scripting language. The rest of the 3 sections on the main page use javascript and python as scripting languages.

So what would be the best, clean way of exiting the program upon a keypress? I cannot use the windows close button because I am running it in fullscreen/maximized/kiosk mode. Can I have a snippet or an example as to how I could exit and if any "clean ups" are necessary?

Thanks,
Murali

HankFay
2013-12-22, 16:22
hi,

My app uses VFP as app scripting language. The main page ( and only page) uses python as the scripting language. The rest of the 3 sections on the main page use javascript and python as scripting languages.

So what would be the best, clean way of exiting the program upon a keypress? I cannot use the windows close button because I am running it in fullscreen/maximized/kiosk mode. Can I have a snippet or an example as to how I could exit and if any "clean ups" are necessary?

Thanks,
Murali

Hi Murali,

issuing the VFP command


quit

will exit VFP.

So, from Javascript or Python, you could make this call, I think:

Lianja.execute("quit")

hth,

Hank

murali_mepath
2013-12-23, 09:46
hi Hank,

wow, cool thanks. And how would I trap the keypress event? :-)

Cheers,
Murali

CGibson
2013-12-23, 10:12
Hi Murali,

I have been helped with a keypress event in the past.
Take a look at this thread to see if it may be helpful to you.

http://www.lianja.com/community/showthread.php?1726-Textbox-keyboard-key-detection

Cory

murali_mepath
2013-12-28, 21:17
Hi Cory,

Thank you so much for the information.

Cheers,
Murali