Macro to change between artnet and hognet

hi,
I was wondering if it is possible to make a macro to change between Artnet and Hognet input.
Thanks,
Wessel