Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions DellSetThermalSetting/dell-thermal-control.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
;this is a comment

#SingleInstance Force
SetWorkingDir %A_ScriptDir%

;get admin rights
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.

;set array for profiles
ProfileArray := ["Optimized", "Cool", "Quiet", "UltraPerformance"]

;radio options with Optimized as default
Gui, Add, Radio, Checked x22 y19 w220 h30 vProfile, Optimized
Gui, Add, Radio, x22 y49 w220 h30 , Cool
Gui, Add, Radio, x22 y79 w220 h30 , Quiet
Gui, Add, Radio, x22 y109 w220 h30 , Ultra Performance
Gui, Add, Button, Default x82 y149 w110 h20 , OK
Gui, Show, , Dell Thermal Profile
Return

;do nothing if escape or close button are pressed
GuiEscape:
GuiClose:
ExitApp


ButtonOK:
Gui, Submit
SelectedProfile := ProfileArray[Profile]
;Decomment the line below for a feedback message box
;MsgBox You entered: %SelectedProfile%
Run, "C:\tools\fan\DellSetThermalSetting-2.1\DellSetThermalSetting.exe" %SelectedProfile%, , Hide
ExitApp