Yealink ACD (Automated Call Distribution) Functionality

Yealink phones have a programmable button that is “Automated Call Distribution” or ADC. I was wondering if anyone had any idea of how to get this to work with logging in and out of queues.

Any Help would be appreciated!