# SciTE settings for AutoIt v3
#
# jos van der Zande jvdzande@yahoo.com
#

# *** Specify here your AutoIt program directory  ***
autoit3dir=c:\program files\autoit3

file.patterns.au3=*.au3
filter.au3=AutoIt (au3)|*.au3|
lexer.$(file.patterns.au3)=au3
 
# Editor settings
use.monospaced=1
save.session=1

# Commands to compile / run your script 
command.compile.*.au3=$(autoit3dir)\aut2exe\aut2exe.exe /in "$(FilePath)"
command.build.*.au3=$(autoit3dir)\aut2exe\aut2exe.exe /in "$(FilePath)"
command.go.*.au3=$(autoit3dir)\autoit3.exe "$(FilePath)"
command.9.*.au3=tidy\tidy.exe "$(FilePath)"
command.name.9.*.au3=Tidy AutoIt Source
command.save.before.9.*.au3=1
# Commands to for Help F1
command.help.*.au3=$(CurrentWord)!$(autoit3dir)\autoit.chm
command.help.subsystem.*.au3=4
# Autocomplete and call tip settings
api.*.au3=$(SciteDefaultHome)\api\au3.api
calltip.au3.word.characters=$(chars.alpha)$(chars.numeric)
calltip.au3.ignorecase=1
autocomplete.au3.ignorecase=1
# auto indent stuff
indent.size.*.au3=3
indent.automatic=1
indent.opening=0
indent.closing=0
statement.indent.*.au3=5 case if do for else while select
statement.end.*.au3=
block.start.*.au3=5 case if do for else while select
block.end.*.au3=5 else endif endselect next until wend
fold=1

#autoit keywords
keywordclass.au3= and byref case const continuecase continueloop default dim do else elseif endfunc endif endselect \
  endswitch endwith exit exitloop false for func global if in local next not or return redim \
  select step switch then true to until wend with while exit
keywords.$(file.patterns.au3)=$(keywordclass.au3)

#autoit functions
keywords2.$(file.patterns.au3)=  abs acos adlibdisable adlibenable asc asin assign atan autoitsetoption autoitwingettitle autoitwinsettitle \
  beep binarystring bitand bitnot bitor bitrotate bitshift bitxor blockinput break call cdtray \
  ceiling chr clipget clipput consoleread consolewrite consolewriteerror controlclick controlcommand \
  controldisable controlenable controlfocus controlgetfocus controlgethandle controlgetpos controlgettext \
  controlhide controllistview controlmove controlsend controlsettext controlshow cos dec dircopy \
  dircreate dirgetsize dirmove dirremove dllcall dllclose dllopen dllstructcreate dllstructgetdata \
  dllstructgetptr dllstructgetsize dllstructsetdata drivegetdrive drivegetfilesystem drivegetlabel \
  drivegetserial drivegettype drivemapadd drivemapdel drivemapget drivesetlabel drivespacefree \
  drivespacetotal drivestatus envget envset envupdate eval execute exp filechangedir fileclose \
  filecopy filecreatentfslink filecreateshortcut filedelete fileexists filefindfirstfile filefindnextfile \
  filegetattrib filegetlongname filegetshortcut filegetshortname filegetsize filegettime filegetversion \
  fileinstall filemove fileopen fileopendialog fileread filereadline filerecycle filerecycleempty \
  filesavedialog fileselectfolder filesetattrib filesettime filewrite filewriteline floor ftpsetproxy \
  guicreate guictrlcreateavi guictrlcreatebutton guictrlcreatecheckbox guictrlcreatecombo guictrlcreatecontextmenu \
  guictrlcreatedate guictrlcreatedummy guictrlcreateedit guictrlcreategraphic guictrlcreategroup \
  guictrlcreateicon guictrlcreateinput guictrlcreatelabel guictrlcreatelist guictrlcreatelistview \
  guictrlcreatelistviewitem guictrlcreatemenu guictrlcreatemenuitem guictrlcreatemonthcal guictrlcreateobj \
  guictrlcreatepic guictrlcreateprogress guictrlcreateradio guictrlcreateslider guictrlcreatetab \
  guictrlcreatetabitem guictrlcreatetreeview guictrlcreatetreeviewitem guictrlcreateupdown guictrldelete \
  guictrlgethandle guictrlgetstate guictrlread guictrlrecvmsg guictrlregisterlistviewsort guictrlsendmsg \
  guictrlsendtodummy guictrlsetbkcolor guictrlsetcolor guictrlsetcursor guictrlsetdata guictrlsetfont \
  guictrlsetgraphic guictrlsetimage guictrlsetlimit guictrlsetonevent guictrlsetpos guictrlsetresizing \
  guictrlsetstate guictrlsetstyle guictrlsettip guidelete guigetcursorinfo guigetmsg guiregistermsg \
  guisetbkcolor guisetcoord guisetcursor guisetfont guisethelp guiseticon guisetonevent guisetstate \
  guistartgroup guiswitch hex hotkeyset httpsetproxy hwnd inetget inetgetsize inidelete iniread \
  inireadsection inireadsectionnames inirenamesection iniwrite inputbox int isadmin isarray isbinarystring \
  isbool isdeclared isfloat ishwnd isint iskeyword isnumber isobj isstring log memgetstats mod \
  mouseclick mouseclickdrag mousedown mousegetcursor mousegetpos mousemove mouseup mousewheel \
  msgbox number objcreate objevent objget objname ping pixelchecksum pixelgetcolor pixelsearch \
  processclose processexists processlist processsetpriority processwait processwaitclose progressoff \
  progresson progressset random regdelete regenumkey regenumval regread regwrite round run runasset \
  runwait send seterror setextended shutdown sin sleep soundplay soundsetwavevolume splashimageon \
  splashoff splashtexton sqrt statusbargettext stderrread stdinwrite stdoutread string stringaddcr \
  stringformat stringinstr stringisalnum stringisalpha stringisascii stringisdigit stringisfloat \
  stringisint stringislower stringisspace stringisupper stringisxdigit stringleft stringlen stringlower \
  stringmid stringreplace stringright stringsplit stringstripcr stringstripws stringtrimleft \
  stringtrimright stringupper tan tcpaccept tcpclosesocket tcpconnect tcplisten tcpnametoip tcprecv \
  tcpsend tcpshutdown tcpstartup timerdiff timerinit tooltip traycreateitem traycreatemenu traygetmsg \
  trayitemdelete trayitemgethandle trayitemgetstate trayitemgettext trayitemsetonevent trayitemsetstate \
  trayitemsettext traysetclick trayseticon traysetonevent traysetpauseicon traysetstate traysettooltip \
  traytip ubound udpbind udpclosesocket udpopen udprecv udpsend winactivate winactive winclose \
  winexists winflash wingetcaretpos wingetclasslist wingetclientsize wingethandle wingetpos wingetprocess \
  wingetstate wingettext wingettitle winkill winlist winmenuselectitem winminimizeall winminimizeallundo \
  winmove winsetontop winsetstate winsettitle winsettrans winwait winwaitactive winwaitclose \
  winwaitnotactive

#autoit macros
keywords3.$(file.patterns.au3)=  @appdatacommondir @appdatadir @autoitexe @autoitpid @autoitversion @com_eventobj @commonfilesdir \
  @compiled @computername @comspec @cr @crlf @desktopcommondir @desktopdir @desktopheight @desktopwidth \
  @desktopdepth @desktoprefresh @documentscommondir @error @exitcode @exitmethod @extended @favoritescommondir \
  @favoritesdir @gui_ctrlid @gui_ctrlhandle @gui_dragid @gui_dragfile @gui_dropid @gui_winhandle \
  @homedrive @homepath @homeshare @hour @hotkeypressed @inetgetactive @inetgetbytesread @ipaddress1 \
  @ipaddress2 @ipaddress3 @ipaddress4 @lf @logondnsdomain @logondomain @logonserver @mday @min \
  @mon @mydocumentsdir @numparams @osbuild @oslang @osservicepack @ostype @osversion @processorarch \
  @programfilesdir @programscommondir @programsdir @scriptdir @scriptfullpath @scriptlinenumber \
  @scriptname @sec @startmenucommondir @startmenudir @startupcommondir @startupdir @sw_disable \
  @sw_enable @sw_hide @sw_lock @sw_maximize @sw_minimize @sw_restore @sw_show @sw_showdefault \
  @sw_showmaximized @sw_showminimized @sw_showminnoactive @sw_showna @sw_shownoactivate @sw_shownormal \
  @sw_unlock @systemdir @tab @tempdir @tray_id @trayiconflashing @trayiconvisible @userprofiledir \
  @username @wday @windowsdir @workingdir @yday @year
#autoit Sent Keys
keywords4.$(file.patterns.au3)= {!} {#} {^} {{} {}} {+} {alt} {altdown} {appskey} {asc nnnn} {backspace} {browser_back} {browser_favorites} \
{browser_forward} {browser_home} {browser_refresh} {browser_search} {browser_stop} {capslock} {ctrlbreak} \
{ctrldown} {delete} {down} {end} {enter} {escape} {f1} {f10} {f11} {f12} {f2} {f3} {f4} {f5} {f6} {f7} {f8} {f9} \
{home} {insert} {lalt} {launch_app1} {launch_app2} {launch_mail} {launch_media} {lctrl} {left} {lshift} {lwin} \
{lwindown} {media_next} {media_play_pause} {media_prev} {media_stop} {numlock} \
{numpad0} {numpad1} {numpad2} {numpad3} {numpad4} {numpad5} {numpad6} {numpad7} {numpad8} {numpad9} \
{numpadadd} {numpaddiv} {numpaddot} {numpadenter} {numpadmult} {numpadsub} {pause} {pgdn} {pgup} \
{printscreen} {ralt} {rctrl} {right} {rshift} {rwin} {rwindown} {shiftdown} {sleep} {space} {tab} {up} \
{volume_down} {volume_mute} {volume_up}


# These affect the entries on the Edit menu;
# however, use must use ;' as the comment character
# if you want comment coloring to work!
#fold.preprocessor=1
#fold.at.else=1


# White space
style.au3.0=fore:#000000,$(font.au3s)

# Comment line
style.au3.1=fore:#009933,italics

# Comment block
style.au3.2=fore:#669900,italics

# Number
style.au3.3=fore:#CC0099,bold 

# Function
style.au3.4=fore:#000090,bold,italics

# Keyword 
style.au3.5=fore:#0000FF,bold

# Macro
style.au3.6=fore:#FF33FF,bold

# String
style.au3.7=fore:#9999CC,bold

# Operator
style.au3.8=fore:#FF0000,bold

# Variable
style.au3.9=fore:#AA0000,bold

# Sent keys in string
style.au3.10=fore:#FF8800,bold


