https://ahknet.autoh...r/Functions.zip
A large compilation of functions can be downloaded at the above link. I believe it is the largest here at the forum. Thanks to the authors of these fine functions. Enjoy.
Expect to see more array functions soon.
Here is an index of the function names:
--ARRAYS--
ArrayAdd
ArrayCreate
ArrayMin
ArrayMax
ArraySwap
ArraySwapPos
ArraySet
ArrayToString
--COMMANDS--
ControlGet
ControlGetFocus
ControlGetText
DriveGet
DriveStaceFree
FileGetAttrib
FileGetSize
FileGetVersion
FileRead
FileReadLine
FileSelectFile
FileSelectFolder
FormatTime
GetKeyState
GuiControlGet
ImageSearch_X
ImageSearch_Y
IniRead
Input
InputBox
MouseGetPosCtrl
MouseGetPosWin
MouseGetPos_X
MouseGetPos_Y
PixelGetColor
PixelSearch_X
PixelSearch_Y
Random
RegRead
Run
SoundGet
SoundGetWaveVolume
StatusBarGetText
StatusBarControlSupport
---SB_Segments
---SB_Icon
---SB_Text
StringGetPos
StringLeft
StringLen
StringLower
StringMid
StringReplace
StringRight
StringTrimLeft
StringTrimRight
StringUpper
SysGet
Transform
WinGet
WinGetActiveTitle
WinGetClass
WinGetText
WinGetTitle
--Conversions/Transform--
Abs
Asc
Asc_2
BinToTxt
Chr
FormatDate
FormatYear
Hex
HexToString
HTML
RGBtoHex
StringToHex
TxtToBin
--Encryption/Hash--
RC4
--FileManagement--
IniKeyGet
IniKeyGet2
IniSectionGet
--List Manipulation--
ListAdd
ListCut
ListItem
ListKeep
ListLen
ListMerge
ListMove
ListPart
ListPos
ListReloc
ListReplace
ListRemove
ListSort
_Sort
ListSort_B
ListSplit
ListUniq
--Math--
Ceil
CommonFactor
Cos
DegToRad
DexToHex
Div
EvenOdd
ExtractInteger
ExtractInteger_A
Floor
GCD
GetRelPos
InsertInteger
InsertInteger_A
LCD
Max
Mean
Median
Min
MixNum
Mod
Mode
Pow
PriComp
RadToDeg
RandomUniqNum
Round
Sin
Sqrt
--Misc--
AhkStructLib
ControlGetHWND
CRC32
GetBattLife
LeapYear
MemGetStats
Scruct_Update
Scruct_Enum
Scruct_Mod
Scruct_New
ScructTest
ScructTest_Draw
Web
WinInView
--Screen--
DispChangeSettings
FindMatrix
GetMatrix
--String--
ExtractNum
StringDelete
StringFlip
StringGetChar
StringInsert
StringReplaceChar
SwapValues
Functions Compilation [Download] Updated March 9 2006
Started by
Invalid User
, Aug 21 2005 11:15 AM
39 replies to this topic
Hi,
it's not always good to use functions. I tried to check the performance with the following script:
Interesting, that EnvMult is faster than *=
it's not always good to use functions. I tried to check the performance with the following script:
setbatchlines, -1 time = %A_TickCount% Loop, 200000 { Random, var1, 1, 100 var1 := var1 * 100 } time1 := A_TickCount - time time = %A_TickCount% Loop, 200000 { var1 := Random(1,100) * 100 } time2 := A_TickCount - time time = %A_TickCount% Loop, 200000 { Random, var1, 1, 100 var1 *= 100 } time3 := A_TickCount - time time = %A_TickCount% Loop, 200000 { Random, var1, 1, 100 EnvMult, var1, 100 } time4 := A_TickCount - time msgbox, direct: %time1% `nfunction: %time2% `nwithout expressions: %time3% `nwith EnvMult: %time4% Return Random(Min="", Max="") { Random, OutputVar, % Min, % Max Return OutputVar }
Interesting, that EnvMult is faster than *=
#3
-
Posted 27 August 2005 - 02:58 PM
Tekl
Interesting benchmark. EnvMult is slightly faster than *= because the optimizer fails to remove the spaces around *=.
Therefore, you can slightly speed up *= by omitting the spaces:
var1*=100
I'll improve the optimizer so that it won't matter in the next version.
Therefore, you can slightly speed up *= by omitting the spaces:
var1*=100
I'll improve the optimizer so that it won't matter in the next version.
#4
-
Posted 27 August 2005 - 03:17 PM
Whoops, without the spaces *= is now faster than EnvMult ;-)
#5
-
Posted 27 August 2005 - 04:00 PM
Tekl
I thought for sure the difference in benchmarks was due to the spaces, but when I checked the code it seems that the spaces are already removed. Stranger still, I can no longer produce the difference in benchmark between EnvMult and *=. They're about the same now, even with older versions of AutoHotkey.
So I'm not sure what's going on; maybe it was a fluke. Do you still see var1 *= 100 being slower than EnvMult when you run the benchmark?
So I'm not sure what's going on; maybe it was a fluke. Do you still see var1 *= 100 being slower than EnvMult when you run the benchmark?
#6
-
Posted 03 September 2005 - 06:09 PM
Function Compilation [Download]
Looks great. Thanks
#7
-
Posted 04 September 2005 - 03:15 PM
This is the wrong URL, please use the URL from the 'Open URL' link in the file manager. The reason I'm telling you this is because I got a few emails from various people telling me that they couldn't access the file.
#8
-
Posted 19 January 2006 - 09:26 PM
the open link gave me a blank page everytime I used it, so I was never able to get a different url for it. How can I correct the problem?
...in addition, could you email me the user name and pw for the acct it was posted under? or..Feel free to post it here, I dont have anything to hide, and the pw is unique to that site(which is why I forgot it)
...in addition, could you email me the user name and pw for the acct it was posted under? or..Feel free to post it here, I dont have anything to hide, and the pw is unique to that site(which is why I forgot it)
#9
-
Posted 20 January 2006 - 05:15 AM
my lame sig
Hi,
i have an account on autohotkey.net and i can't download the file,
is there a way to post somewhere else?
thanks
i have an account on autohotkey.net and i can't download the file,
is there a way to post somewhere else?
thanks
#10
-
Posted 20 January 2006 - 06:35 AM
I do not know how to access anything from others. Could someone give me a little tip? I do not see any option to do this.. :oops:
Thalon
Thalon
#11
-
Posted 20 January 2006 - 08:12 AM
Yes you can, I have a a picture hosted here
https://ahknet.autoh... ... idy_v7.jpg
The owner of the file can get the link from the "Open URL" link by copying the link into clipboard. (or following that link and copying the address from your browser address bar)
https://ahknet.autoh... ... idy_v7.jpg
The owner of the file can get the link from the "Open URL" link by copying the link into clipboard. (or following that link and copying the address from your browser address bar)
#12
-
Posted 20 January 2006 - 08:31 AM
Ciao
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
For your convenience, I put a mirror of the Funcs.zip up here (latest modified date is 21-08-2005, so I'm not sure if this is the latest version)
#13
-
Posted 20 January 2006 - 10:41 AM
It's supposed to give you a blank page beacause the zip is not a HTML formatted file that the browser can display. Right click on the 'Open URL' link and select 'Copy Link Location' (for Firefox) or 'Copy Shortcut' (for IE). toralf gave an example of how a URL should look like.the open link gave me a blank page every time I used it, so I was never able to get a different url for it. How can I correct the problem?
You were able to download my XMLReader scripts :roll:I do not know how to access anything from others. Could someone give me a little tip? I do not see any option to do this..
Try to disable your download managers or firewalls to see if they cause the problem. Also, try using a better browser.
You do not need to have an account to download the file (like toralf kindly demonstrated). Invalid User needs to post the correct URL. I don't think I can go into his file manager account to retrieve it for him (all passwords are md5'd).i have an account on autohotkey.net and i can't download the file
#14
-
Posted 20 January 2006 - 11:04 AM
To access foreign data I have to have always a link, which is posted by the owner (or knowing it's exact position and writing the link by hand)?
I downloaded it from daonlyfreez.net now..
Thalon
In your case the script was directly shown in my browser (Mozilla Firefox ) and not a file to download - that's maybe also a difference..You were able to download my XMLReader scripts Rolling Eyes
Try to disable your download managers or firewalls to see if they cause the problem. Also, try using a better browser.
I downloaded it from daonlyfreez.net now..
Thalon
#15
-
Posted 20 January 2006 - 11:19 AM