Results 1 to 3 of 3

Thread: 1 button to turn on/off my screen

  1. #1
    Join Date
    Mar 2006

    Question 1 button to turn on/off my screen

    i think this is a newbie question but i can't find how i can turn my screen on then off with the same button so i need help

  2. #2
    Join Date
    Jun 2006


    Hi Imagonem,

    I'm comparably new to girder myself, so I can't exactly tell you how to program that in LUA, but I've done something similar using macros.

    The idea is to create two makros, both activated by the same button, for turning the monitor on and off. By default, the on-makro is deactivated, so at first, only the off-makro can be activated by pressing the button.
    Then this makro:
    - turns the monitor off
    - (perhaps wait one second, dunno)
    - enables the makro for turning the monitor on (enable group/action)
    - and finally disables itself (disable group/action)

    if everything works fine, the monitor should be off, the makro for turning it on should be activated and the other should be deactivated.

    Now The other way round, the on-makro
    - turns the monitor on
    - waits a sec
    - enables the off-makro
    - and disables itself

    I've attached a file doing approximately what I've written (I hope ), you just have to change the remote buttons assigned to the makros!

    hope that helps,
    Attached Files Attached Files

  3. #3
    Join Date
    Oct 2001


    you can also make one "on" and one "off" command, and use "states" to make it work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts