theguy0000 Posted October 3, 2005 Posted October 3, 2005 im trying to learn more about the registry, and in regedit, i just happened to see something in there called "AutoItv3Script", i looked, and there was my install directory! now, some of you might remember me wondering how to find a user's include directory. $installDir = RegRead ( "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir" ) $includeDir = $installDir & "\include\" MsgBox ( 0, "test", "Install Directory found at " & $installDir ) MsgBox ( 0, "test", "Include directory found at " & $includeDir ) this is more of a scrap than a script, i dont expect anyone to find it useful, but i just thought i would post it here. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
B3TA_SCR1PT3R Posted October 3, 2005 Posted October 3, 2005 _RunDOS("dir /b /s | find "AutoIt\Include\") way better dont ya think? [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
theguy0000 Posted October 3, 2005 Author Posted October 3, 2005 wouldnt that search for it? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
Valik Posted October 3, 2005 Posted October 3, 2005 _RunDOS("dir /b /s | find "AutoIt\Include\")way better dont ya think?No, stupid idea. Why do a full recursive hard drive search when you can read the registry and lookup the location(s) exactly how AutoIt does it?
theguy0000 Posted October 4, 2005 Author Posted October 4, 2005 i agree with valik, chevking the registry is a lot faster. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
B3TA_SCR1PT3R Posted October 4, 2005 Posted October 4, 2005 i agree with valik, chevking the registry is a lot faster. DOS is way funnerduhhh [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Confuzzled Posted October 4, 2005 Posted October 4, 2005 DOS is way funnerduhhh ...and if you have multiple versions scattered on your drive, how would you validate which is the correct one?
Valik Posted October 4, 2005 Posted October 4, 2005 ...and if you have multiple versions scattered on your drive, how would you validate which is the correct one?Or what if your directory isn't named AutoIt\include? Maybe it's AutoIt3\include.Or what if your directory isn't even on the same drive "dir /b /s" searches on.
w0uter Posted October 4, 2005 Posted October 4, 2005 what if they installed a zip that didnt write to the registry ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Valik Posted October 4, 2005 Posted October 4, 2005 what if they installed a zip that didnt write to the registry ?Then AutoIt changes how it searches for an Include directory if it can't find the registry keys it wants:For the include library syntax (#include <file>) to work AutoIt must have been installed using the supplied installer otherwise the installation directory will not be known and the current script directory (@ScriptDir\Include) will be used instead.
B3TA_SCR1PT3R Posted October 4, 2005 Posted October 4, 2005 damn thats like 4 burns in a row [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now