function OnEvent(event, arg) OutputLogMessage("event = %s, arg = %d\\n", event, arg) if (event == "PROFILE_ACTIVATED") then EnablePrimaryMouseBut