I want to make an autohotkey script that does two things: 1. use QRes to change the…
- User
I want to make an autohotkey script that does two things:
- use QRes to change the resolution to 2560x1440@60hz
- When I press the right side windows key, it should input as left side alt key
- When I press left side alt key, it should input as left side windows key
It should do this as long as the program is running
- Assistant
Sure! Here's an example AutoHotkey script that achieves the two tasks you described:
code#NoEnv #Persistent ; Change resolution to 2560x1440@60hz using QRes ^!r:: Run, qres.exe /x 2560 /y 1440 /Refresh 60 Return ; Swap right side Windows key with left side Alt key RWin:: Send, {Alt down} Return LAlt:: Send, {LWin down} Return RWin up:: Send, {Alt up} Return LAlt up:: Send, {LWin up} ReturnExplanation of the script:
- #NoEnv: This directive prevents AutoHotkey from using variables that are not explicitly declared, improving performance.
- #Persistent: This directive makes the script persistent, so it runs in the background until explicitly terminated.
- User
can you explain how to run this code?
- Assistant
You must download a program who have used a macro definition. Save the file and open in program to play instruction.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)