open app
select layouts
tap on + icon
select New landscap layout
tap on setting icon
selec add button
tap on setting icon of button
select edit
tap on script
copy and paste thease lines
down(x360_right),
sleep(1000),
up(x360_right)
by this you are just clicking one button so you can also use
click(x360_right),