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:   break continue getcreatetmpdir getpathnamefromtclikepack waittmpdir sendmessage postmessage getlasterror getspecialfolder qboxfile qboxfileedit qboxfiledrawers
comment:   showmsgswnd setcliptext processevents strlen strcut
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",0
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"
comment: msgbox:'passed arg1=$arg1, numArgs=$nclargs'
comment: run:'simmxtools "showmsgswnd"'

comment: placewindow:"window",0-8[,msToWaitForItDef=0,width(+valuesAre%,-valuesArePixels,def=0DontUse),height(sameAsForWidth)]
comment: positionwindow:"window",msToWaitForItMayBe0,x,y,w,h

comment: qboxfile:'qbox.txt'								<=qboxfile:'textfile.any'(mayBeUtf8)[,number(asqtf,def=0)][,str(title,def="simmxtools")]
comment: qboxfile:'qboxqtf.txt',1
comment: qboxfileedit:'qboxedit.txt'				<=qboxfileedit:'file'(mayBeUtf8)
comment: qboxfiledrawers:'qboxdrawers.txt'	<=qboxfiledrawers:'textfile.any'[,number(StructAlignment,def=4)]

comment: qtfedit[:'qtf/rtf-file']

comment: usage
comment: strlen:'str' <=$resdbl
comment: strcut:'str',start[,num] <=$res


==========
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
placewindow:"notepad",1,0,40,100
sleep:2000
positionwindow:"notepad",0,0,0,500,400
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 =====
msgbox:':: qbox demo stuff'
qboxfile:'qbox.txt'
qboxfile:'qboxqtf.txt',1
qboxfileedit:'qboxedit.txt'
qboxfiledrawers:'qboxdrawers.txt'

msgbox:':: qtf edit test'
qtfedit:'Document2.qtf'

msgbox:':: now calling simmxtools through -test arg and other demos'
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

placewindow:"notepad",1,0,40,100
sleep:2000
positionwindow:"notepad",0,100,100,500,400
sendkeys:'demo{SPACE}finished!'

msgbox:':: Now, for plugin test\n  it'll try yesnodlg and write 'createdwithplugin.txt' file!'
msgboxyesno:'Press Yes or No'
msgbox:'1=yes/0=no\nYou pressed ','$res'
filewrite:'createdwithplugin.txt','some text\ntextile texting string!',1
msgbox:"Note:\n run again to see dialog asking you to confirm file re-write!\n\nThe last line of this script is on line $line'
=== 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'

============
comment: total commander - get 'packed'(orNot) 'temp' dir contents(somethingThatTcDoesWhen_UnpackAllAndExecute), so zipped(orNot) current contents can be accessed with tools like they are already unpacked
setgetwindowmode:'asclassname'
focuswnd:'TTOTAL_CMD'
comment: 509UnpackAll,690about

getpathnamefromtclikepack:'$str1','$arg1','$arg2'
set:'$str','$res'
comment:msgbox:'res=$res str=$str tmpret=$str1'
if:'$str1'
	setcliptext:'$str1'
	postmessage:'TTOTAL_CMD',1075,509,0
comment:focuswnd:'TDLGUNZIPALL'
	sleep:20
	sendkeys:"{LCONTROL}v"
	sleep:20
	sendkeys:'{RETURN}'
	sleep:20

comment:msgbox:'passed args will be $str $arg1 $arg2'
comment:msgbox:'run xul will be: $str'
run:'cmd /c start D:\za_progs\xulrunner\xulviewer\setandstart.bat -xr "d:\programiranje\xulRunner\XULRunnerLatest\xulrunner.exe" "$str"'
waittmpdir:'$str1'