AutoHotkey Community

It is currently May 27th, 2012, 10:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: May 14th, 2004, 4:13 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
I've created a list with (unoffical) AHK command abbreviations.

If used within a script based on a project like this: Input (for hotstrings and auto-replace), I think it could be helpfull. If you've done that already, feel free to share it with us :wink:

TBH. The command reference is probably incomplete because AHK could have been updated inbetween. Check this out ...

-----

#AllowSameLineComments #ASLC
#CommentFlag #CF
#EscapeChar #EC
#HotkeyInterval #HI
#HotkeyModifierTimeout #HMT
#Include #I
#InstallKeybdHook #IKH
#InstallMouseHook #IMH
#MaxHotkeysPerInterval #MHPI
#MaxThreads #MT
#MaxThreadsBuffer #MTB
#MaxThreadsPerHotkey #MTPH
#NoTrayIcon #NTI
#SingleInstance #SI
#UseHook #UH
#WinActivateForce #WAF
AutoTrim AT
Block B
Break BR
BlockInput BI
Continue CONT
ControlClick CC
ControlFocus CF
ControlGetFocus CGF
ControlGetText CGT
ControlSend CS
ControlSetText CST
ClipWait CW
DetectHiddenText DHT
DetectHiddenWindows DHW
DriveSpaceFree DSF
Else EL
Edit ED
Exit EX
EnvAdd EADD
ExitApp EAPP
EnvDiv EDIV
EnvMult EMUL
EnvSet ESET
EnvSub ESUB
EnvUpdate EUPD
FileAppend FA
FileCopy FC
FileCopyDir FCD
FileCreateDir FCRD
FileCreateShortcut FCS
FileDelete FD
FileGetAttrib FGA
FileGetSize FGS
FileGetTime FGT
FileGetVersion FGV
FileInstall FI
FileMove FM
FileMoveDir FMD
FileRemoveDir FRD
FileReadLine FRL
FileReadLine FRL
FileSetAttrib FSA
FileSelectFile FSFL
FileSelectFolder FSFO
FileSetTime FST
Goto GT
GroupAdd GADD
GroupActivate GA
GroupClose GC
GroupDeactivate GD
GetKeyState GKS
Gosub GSUB
InputBox IB
IniDelete ID
IfExist IEX
IfEqual IEQ
IfIs IFS :lol:
IfInString IIS
IfMsgBox IMB
IniRead IR
IniWrite IW
IfWinActive IWA
IfWinExist IWE
KeyHistory KH
Loop L
LoopFile LF
ListHotkeys LH
ListLines LL
Loop LOOP
LoopParse LP
LoopReg LR
LoopReadFile LRF
ListVars LV
Menu M
MsgBox MB
MouseClick MC
MouseClickDrag MCD
MouseGetPos MGP
MouseMove MM
Pause PAU
PixelGetColor PGC
PixelSearch PS
Run R
Random RAND
RegDelete RD
Reload REL
Return RET
RegRead RGR
RegWrite RGW
Sleep SL
StatusBarGetText SBGT
SetBatchLines SBL
StatusBarWait SBW
SetControlDelay SCD
StringCaseSense SCS
SetDefaultMouseSpeed SDMS
SetEnv SE
SetFormat SF
SoundGet SG
StringGetPos SGP
SoundGetWaveVolume SGWV
Shutdown SHUT
SetKeyDelay SKD
StringLeft SL
StringLen SLEN
StringLower SLO
StringMid SM
SetMouseDelay SMD
Send SND
SetNumScrollCapsLockState SNSCLS
SoundPlay SP
StringReplace SREP
SoundSet SS
SetStoreCapslockMode SSCM
StringSplit SSPL
SoundSetWaveVolume SSWV
SetTimer ST
StringTrimLeft STL
SetTitleMatchMode STMM
SplashTextOn STO
Suspend SUS
SetWinDelay SWD
URLDownloadToFile URLDTF
WinActivate WA
WinActivateBottom WAB
WinClose WC
WinGetActiveStats WGAS
WinGetActiveTitle WGAT
WinGetPos WGP
WinGetTitle WGT
WinGetText WGTX
WinHide WH
WinKill WK
WinMove WM
WinMinimizeAll WMAL
WinMaximize WMAX
WinMinimize WMIN
WinMenuSelectItem WMSI
WinRestore WR
WinShow WS
WinSetTitle WST
WinWait WW
WinWaitActive WWA
WinWaitClose WWC


Last edited by Beastmaster on May 15th, 2004, 3:01 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: AHK - AutoReplace
PostPosted: May 15th, 2004, 12:23 am 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Seems to work smoothly, but I would be very happy if any AHK-PRO could review/tweak its timing. If you input WW you'll get it replaced with WinWait, which is correct -
but you'll get the same if you try to input WWA (= WinWaitActive), which isn't. :oops:

Have phun ... 8)

-----

Code:
ABBREV = ATR,BL,BR,BI,CONT,CC,CF,CGF,CGT,CS,CST,CW,DHT,DHW,DSF,EL,ED,EX,EADD,EAPP,EDIV,EMUL,ESET,ESUB,EUPD,FA,FC,FCD,FCRD,FCS,FD,FGA,FGS,FGT,FGV,FI,FM,FMD,FRD,FRL,FSA,FSFL,FSFO,FST,GT,GADD,GA,GC,GD,GKS,GSUB,IN,IB,ID,IEX,IEQ,IFS,IIS,IMB,IR,IW,IWA,IWE,KH,L,LF,LH,LL,LOOP,LP,LR,LRF,LV,MN,MB,MC,MCD,MGP,MM,PAU,PGC,PS,PMSG,R,RAND,RD,REL,RET,RGR,RGW,SL,SBGT,SBL,SBW,SCD,SCS,SMSG,SDMS,SE,SF,SG,SGP,SGWV,SHUT,SKD,SL,SLEN,SLO,SM,SMD,SND,SCLS,SP,SREP,SS,SSCM,SSPL,SSWV,ST,STL,STMM,STO,SUS,SWD,URLD,WA,WAB,WC,WGAS,WGAT,WGP,WGT,WGTX,WH,WK,WM,WMAL,WMAX,WMIN,WMSI,WR,WS,WST,WW,WWA,WWC,`#WAF,`#UH,#SI,`#NTI,`#MTPH,`#MTB,`#MT,`#MHPI,`#IMH,`#IKH,`#I,`#HMT,`#HI,`#EC,`#CF,`#ASLC
COMMAND = AutoTrim,Block,Break,BlockInput,Continue,ControlClick,ControlFocus,ControlGetFocus,ControlGetText,ControlSend,ControlSetText,ClipWait,DetectHiddenText,DetectHiddenWindows,DriveSpaceFree,Else,Edit,Exit,EnvAdd,ExitApp,EnvDiv,EnvMult,EnvSet,EnvSub,EnvUpdate,FileAppend,FileCopy,FileCopyDir,FileCreateDir,FileCreateShortcut,FileDelete,FileGetAttrib,FileGetSize,FileGetTime,FileGetVersion,FileInstall,FileMove,FileMoveDir,FileRemoveDir,FileReadLine,FileSetAttrib,FileSelectFile,FileSelectFolder,FileSetTime,Goto,GroupAdd,GroupActivate,GroupClose,GroupDeactivate,GetKeyState,Gosub,Input,InputBox,IniDelete,IfExist,IfEqual,IfIs,IfInString,IfMsgBox,IniRead,IniWrite,IfWinActive,IfWinExist,KeyHistory,Loop,LoopFile,ListHotkeys,ListLines,Loop,LoopParse,LoopReg,LoopReadFile,ListVars,Menu,MsgBox,MouseClick,MouseClickDrag,MouseGetPos,MouseMove,Pause,PixelGetColor,PixelSearch,PostMessage,Run,Random,RegDelete,Reload,Return,RegRead,RegWrite,Sleep,StatusBarGetText,SetBatchLines,StatusBarWait,SetControlDelay,StringCaseSense,SendMessage,SetDefaultMouseSpeed,SetEnv,SetFormat,SoundGet,StringGetPos,SoundGetWaveVolume,Shutdown,SetKeyDelay,StringLeft,StringLen,StringLower,StringMid,SetMouseDelay,Send,SetNumScrollCapsLockState,SoundPlay,StringReplace,SoundSet,SetStoreCapslockMode,StringSplit,SoundSetWaveVolume,SetTimer,StringTrimLeft,SetTitleMatchMode,SplashTextOn,Suspend,SetWinDelay,URLDownloadToFile,WinActivate,WinActivateBottom,WinClose,WinGetActiveStats,WinGetActiveTitle,WinGetPos,WinGetTitle,WinGetText,WinHide,WinKill,WinMove,WinMinimizeAll,WinMaximize,WinMinimize,WinMenuSelectItem,WinRestore,WinShow,WinSetTitle,WinWait,WinWaitActive,WinWaitClose,`#WinActivateForce,`#UseHook,`#SingleInstance,`#NoTrayIcon,`#MaxThreadsPerHotkey,`#MaxThreadsBuffer,`#MaxThreads,`#MaxHotkeysPerInterval,`#InstallMouseHook,`#AllowSameLineComments,`#CommentFlag,`#EscapeChar,`#HotkeyInterval,`#HotkeyModifierTimeout,`#Include,`#InstallKeybdHook

StringSplit, COMMAND, COMMAND,`,

~space::
Input, UserInput, VT5L4CI, {enter}`,{tab}{space}, %ABBREV%

SetKeyDelay, -1

Loop, parse, ABBREV, `,
   {
   If A_LoopField = %UserInput%
      {
      StringLen, UILen, UserInput
      StringTrimLeft, AHKCOMMAND, COMMAND%A_Index%, 0
      Send, {backspace %UILen%}%AHKCOMMAND%
      }
   }

return


BTW: It would have been a li'll smarter if AHK would have had included a hash command :cry:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2004, 12:59 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
nice work!....how about extending it to support complete parameters?

and is "IfIs IFS" an undocumented command that we know nothing of? :)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2004, 2:50 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
IfIs - will be part of AHK 12.0.32+ - stay tuned ... :lol:

Two issues I still have with the script:

a) if an abbrev. is positioned directly at the left margin, it won't be detected.

b) it seems to be that the input speed triggers if an abbrev. will be detected/replaced or not (fast-Yes, slow-No). Timing parameter issue ?

-----

Dear guest/AutoIt 2 user: this script (once compiled) should work for A2 code as well, in any editor 8)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2008, 12:38 pm 
Offline

Joined: January 11th, 2008, 11:07 am
Posts: 35
how do use these abbreviations?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group