Hi, I'm wondering if there is a way to create a shortcut command that would look like this.
there, you have your code that is long af.
and everytime you want to use it, you use a command that could look like this :
there, you have your code that is long af.
Code:
define command a:
if dayweek == 1:
show screen monday
hide screen tuesday
hide screen wednesday
hide screen thursday
hide screen friday
hide screen weekend
elif dayweek == 2:
hide screen monday
show screen tuesday
hide screen wednesday
hide screen thursday
hide screen friday
hide screen weekend
elif dayweek == 3:
hide screen monday
hide screen tuesday
show screen wednesday
hide screen thursday
hide screen friday
hide screen weekend
elif dayweek == 4:
hide screen monday
hide screen tuesday
hide screen wednesday
show screen thursday
hide screen friday
hide screen weekend
elif dayweek == 5:
hide screen monday
hide screen tuesday
hide screen wednesday
hide screen thursday
show screen friday
hide screen weekend
elif dayweek == 6:
hide screen monday
hide screen tuesday
hide screen wednesday
hide screen thursday
hide screen friday
show screen weekend
Code:
use command a