Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select a random Window
#2
Macro Macro2776
Code:
Copy      Help
;you can create this code with this dialog: floating toolbar -> Windows, controls -> Window/control actions -> Get windows (array)
ARRAY(int) a
GetMainWindows(a)
if(a.len=0) ret

;then select random array elament
int w=a[RandomInt(0 a.len-1)]

;view results
outw w


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)