Flags

Many functions accept arguments, usually called "flags", that can be combination of several values. To combine these values, use operator | (bitwise or). Examples:

 

int hwnd=win("Window" "" "" 1|8) 
SetWindowPos(hwnd HWND_TOPMOST 0 0 0 0 SWP_NOSIZE|SWP_NOMOVE|SWP_SHOWWINDOW)

 

Usually flag values are divisible by two (1, 2, 4, 8, 16, and so on). If so, the | operator is the same as the + operator. For example, to specify flags 1, 4 and 16, you can use 1|4|16, or you can use 21. Flags usually are easier to read when they are represented in hexadecimal format, so instead of 21 you can use 0x15. Of course, are possible mixed representations, such as 5|0x10.