Results 1 to 5 of 5

Thread: Exit / Fullscreen / Maximized

  1. #1
    Member
    Join Date
    Nov 2013
    Posts
    77

    Exit / Fullscreen / Maximized

    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

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,947
    Quote Originally Posted by murali_mepath View Post
    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

    Code:
    quit
    will exit VFP.

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

    Lianja.execute("quit")

    hth,

    Hank

  3. #3
    Member
    Join Date
    Nov 2013
    Posts
    77
    hi Hank,

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

    Cheers,
    Murali

  4. #4
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    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/show...-key-detection

    Cory

  5. #5
    Member
    Join Date
    Nov 2013
    Posts
    77
    Hi Cory,

    Thank you so much for the information.

    Cheers,
    Murali

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us