Greetings
I come to ask for help with this modification which is not executing the command at all.
Thank you to anyone who can help.
I'm trying to make this Skin open the Shutdown Event Tracker, which wouldn't be difficult since to do so I just press Alt+F4, but that's where the problem is, I basically can't implement this command.
Here where I stopped.
Here the original code.
Here what I tried with the help of Chatgpt.
And this is what I tried, without success.
Here is the image of what I want.
The Shutdown Event Tracker Window that I want to open with the Alt+F4 command
The Shutdown Skin I want to modify for this.
I am grateful to them in advance for their help.
I come to ask for help with this modification which is not executing the command at all.
Thank you to anyone who can help.
I'm trying to make this Skin open the Shutdown Event Tracker, which wouldn't be difficult since to do so I just press Alt+F4, but that's where the problem is, I basically can't implement this command.
Here where I stopped.
Code:
[Rainmeter]Author=TimAppVersion=1000000Update=60000PreserveAspectRatio=1[Metadata]Name=PSXMBGUIConfig=PSXMBGUIDescription=Playstation GUI to your desktop!Version=1.0.0License=Creative Commons BY-NC-SY 3.0[Restart_Icon]Meter=IMAGEImageName=Restart.pngX=0Y=0W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Restart_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Restart_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\shutdown.exe -r -t 00][Sleep_Icon]Meter=IMAGEImageName=Sleep.pngX=rY=28W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Sleep_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Sleep_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState][Shutdown_Icon]Meter=IMAGEImageName=Power.pngX=25y=-7W=75H=75MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Shutdown_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Shutdown_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute ["%windir%\System32\nircmd.exe" sendkeypress alt+F4] ;Text[Shutdown_Text]Meter=STRINGX=64Y=63FontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Desligar"Hidden=1[Restart_Text]Meter=STRINGx=rY=rFontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Reiniciar"Hidden=1[Sleep_Text]Meter=STRINGX=rY=rFontCOlor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Suspender"Hidden=1
Code:
[Rainmeter]Author=TimAppVersion=1000000Update=60000PreserveAspectRatio=1[Metadata]Name=PSXMBGUIConfig=PSXMBGUIDescription=Playstation GUI to your desktop!Version=1.0.0License=Creative Commons BY-NC-SY 3.0[Restart_Icon]Meter=IMAGEImageName=Restart.pngX=0Y=0W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Restart_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Restart_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\shutdown.exe -r -t 00][Sleep_Icon]Meter=IMAGEImageName=Sleep.pngX=rY=28W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Sleep_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Sleep_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState][Shutdown_Icon]Meter=IMAGEImageName=Power.pngX=25y=-7W=75H=75MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Shutdown_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Shutdown_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\shutdown.exe -s -t 00];Text[Shutdown_Text]Meter=STRINGX=64Y=63FontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Shutdown"Hidden=1[Restart_Text]Meter=STRINGx=rY=rFontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Restart"Hidden=1[Sleep_Text]Meter=STRINGX=rY=rFontCOlor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Sleep"Hidden=1
Code:
[Rainmeter]Author=TimAppVersion=1000000Update=60000PreserveAspectRatio=1[Metadata]Name=PSXMBGUIConfig=PSXMBGUIDescription=Playstation GUI to your desktop!Version=1.0.0License=Creative Commons BY-NC-SY 3.0[Restart_Icon]Meter=IMAGEImageName=Restart.pngX=0Y=0W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Restart_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Restart_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\shutdown.exe -r -t 00][Sleep_Icon]Meter=IMAGEImageName=Sleep.pngX=rY=28W=30H=30MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Sleep_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Sleep_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState][Shutdown_Icon]Meter=IMAGEImageName=Power.pngX=25y=-7W=75H=75MouseActionCursor=1MouseOverAction=!execute [!RainmeterShowMeter Shutdown_Text][!RainmeterRedraw]MouseLeaveAction=!execute [!RainmeterHideMeter Shutdown_Text][!RainmeterRedraw]LeftMouseUpAction=!Execute [eventvwr.msc];Text[Shutdown_Text]Meter=STRINGX=64Y=63FontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Desligar"Hidden=1[Restart_Text]Meter=STRINGx=rY=rFontColor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Reiniciar"Hidden=1[Sleep_Text]Meter=STRINGX=rY=rFontCOlor=0, 0, 0FontSize=9FontFace=Century GothicStringStyle=BOLDStringAlign=CENTERAntiAlias=1Text="Suspender"Hidden=1
Code:
LeftMouseUpAction=!Execute [eventvwr.msc]
Code:
LeftMouseUpAction=!Execute [shutdown -i]
Code:
LeftMouseUpAction=!Execute [shutdown -s -t 0 -c "Rastreador de Eventos de Desligamento"]
Code:
LeftMouseUpAction=!Execute [C:\Windows\System32\shutdown.exe -s -t 0]
Code:
LeftMouseUpAction=!Execute [nircmd sendkeypress alt+f4]
Code:
LeftMouseUpAction=!Execute ["C:\Windows\System32\cmd.exe" /c start nircmd sendkeypress alt+f4]
Code:
LeftMouseUpAction=!Execute ["powershell" -Command "Start-Process 'nircmd' -ArgumentList 'sendkeypress alt+f4' -NoNewWindow"]
Code:
LeftMouseUpAction=!Execute [mshta vbscript:Execute("CreateObject(""Wscript.Shell"").Run ""nircmd sendkeypress alt+f4"", 0 : window.close")]
Code:
LeftMouseUpAction=!Execute [mshta vbscript:Execute("CreateObject(""WScript.Shell"").Run ""cmd /c start nircmd sendkeypress alt+f4"", 0 : window.close")]
Code:
Add-Type -TypeDefinition @"using System;using System.Runtime.InteropServices;public class Keyboard { [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int extraInfo);}"@# Tecla Alt (virtual-key 0x12)[Keyboard]::keybd_event(0x12, 0, 0, 0)# Tecla F4 (virtual-key 0x73)[Keyboard]::keybd_event(0x73, 0, 0, 0)# Soltar as teclas[Keyboard]::keybd_event(0x12, 0, 2, 0)[Keyboard]::keybd_event(0x73, 0, 2, 0)
Code:
LeftMouseUpAction=!Execute ["powershell.exe -NoProfile -NoLogo -ExecutionPolicy Bypass -File C:\Bin\AltF4.ps1"]
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.SendKeys "%{F4}"
Code:
LeftMouseUpAction=!Execute ["wscript.exe C:\Bin\AltF4.vbs"]
Code:
Add-Type @"using System;using System.Runtime.InteropServices;public class Keyboard { [DllImport("user32.dll")] public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo); public const int KEYEVENTF_KEYDOWN = 0x0000; public const int KEYEVENTF_KEYUP = 0x0002; public const byte VK_MENU = 0x12; // Alt public const byte VK_F4 = 0x73; // F4}"@# Pressionar Alt[Keyboard]::keybd_event([Keyboard]::VK_MENU, 0, [Keyboard]::KEYEVENTF_KEYDOWN, [UIntPtr]::Zero)# Pressionar F4[Keyboard]::keybd_event([Keyboard]::VK_F4, 0, [Keyboard]::KEYEVENTF_KEYDOWN, [UIntPtr]::Zero)# Soltar F4[Keyboard]::keybd_event([Keyboard]::VK_F4, 0, [Keyboard]::KEYEVENTF_KEYUP, [UIntPtr]::Zero)# Soltar Alt[Keyboard]::keybd_event([Keyboard]::VK_MENU, 0, [Keyboard]::KEYEVENTF_KEYUP, [UIntPtr]::Zero)
Code:
LeftMouseUpAction=!Execute ["powershell.exe -NoProfile -NoLogo -ExecutionPolicy Bypass -File C:\Bin\SendAltF4.ps1"]
Here is the image of what I want.
The Shutdown Event Tracker Window that I want to open with the Alt+F4 command
The Shutdown Skin I want to modify for this.
I am grateful to them in advance for their help.
Statistics: Posted by HardNeck — Today, 7:38 am — Replies 6 — Views 89