The macro "avtozoom" for "CS: GO" can be downloaded and used on any mouse and keyboard. Installing the macro is quick and easy in the Keyran program and increases your skill level in the game, if you follow the instructions!
Programmatically bind the command to a specific key, run a script that automatically fires when this key is pressed. In the game settings, change the settings: the shot button to the left mouse button and the aiming button to the right mouse button.