Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select a random Window
#1
How can I select a random Window or Windows without a name? I want that for ROCCAT Power-Grid, where I can close windows, change the size and other things.
#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
#3
Im a beginner, I dont know exactly what to do


Forum Jump:


Users browsing this thread: 1 Guest(s)