Sign in to follow this  
Followers 0
zaetep

User Abbreviations not expanding

6 posts in this topic

Hi,

I just discovered the abbreviation manager. I put my abbreviation (crlf to expand to & @crlf &) in as described and it all looks ok.

When i type the abbreviation in code it turns red but then the space bar does nothing (not even put a space in).

It works fine for the built in ones.

What have i done wrong? i have tryed it with other abbreviations and expansions but it still doesn't work.

zetaep

Share this post


Link to post
Share on other sites



abbreviation manager

Where is it located ?


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

Tools >> SciTE Config >> Other Tools.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

I just discovered the abbreviation manager. I put my abbreviation (crlf to expand to & @crlf &) in as described and it all looks ok.

When i type the abbreviation in code it turns red but then the space bar does nothing (not even put a space in).

It works fine for the built in ones.

What have i done wrong? i have tryed it with other abbreviations and expansions but it still doesn't work.

 

What is the content of: abbrev.properties and au3UserAbbrev.properties?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

au3userabbrev.properties contains:

# AutoIt3 User properties
crl=& @crlf &

 

Gets to crl, goes red and then won't let me press space.

 

au3abbrev.properties contains:

# Global abbreviations file for SciTE
# Place this file in your home directory, that is, the same directory
# as the user options file.
# Contains a list of entries of the form abbreviation=expansion
# Type the abbreviation and press Ctrl+B to insert the expansion
# The '|' marke the position the caret will be after expansion.

#main=int main(int argc, char *argv[]) {n|n}
#i=if (|) {nn}
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
Created by UpdateDefs  (don't change anything between the dashed lines)
#------------------------------------------------------------
# ' Global abbreviations file for SciTE (abbrev.properties) Apr.13.2005 '
# ' Contains a list of entries of the form abbreviation=expansion '
# ' Type the abbreviation and press Spacebar to insert the expansion '
# ' "|" marks the position the caret will be after expansion. '
# ' "n" marks a carriage return. "t" marks a Tab. '

#- 'A B B R E V I A T I O N S  F O R  A U T O I T  F I N A L' -#

#; -- Files -- (use ctrl+b for this group)
au3check=C:Program FilesAutoit3SciTeAu3CheckAu3Check.exe|
autoit3=C:Program FilesAutoit3AutoIt3.exe|
aut2exe=C:Program FilesAutoIt3Aut2ExeAut2Exe.exe|
datbeta=C:Program FilesAutoIt3SciTeDefsunstableAu3Checkau3check.dat|
datfinal=C:Program FilesAutoIt3SciTeDefsProductionAu3Checkau3check.dat|
icon=C:Program FilesAutoIt3Aut2ExeIcons|.ico
scite=C:Program FilesAutoit3SciTeSciTe.exe|

#; -- Directories -- (use ctrl+b for this group)
autoit3dir=C:Program FilesAutoIt3|
aut2exedir=C:Program FilesAutoIt3Aut2Exe|
icondir=C:Program FilesAutoIt3Aut2ExeIcons|
includedir=C:Program FilesAutoIt3Include|
scitedir=C:Program FilesAutoit3SciTe|

#; -- Variables --
chk=$Checkbox_|
edt=$Edit_|
inp=$Input_|
lbl=$Label_|
but=$Button_|
rad=$Radio_|
tab=$Tab_|

error=$Error |
result=$Result |

#; -- Constant GUICtrlRead --
gchecked=$GUI_CHECKED|
gunchecked=$GUI_UNCHECKED|

#; -- Constant GUICtrlState --
genable=$GUI_ENABLE|
gdisable=$GUI_DISABLE|
ghide=$GUI_HIDE|
gshow=$GUI_SHOW|
gfocus=$GUI_FOCUS|

#; -- Events and messages --
eclose=$GUI_EVENT_CLOSE|
emin=$GUI_EVENT_MINIMIZE|
erestore=$GUI_EVENT_RESTORE|
emax=$GUI_EVENT_MAXIMIZE|

#; -- PreSelected Commands --
cmd=RunWait(@ComSpec & ' /c |', '', @SW_HIDE)n
slp1=Sleep(1000)n|
slp2=Sleep(2000)n|
slp3=Sleep(3000)n|
slp4=Sleep(4000)n|
slp5=Sleep(5000)n|

#; -- GUI Common Prefixes to Functions --
gcc=GUICtrlCreate|
gcs=GUICtrlSet|

#; -- Macro's --
cr1=& @CRLF |
cr2=& @CRLF & @CRLF |
cr3=& @CRLF & @CRLF & @CRLF |
cr4=& @CRLF & @CRLF & @CRLF & @CRLF |
cr5=& @CRLF & @CRLF & @CRLF & @CRLF & @CRLF |
tab1=& @TAB |
tab2=& @TAB & @TAB |
tab3=& @TAB & @TAB & @TAB |
tab4=& @TAB & @TAB & @TAB & @TAB |
tab5=& @TAB & @TAB & @TAB & @TAB & @TAB |
lf1=& @LF |
lf2=& @LF & @LF |
lf3=& @LF & @LF & @LF |
lf4=& @LF & @LF & @LF & @LF |
lf5=& @LF & @LF & @LF & @LF & @LF |

#; -- Keywords --
cl=ContinueLoop|
el=ExitLoop|
err=@Error |
ext=@Extended |

#; -- Directives --
include=#include <GUIConstants.au3>n|
includeonce=#include-oncen|
reg=#Region - |nn
ereg=#EndRegionnn|
nti=#NoTrayIconnn|

#; -- Multiline Functions --
ifthen=If | ThennEndIf
ifelse=If | ThennElsenEndIf
ifelseif=If | ThennElseIf nElsenEndIf
dountil=Dont|nUntil
fornext=For $i = | To  Step 1nNext
fun=Func _|()nEndFunc
selectcase=SelectnntCase |ntntCase ntntCase ntntCase ntntCase Else ntnEndSelectn
more=|nntCase nttntCase nntCase nntCase nntCase Elset
whilewend=While |nWEnd

#; -- Start of Functions --
for0=For $i = 0 To |
for0ub=For $i = 0 To UBound(|)
for1=For $i = 1 To |
for1ub=For $i = 1 To UBound(|)

#; -- GUI setup --
setupgui=#include <GUIConstants.au3>nn#Region - GUI CreatennGUICreate(|)nn#EndRegionnnGUISetState(@SW_SHOW)nnselectloopnnfunctions
selectloop=#Region - GUI SelectLoopnnWhile 1nt$msg = GUIGetMsg()nnSelectnntCase $msg = -3 ;$GUI_EVENT_CLOSEntExitnntCase $msg = |ntntCase $msg = ntntCase $msg = ntntCase $msg = ntntCase $msg = ntnEndSelectnnWEndn#EndRegion
moremsg=$msg = |nntCase $msg = nttntCase $msg = nntCase $msg = nntCase $msg = nntCase $msg =nt
functions=; Start - FunctionsnnFunc _|A()nEndFuncnnFunc _B()nEndFuncnnFunc _C()nEndFuncnnFunc _D()nEndFuncnnFunc _E()nEndFuncnnFunc _F()nEndFuncnnFunc _G()nEndFuncnnFunc _H()nEndFuncnnFunc _I()nEndFuncnnFunc _J()nEndFunc

#; -- Special functions --
selfdelete=Func _SelfDelete()ntLocal $cmdfilentFileDelete(@TempDir & "scratch.cmd")nt$cmdfile = ':loop' & @CRLF _nttt& 'del "' & @ScriptFullPath & '"' & @CRLF _nttt& 'if exist "' & @ScriptFullPath & '" goto loop' & @CRLF _nttt& 'del ' & @TempDir & 'scratch.cmd'ntFileWrite(@TempDir & "scratch.cmd", $cmdfile)ntRun(@TempDir & "scratch.cmd", @TempDir, @SW_HIDE)nEndFuncn|

#; -- Compiler Directives + Options --
compiler=#Region - Compiler Directivesnn#Compiler_Prompt = yn#Compiler_AutoIt3 = n#Compiler_Aut2Exe = n#Compiler_Icon = n#Compiler_OutFile =n#Compiler_Compression = 2n#Compiler_Allow_Decompile = yn#Compiler_PassPhrase = n#Compiler_Res_Comment = n#Compiler_Res_Description = n#Compiler_Res_Fileversion = 0.0.0.0n#Compiler_Res_LegalCopyright = n#Compiler_Res_Field = Platformn#Compiler_Res_Field = AutoIt Versionn#Compiler_Run_AU3Check = yn#Compiler_AU3Check_Dat = n#Compiler_Run_Before = n#Compiler_Run_After = n#EndRegionnn
options=#Region - Optionsnn;~ Opt('CaretCoordMode', 0)ttt; 1 = Absolute screen coordinates, 0 = Relative coords to the active window.n;~ Opt('ColorMode', 1)tttt; 0 = Colors are defined as RGB (0xRRGGBB), 1 = Colors are defined as BGR (0xBBGGRR).n;~ Opt('ExpandEnvStrings', 1)tt; 0 = Don't expand, 1 = Do expand (Use %dos% variables in strings).n;~ Opt('ExpandVarStrings', 1)tt; 0 = Don't expand, 1 = Do expand (Use $autoit$ variables in strings).n;~ Opt('FtpBinaryMode', 0)ttt; 1 = Binary transfer, 0 = ASCII transfer.n;~ Opt('GUICloseOnESC', 0)ttt; 1 = Send the $GUI_EVENT_CLOSE message when ESC is pressed (default).n; ttttttttt  0 = Don't send the $GUI_EVENT_CLOSE message when ESC is pressed.n;~ Opt('GUICoordMode', 2)ttt; 1 = Absolute coordinates still relative to the dialog box.n; ttttttttt  0 = Relative position to the start of the last control (Upper left corner).n; ttttttttt  2 = Cell positionining relative to current cell.n;~ Opt('GUIOnEventMode', 1)ttt; 0 = Disable, 1 = Enable.n;~ Opt('GUIResizeMode', 1)ttt; 0 = No resizing, <1024 = Anytype of resizing (Reference: GuiCtrlSetResizing).n;~ Opt('MouseClickDelay', 10)tt; ? = 10 milliseconds.n;~ Opt('MouseClickDownDelay', 10)t; ? = 10 milliseconds.n;~ Opt('MouseClickDragDelay', 250)t; ? = 250 milliseconds.n;~ Opt('MouseCoordMode', 0)ttt; 1 = Absolute, 0 = Relative to active window, 2 = Relative to client area.n;~ Opt('MustDeclareVars', 1)tt; 0 = No, 1 = Require pre-declare.n;~ Opt('OnExitFunc', '')ttt; ''  Sets the name of the function called when AutoIt exits (Default is OnAutoItExit).n;~ Opt('PixelCoordMode', 0)ttt; 1 = Absolute, 0 = relative, 2 = Relative coords to the client area.n;~ Opt('RunErrorsFatal', 0)ttt; 1 = Fatal, 0 = Silent set @error.n;~ Opt('SendAttachMode', 1)ttt; 0 = Don't attach, 1 = Attach.n;~ Opt('SendCapslockMode', 0)tt; 1 = Store and restore, 0 = Don't store/restore.n;~ Opt('SendKeyDelay', 5)ttt; ? = 5 milliseconds.n;~ Opt('SendKeyDownDelay', 1)tt; ? = 1 millisecond.n;~ Opt('TrayIconDebug', 1)ttt; 0 = No info, 1 = Debug line info.n;~ Opt('TrayIconHide', 1)ttt; 0 = Show, 1 = Hide.n;~ Opt('WinDetectHiddenText', 1)t; 0 = Don't detect, 1=Do detect.n;~ Opt('WinSearchChildren', 1)tt; 0 = No, 1 = Search children also.n;~ Opt('WinTextMatchMode', 4)tt; 1 = Complete / Slow mode, 2 = Quick mode.n;~ Opt('WinTitleMatchMode', 4)tt; 1 = Start, 2 = SubString, 3 = Exact, 4 = ...n;~ Opt('WinWaitDelay', 250)ttt; ? = 250 milliseconds.n#EndRegionnn

#; -- Templates --
setupudf=#Region - |nn;===============================================================================n;n; Description:tt:n; Parameter(s):tt:n; Requirement:tt:n; Return Value(s):t:n; User CallTip:tt:n; Author(s):tt:n; Note(s):ttt:n;n;===============================================================================nn; Insert script here.n#EndRegionnn

################ 'All Functions' ################

#; -- Misc Functions --
#~ abs
#~ acos
ad=AdlibDisable()|
ae=AdlibEnable(|)
#~ asc
#~ asin
as=Assign(|)
#~ atan
aso=AutoitSetOption(|)
awgt=AutoitWinGetTitle()|
awst=AutoitWinSetTitle(|)
ba=BitAND(|)
bn=BitNOT(|)
bo=BitOR(|)
bs=BitShift(|)
bx=BitXOR(|)
bi=BlockInput(|)
br=Break(|)
#~ call
cdt=CDTray(|)
#~ chr
cg=ClipGet()|
cp=ClipPut(|)
cw=ConsoleWrite(| & @LF)

#; -- Control Functions --
ccl=ControlClick(|)
cco=ControlCommand(|)
cd=ControlDisable(|)
ce=ControlEnable(|)
cf=ControlFocus(|)
cgf=ControlGetFocus(|)
cgh=ControlGetHandle(|)
cgp=ControlGetPos(|)
cgt=ControlGetText(|)
ch=ControlHide(|)
clv=ControlListView(|)
cm=ControlMove(|)
cs=ControlSend(|)
cst=ControlSetText(|)
csh=ControlShow(|)

#~ cos
#~ dec

#; -- Dir Functions --
dco=DirCopy(|)
dcr=DirCreate(|)
dgs=DirGetSize(|)
dm=DirMove(|)
dr=DirRemove(|)

dll=DllCall(|)
dllc=DllClose(|)
dllo=DllOpen(|)

#; -- Drive Functions --
dgd=DriveGetDrive(|)
dgfs=DriveGetFileSystem(|)
dgl=DriveGetLabel(|)
dgs=DriveGetSerial(|)
dgt=DriveGetType(|)
dma=DriveMapAdd(|)
dmd=DriveMapDel(|)
dmg=DriveMapGet(|)
dsl=DriveSetLabel(|)
dsf=DriveSpaceFree(|)
dst=DriveSpaceTotal(|)
ds=DriveStatus(|)

eg=EnvGet(|)
es=EnvSet(|)
eu=EnvUpdate()|
#~ eval
#~ exp

#; -- File Functions --
fcd=FileChangeDir(|)
fcl=FileClose(|)
fco=FileCopy(|)
fcs=FileCreateShortcut(|)
fd=FileDelete(|)
fe=FileExists(|)
ffff=FileFindFirstFile(|)
ffnf=FileFindNextFile(|)
fga=FileGetAttrib(|)
fgln=FileGetLongName(|)
fgs=FileGetShortcut(|)
fgsn=FileGetShortName(|)
fgsi=FileGetSize(|)
fgt=FileGetTime(|)
fgv=FileGetVersion(|)
fi=FileInstall(|)
fm=FileMove(|)
fo=FileOpen(|)
fod=FileOpenDialog(|)
fr=FileRead(|)
frl=FileReadLine(|)
frc=FileRecycle(|)
frce=FileRecycleEmpty(|)
fsd=FileSaveDialog(|)
fsf=FileSelectFolder(|)
fsa=FileSetAttrib(|)
fst=FileSetTime(|)
fw=FileWrite(|)
fwl=FileWriteLine(|)

fsp=FtpSetProxy(|)

#; --  GUI Functions --
gc=GUICreate(|)
gcca=GUICtrlCreateAvi(|)
gccb=GUICtrlCreateButton(|)
gcccb=GUICtrlCreateCheckbox(|)
gccc=GUICtrlCreateCombo(|)
gcccm=GUICtrlCreateContextMenu(|)
gccda=GUICtrlCreateDate(|)
gccdu=GUICtrlCreateDummy()|
gcce=GUICtrlCreateEdit(|)
gccg=GUICtrlCreateGroup(|)
gccgc=GUICtrlCreateGroup('', -99, -99, 1, 1) ; Close group.n|
gccico=GUICtrlCreateIcon(|)
gcci=GUICtrlCreateInput(|)
gccla=GUICtrlCreateLabel(|)
gccli=GUICtrlCreateList(|)
gccm=GUICtrlCreateMenu(|)
gccmi=GUICtrlCreateMenuItem(|)
gccpi=GUICtrlCreatePic(|)
gccpr=GUICtrlCreateProgress(|)
gccr=GUICtrlCreateRadio(|)
gccs=GUICtrlCreateSlider(|)
gcct=GUICtrlCreateTab(|)
gccti=GUICtrlCreateTabItem(|)
gcctic=GUICtrlCreateTabItem('') ; Close tabitem.n|
gcctv=GUICtrlCreateTreeView(|)
gcctvi=GUICtrlCreateTreeViewItem(|)
gccu=GUICtrlCreateUpdown(|)
gcd=GUICtrlDelete(|)
gcgs=GUICtrlGetState(|)
gcr=GUICtrlRead(|)
gcrm=GUICtrlRecvMsg(|)
gcsm=GUICtrlSendMsg(|)
gcstd=GUICtrlSendToDummy(|)
gcsbc=GUICtrlSetBkColor(|)
gcsco=GUICtrlSetColor(|)
gcscu=GUICtrlSetCursor(|)
gcsd=GUICtrlSetData(|)
gcsf=GUICtrlSetFont(|)
gcsi=GUICtrlSetImage(|)
gcsl=GUICtrlSetLimit(|)
gcsoe=GUICtrlSetOnEvent(|)
gcsp=GUICtrlSetPos(|)
gcsr=GUICtrlSetResizing(|)
gcss=GUICtrlSetState(|)
gcsst=GUICtrlSetStyle(|)
gcst=GUICtrlSetTip(|)
gd=GUIDelete(|)
ggci=GUIGetCursorInfo(|)
ggm=GUIGetMsg(|)
gsbc=GUISetBkColor(|)
gsc=GUISetCoord(|)
gscu=GUISetCursor(|)
gsf=GUISetFont(|)
gsh=GUISetHelp(|)
gsi=GUISetIcon(|)
gsoe=GUISetOnEvent(|)
gss=GUISetState(|)
gsg=GUIStartgroup(|)
gs=GUISwitch(|)

#~ hex
hks=HotKeySet(|)
hsp=httpSetProxy(|)
ig=InetGet(|)
igs=InetGetSize(|)

id=IniDelete(|)
ir=IniRead(|)
irs=IniReadSection(|)
irsn=IniReadSectionNames(|)
iw=IniWrite(|)

ib=InputBox(|)

#~ int
isad=IsAdmin()|
isar=IsArray(|)
isd=IsDeclared(|)
isf=IsFloat(|)
isi=IsInt(|)
isn=IsNumber(|)
iss=IsString(|)
#~ log
mgs=MemGetStats()|
#~ mod

#; --  Mouse Functions --
mc=MouseClick(|)
mcd=MouseClickDrag(|)
md=MouseDown(|)
mgc=MouseGetCursor()|
mgp=MouseGetPos()|
mm=MouseMove(|)
mu=MouseUp(|)
mw=MouseWheel(|)

mb=MsgBox(|)
num=Number(|)
#~ opt
#~ ping
pcs=PixelChecksum(|)
pgc=PixelGetColor(|)
ps=PixelSearch(|)

#; -- Process Functions --
pc=ProcessClose(|)
pe=ProcessExists(|)
pl=ProcessList(|)
psp=ProcessSetPriority(|)
pw=ProcessWait(|)
pwc=ProcessWaitClose(|)

poff=ProgressOff()|
pon=ProgressOn(|)
pset=ProgressSet(|)

rdm=Random(|)
rd=RegDelete(|)
rek=RegEnumKey(|)
rev=RegEnumVal(|)

rr=RegRead(|)
rw=RegWrite(|)

rnd=Round(|)

#~ run
ras=RunAsSet(|)
rwa=RunWait(|)

#~ send

se=SetError(|)
sex=SetExtended(|)
sd=Shutdown(|)
#~ sin

slp=Sleep(|)

sp=SoundPlay(|)
sswv=SoundSetWaveVolume(|)

sio=SplashImageOn(|)
so=SplashOff()|
sto=SplashTextOn(|)

#~ sqrt
sbgt=StatusbarGetText(|)

#; -- String Functions --
stri=String(|)
sacr=StringAddCR(|)
sf=StringFormat(|)
sis=StringInStr(|)
sian=StringIsAlNum(|)
sia=StringIsAlpha(|)
siascii=StringIsASCII(|)
sid=StringIsDigit(|)
sif=StringIsFloat(|)
sii=StringIsInt(|)
sil=StringIsLower(|)
sisp=StringIsSpace(|)
siu=StringIsUpper(|)
sixd=StringIsXDigit(|)
sl=StringLeft(|)
slen=StringLen(|)
slower=StringLower(|)
sm=StringMid(|)
srep=StringReplace(|)
sr=StringRight(|)
ss=StringSplit(|)
sscr=StringStripCR(|)
ssws=StringStripWS(|)
stl=StringTrimLeft(|)
str=StringTrimRight(|)
supper=StringUpper(|)

#; -- Misc Functions --
#~ tan
td=TimerDiff(|)
ti=TimerInit()|
toolt=ToolTip(|)

#; -- Tray Functions --
tt=TrayTip(|)

ub=UBound(|)

#; -- Window Functions --
wat=WinActivate(|)
wa=WinActive(|)
wc=WinClose(|)
we=WinExists(|)
wgcp=WinGetCaretPos()|
wgcl=WinGetClassList(|)
wgcs=WinGetClientSize(|)
wgh=WinGetHandle(|)
wgpo=WinGetPos(|)
wgpr=WinGetProcess(|)
wgs=WinGetState(|)
wgte=WinGetText(|)
wgti=WinGetTitle(|)
wk=WinKill(|)
wl=WinList(|)
wmsi=WinMenuSelectItem(|)
wma=WinMinimizeAll()|
wmau=WinMinimizeAllUndo()|
wm=WinMove(|)
wsot=WinSetOnTop(|)
wss=WinSetState(|)
wst=WinSetTitle(|)
wstr=WinSetTrans(|)
ww=WinWait(|)
wwa=WinWaitActive(|)
wwc=WinWaitClose(|)
wwna=WinWaitNotActive(|)
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Edited by Melba23
Added spoiler to reduce post size

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • Simpel
      By Simpel
      Hi.
      I like to use au3 abbreviations. 'mb2' is often used. But I don't remember them very long. So I wanted to have a little tool looking for it.
      This tool is embedded as a command inside SciTE.
      First the tool itself:
      #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_Comment=Looks for an au3-abbreviation of a word in Clipboard or $CmdLine. #AutoIt3Wrapper_Res_Description=Looks for an au3-abbreviation of a word in Clipboard or $CmdLine. #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_LegalCopyright=Simpel #AutoIt3Wrapper_Res_Language=1031 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <File.au3> Global $Ini = @ScriptDir & "\au3abbrev.ini" Global $au3abbrev = "PUT IN HERE THE PATH TO\au3abbrev.properties" ; mine is at …\AutoIt3\SciTE\au3abbrev.properties Global $aGetEntries Global $sSearch, $sOutput FileCopy($au3abbrev, $Ini, 1) ; make an ini from the properties file _FileWriteToLine($Ini, 1, "[Dictionary]") ; inserting '[Dictionary]' at first line, to make ini searchable #Region - Look for the right searchstring If StringLeft($CmdLineRaw, 13) = "/ErrorStdOut " Then ; if not compiled but run with F5 to test $sSearch = ClipGet() ElseIf $CmdLineRaw <> "" Then $sSearch = $CmdLineRaw ElseIf ClipGet() <> "" Then $sSearch = ClipGet() Else MsgBox(0, 'Fehler', "Kein Wort zum Suchen gefunden.") ; error Exit EndIf #EndRegion _GetDefinition() $sSearch = _Clean($sSearch) $sOutput = _Search($sSearch) MsgBox(0, 'au3abbrev.properties', "Ergebnisse für '" & $sSearch & "':" & @CRLF & @CRLF & $sOutput) Exit #Region - Functions Func _GetDefinition() If FileExists($Ini) Then $aGetEntries = IniReadSection($Ini, "Dictionary") If @error Then MsgBox(0, 'Fehler', "Keine Sektion [Dictionary] gefunden.") ; if inserting of "[Dictionary]" failed Exit EndIf EndIf EndFunc Func _Search($sInput) Local $iCounter = 1 Local $sfOutput For $i = 1 To $aGetEntries[0][0] If StringInStr($aGetEntries[$i][1], $sInput) Then ; something is found $sfOutput = $sfOutput & _Clean($aGetEntries[$i][0]) & @TAB & _Clean($aGetEntries[$i][1]) & @CRLF & @CRLF $iCounter = $iCounter + 1 EndIf Next If $sfOutput = "" Then $sfOutput = "KEINE ÜBEREINSTIMMUNG" ; no matches found EndIf Return $sfOutput EndFunc Func _Clean($sData) $sData = StringReplace($sData, "|", "") ; erases "|" because it causes the array to jump to the next entry $sData = StringReplace($sData, '"', "") ; erases '"' because it sometimes causes the array to jump to the next entry Return $sData EndFunc #EndRegion And now the part at SciTEUser:
      # 41 LookAU3Abbrev command.41.*="H:\_Conrad lokal\Downloads\AutoIt3\_COX\AU3-Abkuerzung.exe" "$(CurrentSelection)" command.name.41.*=Look Abbrev command.shortcut.41.*=Ctrl+Shift+Alt+A command.save.before.41.$(au3)=2 So I mark a regular AutoIt command inside SciTE (with double clicking) and press Ctrl+Shift+Alt+A. I will get a messagebox as answer what abbreviations will contain my sended command. But be careful, not all of these listed abbreviations will expand with space while coding. Abbreviations you want to use have the be declared inside the au3abbrev.keyword.properties(?)
      Any suggestions?
      Regards, Conrad
    • mLipok
      By mLipok
      I compare setupudf abbreviation 
      with 
      http://www.autoitscript.com/wiki/UDF-spec
      and
      I wondered why these two definitions are different.
       
      So I make my self some abbreviations ( udfset udffun udfstr )
      udffun=; #FUNCTION# ====================================================================================================================\n; Name ..........: ?\n; Description ...: ?\n; Syntax ........: ?\n; Parameters ....: ?\n; ? - ?\n; ? - ?\n; Return values .: Success - ?\n; Failure - ?\n; Author ........: ?\n; Modified ......: ?\n; Remarks .......: ?\n; ?\n; Related .......: ?, ?, ?\n; Link ..........: ?\n; Example .......: Yes No\n; ===============================================================================================================================\n; udfstr=; #STRUCTURE# ===================================================================================================================\n; Name ..........: ?\n; Description ...: ?\n; Fields ........: ?\n; Author ........: ?\n; Remarks .......: ?\n; Related .......: ?\n; ===============================================================================================================================\n; udfset=; #INDEX# =======================================================================================================================\n; Title .........: ?\n; AutoIt Version : 3.3.10.2++\n; Description ...: ?\n; Author(s) .....: ?\n; Dll ...........: ?\n; ===============================================================================================================================\n\n; #VARIABLES# ===================================================================================================================\nGlobal $__gvMyGlobal = 0\n; ===============================================================================================================================\n\n; #CONSTANTS# ===================================================================================================================\nGlobal Const $__MYUDFCONSTANT_FOOBAR = 42\n; ===============================================================================================================================\n\n; #CURRENT# =====================================================================================================================\n;$tagSTRUCT\n;_MyUDF_Function\n; ===============================================================================================================================\n\n; #INTERNAL_USE_ONLY# ===========================================================================================================\n;$tagINTERNALSTRUCT\n;__MyUDF_InternalFunction\n; ===============================================================================================================================\n\n; #NO_DOC_FUNCTION# =============================================================================================================\n;_MyUDF_Function\n; ===============================================================================================================================\n\n; #NO_DOC_FUNCTION# =============================================================================================================\n;_MyUDF_OldFunction ; --> _MyUDF_NewFunction\n; ===============================================================================================================================\n What you think about this ?
      It is possible that I made some mistakes, especially with regard to the Convention creating the UDF file.
      I would ask you to verify.
      Best regards
      mLipok