Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to type "[" in a macro?
#2
not sure exactly what your trying to do here but if your trying to generate Ten random numbers between 1 and 9 would do like this.
also included some examples on how to type your text.


Code:
Copy      Help
int num
rep 10
,num=RandomInt(1 9)
,out num
,///// other
out 10*(1-9) ;;10x1-9
out "10 ([1-9])" ;;just outputting your text no math
;;if needing to type it use key,paste or .setwintext
,str s="10 ([1-9])"
,///example showing how to put text in notepad without typing uncomment  and open notepad to see how it works
,;int w=win("" "Notepad")
,;int c=id(15 w) ;;editable text 'Text Editor'
,;s.setwintext(c)
,///
,paste s
,key (s)
#ret
;; just for testing place cursor below this line then run


Messages In This Thread
How to type "[" in a macro? - by cdk270 - 06-02-2018, 09:55 AM
RE: How to type "[" in a macro? - by Kevin - 06-02-2018, 02:03 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)