I would like to set up my program so that it runs in the background but when a hot key,(such as "d"), is pressed it runs a simple macro. I know how to set up the macro but I don't know how to set up the if statement for it.

Thanks in advance
--
Duckman