comment: all samples->uses zero-initialized variables, so
comment:    initializing(zero) vars when copy/paste one after the other - is a good idea

comment: if using spaces at start, use either allSpaces or allTabs -> this is for if/while blocks
comment: numbers: &02=hex &#010=bin, 20 or -20.6
comment: string: "string" or 'string' - note that for now variables must be in quotes,eg '$str'
comment: max 10 vars each str/dbl: $str $str1...$str9,   $dbl $dbl1 dbl2 ... $dbl9
comment:   and $res <= returned when eg runwait it'll return result in it or plugin msgboxyesno, etc

comment: for sendkeys use sendkeys:"string/commands",msDelayCharacter,msDelayAfterSendKeys	<=available keys are in note.txt
comment:   note that defaults are maintainded by last value set, eg set 1st and 2nd/3rd can be called without last 2nd/3rd arguments

comment: run/runwait: 1st cmd is always hidden - if you want just execute hidden cmd use run/runwait:"cmd /c program.exe", for runwait res is stored in $res
comment:   to execute notepad use: run:"cmd /c notepad"

comment: set:"$dbl",-16.9
comment: set:"$str","some text ",-20.6," more text"
comment: set:"$str","some text ",-20.6," more text" <=1st 'value' param specifies if it's number or string

comment: set msgbox msgboxqtf print println <=these has varargs

comment: focuswnd:"startingTextMatch",2000	<=wait max 2sec to find it, def=nowait when no 2ndparm specified. $res can be used for status("1"=ok,"0"=notFound)

comment: input:"$str","title","short textile text\ndescription!"

comment: inc/dec:"$dbl" or inc/dec:"$dbl",4

comment: setgetwindowmode:'asexename'(default)Or'astitlename'	<= this is used in any ..window.. functions or wndorexeprocexist.
comment:   Note that asexename always uses 'correct version' let's say for Notepad, even if running on non-english windows edition,
comment:   while when in 'astitlename' mode, german edition may return some other - german name, but 'asexename' will always be notepad
comment:   When using 'asexename', use lowercase always,eg notepad. extension .exe is auto appended

comment:	if/while:"text-optional-$vars"OrDigit,"==|!=|<|<=|>=|>","text-optional-$vars"OrDigit, may be just if:'$dbl' or if:'$str', leveling-allSpaces or allTabs
comment:		cmd1
comment:		cmd2
comment:		if:...
comment:			cmd...
comment:			if:...
comment:				cmd...
comment:				cmd...
comment:	cmd...

comment: all cmds: sendkeys,msgbox,msgboxqtf,msgboxtitle,runwait,run,set,input,dblfromstr,focuswnd,placewindow,positionwindow,sleep,showwindow,exit,
comment: if,while,inc,dec,setgetwindowmode,print,println,wndorexeprocexist <=this can be used instead in-window function wait, except positionwindow which has wait opt somewhere in between
comment:   plus plugins...


comment: set:"previous text ",-12.6," more text"
comment: input:"$str","input text","short desc"
comment: run:"cmd /c notepad"
comment: focuswnd:"notepad",1000
comment: set:"$dbl"
comment: msgbox:"regular msgbox"
comment: msgboxtitle:'custom title',"regular msgboxtitle has ",&b,' chars'
comment: msgboxqtf:"{{1~a16/50o [$w_R3> hollay&lanolay]&[$yC4 test]& {{1~a12/50o [= @@iml:140*140`CtrlImg:exclamation`] & inside round}}  Round border}}"
comment: sendkeys:"some{SPACE}text{RETURN}",60,260
comment: sendkeys:"extra{SPACE}text"


==========
focuswnd:"notepad"
sleep:300
showwindow:"notepad",9
sleep:1000
positionwindow:"notepad",0,300,400,500,400
sleep:1000
placewindow:"notepad",0
sleep:1000
placewindow:"notepad",1
sleep:1000
placewindow:"notepad",2
sleep:1000
placewindow:"notepad",3
sleep:1000
placewindow:"notepad",4
sleep:1000
placewindow:"notepad",5
sleep:1000
placewindow:"notepad",6
sleep:1000
placewindow:"notepad",7
sleep:1000
placewindow:"notepad",8
sleep:1000
sendkeys:"some{SPACE}text{RETURN}",60,260
sendkeys:"textile{SPACE}text{RETURN}",60,260
sendkeys:"some{SPACE}more{SPACE}text",60,260


==========
if:0,"==",0
	msgbox:"is-1"
	if:1,"==",0
		msgbox:"is-2"
		sleep:100
		sleep:100
	msgbox:"is-1-1"
msgbox:"and 0th level"


==========
if:0,'==',0
	msgbox:"is-1"
	while:"$dbl","<",4
		msgbox:"is-2"
		sleep:100
		sleep:100
		inc:"$dbl"
	msgbox:"is-1-1"
msgbox:"and 0th level"


===== Demo =====
runwait:'cmd /c simmxtools -test'
msgbox:'$res'

set:"$str","2.4"
dblfromstr:"$dbl","$str"
set:"$str","var dbl=","$dbl"
msgbox:"$str"

run:"cmd /c notepad"
sleep:200
showwindow:"notepad",9,1000
if:"$res","==","0"
	exit:"notepad not found",-1
sleep:400
positionwindow:"notepad",0,300,400,500,400
sleep:700
placewindow:"notepad",0
sleep:1200

set:"$dbl",1
while:"$dbl","<",9
	placewindow:"notepad","$dbl"
	inc:"$dbl"
	sleep:1200

sendkeys:'demo{SPACE}finished!'
=== End demo ========

===========
comment: plugin test
msgboxyesno:'Press Yes or No'
msgbox:'1=yes/0=no\nYou pressed ','$res'
filewrite:'createdwithplugin.txt','some text\ntextile texting string!',1

===========
comment: while break/continue
while:0,'==',0
	inc:'$dbl'
	if:'$dbl','>',4
		break
	msgbox:'$dbl'
	if:'$dbl','<',2
		continue
	msgbox:'$dbl 2nd'

===========
comment: this should produce break/continue out of sync error
while:0,'==',0
	if:'$dbl','>',2
		break:3
	inc:'$dbl'

============
comment: while->while break test, should show exactly one msgbox
while:'$dbl','<',1
	while:0,'==',0
		if:'$dbl','>',0
			break
		msgbox:'$dbl'," is dbl val\nShould be shown 1x"
		inc:'$dbl'

comment: while break numLoops
while:0,'==',0
	while:0,'==',0
		if:'$dbl','>',0
			break:2
		msgbox:'$dbl'," is dbl val"
		inc:'$dbl'
	msgbox:'$dbl is dbl val-1st innerloop down\nShould NOT be shown'

=============
comment: while break/continue test
while:0,'==',0
	while:0,'==',0
		if:'$dbl','>',0
			break
		msgbox:'$dbl'," is dbl val\nShould be shown 1x"
		inc:'$dbl'
	inc:'$dbl2'
	if:'$dbl2','<',2
		continue
	msgbox:'1st loop after\nShould be shown 1x'
	break
msgbox:'out of loops\nShould be shown 1x'

===========
comment: while break numLoops(while's) tests
while:0,'==',0
	while:0,'==',0
		if:'$dbl','>',0
			break:2
		msgbox:'$dbl'," is dbl val\nShould be shown 1x"
		inc:'$dbl'
	inc:'$dbl2'
	if:'$dbl2','<',2
		continue
	msgbox:'1st loop after\nShould NOT be shown'
	break
msgbox:'out of loops\nShould be shown 1x'

============
comment: $line usage
msgbox:'line=$line'