# Power (local/remote) & Volume buttons incl. icons

**URL:** <https://resource.dopus.com/t/power-local-remote-volume-buttons-incl-icons/10199>\
**Category:** Buttons/Scripts\
**Tags:** commands, button\
**Created:** [December 5, 2010, 7:31pm UTC](https://resource.dopus.com/t/power-local-remote-volume-buttons-incl-icons/10199 "2010-12-05T19:31:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![anon94230625](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@anon94230625](https://resource.dopus.com/u/anon94230625)\
**Post date:** [December 5, 2010, 7:31pm UTC](https://resource.dopus.com/t/power-local-remote-volume-buttons-incl-icons/10199/1 "2010-12-05T19:31:12Z")

</div>

Here are my complete Power- and Volumebuttons.

Icon Preview (32x32 and 22x22)

![](https://resource.dopus.com/uploads/default/original/2X/6/67afb31daad8d0281f360d6539041f204a707b17.png)

Power buttons

PowerOff (no waittime):

```nohighlight
windir%\system32\shutdown.exe /s /t 0

```

Restart:

```nohighlight
%windir%\system32\shutdown.exe /r /t 0

```

Hibernate:

```nohighlight
%windir%\system32\rundll32.exe powrprof.dll,SetSuspendState

```

Lock:

```nohighlight
%windir%\system32\rundll32.exe user32.dll,LockWorkStation

```

Time (enter "hh:mm"):

```nohighlight
@Set var = {dlgstring|PowerOff at... (hh:mm):}
Close AT={$var}:00 SYSTEM=shutdown TOGGLE

```

Countdown:

```nohighlight
@Set var = {dlgchoose|Shutdown in:|5 min.=00:05+10 min.=00:10+15 min.=00:15+30 min.=00:30+45 min.=00:45+1 h.=01:00+1,5 hrs.=01:30+2 hrs.=02:00+2,5 hrs.=02:30+3 hrs.=03:00+3,5 hrs.=03:30+4 hrs.=04:00}
Close IN={$var}:00 SYSTEM=shutdown TOGGLE

```

Action:

```nohighlight
Close SYSTEM=shutdown WHENFINISHED TOGGLE

```

Cancel Action/Countdown/Time:

```nohighlight
Close CANCEL

```

PowerOff remote

(needs free portable Psshutdown: [http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx](http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx))

Note: Please change "Psshutdown"-path (default: /dopusdata\scripts\psshutdown.exe) and name of "PCx" to yours (you can also use an ip-adress):

```nohighlight
@runmode:hide
@confirm Shutdown PC?
/dopusdata\Scripts\PsShutdown.exe \\PCx -k -t 0

```

Volume buttons

(needs free portable NirCmd: [http://www.nirsoft.net/utils/nircmd.html](http://www.nirsoft.net/utils/nircmd.html))

Note: Please change "NirCmd"-paths to yours (default: /dopusdata\scripts\nircmd.exe)

Volume 5% up:

```nohighlight
/dopusdata\Scripts\NirCmd.exe changesysvolume 3277

```

Volume 5% down:

```nohighlight
/dopusdata\Scripts\NirCmd.exe changesysvolume -3277

```

Volume Mute (toggle):

```nohighlight
/dopusdata\Scripts\NirCmd.exe mutesysvolume 2

```

Volume Default to 25% (set yourself by dividing value 65535 = 100%):

```nohighlight
/dopusdata\Scripts\NirCmd.exe setsysvolume 16384

```

Volume 100% (warning appears!):

```nohighlight
@confirm ATTENTION! Set volume to maximum?
/dopusdata\Scripts\NirCmd.exe setsysvolume 65535

```

Download Iconset

[S-DOM Icon Set - Power & Volume.zip](https://resource.dopus.com/uploads/default/original/3X/a/0/a008cb411a9526b2cf6ebe40b501e42624cf5527.zip) (37.7 KB)

---

_[View the full topic](https://resource.dopus.com/t/power-local-remote-volume-buttons-incl-icons/10199)._
