@mysticfm ofc, these should work in FSUIPC.
You need to replace the expression after the # sign with the following (before # is name of the macro).
press:
1 (>L:var_PilotCws_IsDown, Bool)
release:
0 (>L:var_PilotCws_IsDown, Bool)
But with the newly implemented HW events support, you could try using the newly supported event K:SYNC_FLIGHT_DIRECTOR_PITCH together with the HW events option on the tablet. Then you wouldn't need to define macros in the events file. Though I haven't tried it and not sure how to use it, if you need to give it parameter 1 and 0 for press and release? ¯\_(ツ)_/¯