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?
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?






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
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...






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 2changebrightness [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 2monitor [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