Yes, this is possible. Assign function key 11 to a toolbar pushbutton:
Pushbutton (toolbar) "Save" "/0" "F11" Process="save.txt"
GuiXT will then automatically enable the "Save" icon.