User Tag List

Results 1 to 4 of 4

Thread: MMF2 for brightness control or turn off monitor ( tablet/portable)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    MMF2 for brightness control or turn off monitor ( tablet/portable)

    is possible with mmf2 control the brightness of a laptop or tablet? I wanted to turn off the momitor with a banner and on again by clicking on the monitor. there is an extension, or an active component of x?

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if there is an extension for this, but assuming this is for Windows tablets and portable PCs, there is a freeware command line tool called Nircmd.

    You can place this external program besides your main executable and can call it using the "Execute external program" action like this: AppPath$+"nircmd.exe" specifying the parameters:

    From the command reference:
    Brightness Controls
    setbrightness [level] {mode}
    changebrightness [level] {mode}

    Turn off the monitor
    nircmd.exe monitor async_off

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You know one command line for windows xp or 7 in order to turn off monitor or backlight?
    command line for monitor control of the nircmd.exe does not exist...

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't understand what's the problem. Go to this page and download either the 32-bit or 64-bit version of Nircmd at the bottom.
    http://www.nirsoft.net/utils/nircmd.html

    Inside the zip is nircmd.exe. If you want this bundled with your program, you'll need to include it as either binary data or as an external file when you distribute it.

    If it's just for your own system, you may copy this to C:\Windows\system32 and all you need to execute is "nircmd.exe" in Fusion [Special Object → Execute an external program]

    Specify "nircmd.exe" (depending how you include it) and use these parameters as explained on this page: http://www.nirsoft.net/utils/nircmd2.html
    setbrightness [level] {mode}

    This command only works on laptop/netbook computers. It allows you to set the brightness of the laptop screen. The [level] parameter is brightness value between 0 and 100. 0 = very dark, 100 = very bright.
    {mode} is optional parameter that may conatin the following values:
    1 = Change the brightness under AC power.
    2 = Change the brightness under DC power.
    3 = Change the brightness for both AC power amd DC power (The default).
    Examples:
    setbrightness 50
    setbrightness 40 1
    setbrightness 60 2
    changebrightness [level] {mode}

    This command only works on laptop/netbook computers. It allows you to change the brightness of the laptop screen. The [level] parameter is brightness value to change. positive value increases the brightness, and negative value decreases the brightness.
    {mode} is optional parameter that may conatin the following values:
    1 = Change the brightness under AC power.
    2 = Change the brightness under DC power.
    3 = Change the brightness for both AC power amd DC power (The default).
    Examples:
    changebrightness 7
    changebrightness -10
    changebrightness 5 2
    monitor [action]

    Changes the state of the display monitor. The [action] parameter may contain the following values:
    off: Turn off the monitor
    async_off: Turn off the monitor. Use this value if NirCmd remains in memory when using monitor off.
    on: Turn on the monitor
    low: Set the monitor to low power state.

    This command only works in systems that support this feature. If you have a problem that NirCmd remains in memory when using this command, you may try to use async_off, async_on and async_low actions instead of on/off/low actions.
    Examples:
    monitor off
    monitor on
    monitor async_off

Similar Threads

  1. MMF2 Dev + Windows + monitor touch screen, is possible?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th December 2012, 05:27 PM
  2. Request: MMF2 Portable
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 23rd July 2007, 11:47 AM
  3. MMF2 as a Portable USB app?
    By nightofgrim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th January 2007, 11:18 AM

Posting Permissions

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