AutoHotkey-Scripts/Functions.ahk at master - GitHub

文章推薦指數: 80 %
投票人數:10人

A collection of my AutoHotkey scripts and libraries - AutoHotkey-Scripts/Functions.ahk at master ... IfNotBetween(ByRef var, LowerBound, UpperBound) {. Skiptocontent {{message}} Thisrepositoryhasbeenarchivedbytheowner.Itisnowread-only. Paris / AutoHotkey-Scripts Publicarchive Notifications Fork 34 Star 125 Code Pullrequests 2 Actions Projects 0 Security Insights More Code Pullrequests Actions Projects Security Insights Permalink master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default AutoHotkey-Scripts/Functions.ahk Gotofile Gotofile T Gotoline L Copypath Copypermalink Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository.     Cannotretrievecontributorsatthistime 237lines(233sloc) 6.86KB Raw Blame Editthisfile E OpeninGitHubDesktop OpenwithDesktop Viewraw Viewblame ThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters. LearnmoreaboutbidirectionalUnicodecharacters Showhiddencharacters /* Title:CommandFunctions Awrappersetoffunctionsforcommandswhichhaveanoutputvariable. License: -Version1.41 -Dedicatedtothepublicdomain(CC01.0) */ Functions(){ Return,true } IfBetween(ByRefvar,LowerBound,UpperBound){ Ifvarbetween%LowerBound%and%UpperBound% Return,true } IfNotBetween(ByRefvar,LowerBound,UpperBound){ Ifvarnotbetween%LowerBound%and%UpperBound% Return,true } IfIn(ByRefvar,MatchList){ Ifvarin%MatchList% Return,true } IfNotIn(ByRefvar,MatchList){ Ifvarnotin%MatchList% Return,true } IfContains(ByRefvar,MatchList){ Ifvarcontains%MatchList% Return,true } IfNotContains(ByRefvar,MatchList){ Ifvarnotcontains%MatchList% Return,true } IfIs(ByRefvar,type){ Ifvaris%type% Return,true } IfIsNot(ByRefvar,type){ Ifvarisnot%type% Return,true } ControlGet(Cmd,Value="",Control="",WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ ControlGet,v,%Cmd%,%Value%,%Control%,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } ControlGetFocus(WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ ControlGetFocus,v,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } ControlGetText(Control="",WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ ControlGetText,v,%Control%,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } DriveGet(Cmd,Value=""){ DriveGet,v,%Cmd%,%Value% Return,v } DriveSpaceFree(Path){ DriveSpaceFree,v,%Path% Return,v } EnvGet(EnvVarName){ EnvGet,v,%EnvVarName% Return,v } FileGetAttrib(Filename=""){ FileGetAttrib,v,%Filename% Return,v } FileGetShortcut(LinkFile,ByRefOutTarget="",ByRefOutDir="",ByRefOutArgs="",ByRefOutDescription="",ByRefOutIcon="",ByRefOutIconNum="",ByRefOutRunState=""){ FileGetShortcut,%LinkFile%,OutTarget,OutDir,OutArgs,OutDescription,OutIcon,OutIconNum,OutRunState } FileGetSize(Filename="",Units=""){ FileGetSize,v,%Filename%,%Units% Return,v } FileGetTime(Filename="",WhichTime=""){ FileGetTime,v,%Filename%,%WhichTime% Return,v } FileGetVersion(Filename=""){ FileGetVersion,v,%Filename% Return,v } FileRead(Filename){ FileRead,v,%Filename% Return,v } FileReadLine(Filename,LineNum){ FileReadLine,v,%Filename%,%LineNum% Return,v } FileSelectFile(Options="",RootDir="",Prompt="",Filter=""){ FileSelectFile,v,%Options%,%RootDir%,%Prompt%,%Filter% Return,v } FileSelectFolder(StartingFolder="",Options="",Prompt=""){ FileSelectFolder,v,%StartingFolder%,%Options%,%Prompt% Return,v } FormatTime(YYYYMMDDHH24MISS="",Format=""){ FormatTime,v,%YYYYMMDDHH24MISS%,%Format% Return,v } GetKeyState(WhichKey,Mode=""){ GetKeyState,v,%WhichKey%,%Mode% Return,v } GuiControlGet(Subcommand="",ControlID="",Param4=""){ GuiControlGet,v,%Subcommand%,%ControlID%,%Param4% Return,v } ImageSearch(ByRefOutputVarX,ByRefOutputVarY,X1,Y1,X2,Y2,ImageFile){ ImageSearch,OutputVarX,OutputVarY,%X1%,%Y1%,%X2%,%Y2%,%ImageFile% } IniRead(Filename,Section,Key,Default=""){ IniRead,v,%Filename%,%Section%,%Key%,%Default% Return,v } Input(Options="",EndKeys="",MatchList=""){ Input,v,%Options%,%EndKeys%,%MatchList% Return,v } InputBox(Title="",Prompt="",HIDE="",Width="",Height="",X="",Y="",Font="",Timeout="",Default=""){ InputBox,v,%Title%,%Prompt%,%HIDE%,%Width%,%Height%,%X%,%Y%,,%Timeout%,%Default% Return,v } MouseGetPos(ByRefOutputVarX="",ByRefOutputVarY="",ByRefOutputVarWin="",ByRefOutputVarControl="",Mode=""){ MouseGetPos,OutputVarX,OutputVarY,OutputVarWin,OutputVarControl,%Mode% } PixelGetColor(X,Y,RGB=""){ PixelGetColor,v,%X%,%Y%,%RGB% Return,v } PixelSearch(ByRefOutputVarX,ByRefOutputVarY,X1,Y1,X2,Y2,ColorID,Variation="",Mode=""){ PixelSearch,OutputVarX,OutputVarY,%X1%,%Y1%,%X2%,%Y2%,%ColorID%,%Variation%,%Mode% } Random(Min="",Max=""){ Random,v,%Min%,%Max% Return,v } RegRead(RootKey,SubKey,ValueName=""){ RegRead,v,%RootKey%,%SubKey%,%ValueName% Return,v } Run(Target,WorkingDir="",Mode=""){ Run,%Target%,%WorkingDir%,%Mode%,v Return,v } SoundGet(ComponentType="",ControlType="",DeviceNumber=""){ SoundGet,v,%ComponentType%,%ControlType%,%DeviceNumber% Return,v } SoundGetWaveVolume(DeviceNumber=""){ SoundGetWaveVolume,v,%DeviceNumber% Return,v } StatusBarGetText(Part="",WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ StatusBarGetText,v,%Part%,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } SplitPath(ByRefInputVar,ByRefOutFileName="",ByRefOutDir="",ByRefOutExtension="",ByRefOutNameNoExt="",ByRefOutDrive=""){ SplitPath,InputVar,OutFileName,OutDir,OutExtension,OutNameNoExt,OutDrive } StringGetPos(ByRefInputVar,SearchText,Mode="",Offset=""){ StringGetPos,v,InputVar,%SearchText%,%Mode%,%Offset% Return,v } StringLeft(ByRefInputVar,Count){ StringLeft,v,InputVar,%Count% Return,v } StringLen(ByRefInputVar){ StringLen,v,InputVar Return,v } StringLower(ByRefInputVar,T=""){ StringLower,v,InputVar,%T% Return,v } StringMid(ByRefInputVar,StartChar,Count,L=""){ StringMid,v,InputVar,%StartChar%,%Count%,%L% Return,v } StringReplace(ByRefInputVar,SearchText,ReplaceText="",All=""){ StringReplace,v,InputVar,%SearchText%,%ReplaceText%,%All% Return,v } StringRight(ByRefInputVar,Count){ StringRight,v,InputVar,%Count% Return,v } StringTrimLeft(ByRefInputVar,Count){ StringTrimLeft,v,InputVar,%Count% Return,v } StringTrimRight(ByRefInputVar,Count){ StringTrimRight,v,InputVar,%Count% Return,v } StringUpper(ByRefInputVar,T=""){ StringUpper,v,InputVar,%T% Return,v } SysGet(Subcommand,Param3=""){ SysGet,v,%Subcommand%,%Param3% Return,v } Transform(Cmd,Value1,Value2=""){ Transform,v,%Cmd%,%Value1%,%Value2% Return,v } WinGet(Cmd="",WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ WinGet,v,%Cmd%,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } WinGetActiveTitle(){ WinGetActiveTitle,v Return,v } WinGetClass(WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ WinGetClass,v,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } WinGetText(WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ WinGetText,v,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } WinGetTitle(WinTitle="",WinText="",ExcludeTitle="",ExcludeText=""){ WinGetTitle,v,%WinTitle%,%WinText%,%ExcludeTitle%,%ExcludeText% Return,v } Copylines Copypermalink Viewgitblame Go Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?