Keyboard hotkey?

Hello, I have a new keyboard. It has a rotary knob. I would like to set it so that I can make Spotify louder or quieter. In the software, I can't do it using just the button. I've already watched videos and they always say "autohotkeys." I've tried it a few times but it doesn't…

Why doesn't the code work in Lazarus?

Hello, I'm currently learning a little bit about programming with Lazarus. I want to program hotkeys that can be used outside of the TForm. Unfortunately, this doesn't work with my program, but I don't know what the problem is. Code: unit unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, LCLType, Windows; type…