theguy0000 Posted September 5, 2005 Share Posted September 5, 2005 how would i find out the user's include directory? I've been thinking something along the lines of incuding Misc.au3 (or any other include file) and finding the directory of that...any ideas? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
LxP Posted September 5, 2005 Share Posted September 5, 2005 (edited) There is no need to programmatically find this information. If a user has installed AutoIt on their computer using the provided installer, writing your #include line like this:; take note: angled brackets #include <Misc.au3>will have AutoIt include it from the user's Include directory.Edit: And if you want the path for some other reason, you can most likely deduce it from the information provided in HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt. You shouldn't rely on users installing AutoIt with the installer though (in which case no key will exist). Edited September 5, 2005 by LxP Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted September 5, 2005 Share Posted September 5, 2005 i bet its C:\Program Files\AutoIt3\Include\ just i guess i could be COMPLETELY off [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
theguy0000 Posted September 5, 2005 Author Share Posted September 5, 2005 i bet itsC:\Program Files\AutoIt3\Include\just i guess i could be COMPLETELY off<{POST_SNAPBACK}>thats what it is for me, but it could be different for some other users.is there no way to find the location of an included file? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
theguy0000 Posted September 5, 2005 Author Share Posted September 5, 2005 (edited) There is no need to programmatically find this information. If a user has installed AutoIt on their computer using the provided installer, writing your #include line like this:; take note: angled brackets #include <Misc.au3>will have AutoIt include it from the user's Include directory.Edit: And if you want the path for some other reason, you can most likely deduce it from the information provided in HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt. You shouldn't rely on users installing AutoIt with the installer though (in which case no key will exist).<{POST_SNAPBACK}>i know about the angled brackets thing, but thanks for replying. and yes, i want to find the location of the directory, to do more than incuding it.edit: typo Edited September 5, 2005 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
LxP Posted September 5, 2005 Share Posted September 5, 2005 is there no way to find the location of an included file?<{POST_SNAPBACK}>You could always do a DOS hard drive search for typical include scripts... Link to comment Share on other sites More sharing options...
theguy0000 Posted September 5, 2005 Author Share Posted September 5, 2005 i guess that will work The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
theguy0000 Posted September 5, 2005 Author Share Posted September 5, 2005 are you sure there is no other way? doing it this way takes so long - Matt The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted September 5, 2005 Share Posted September 5, 2005 (edited) this is somewhat time consuming..it does search ALL files/directorys dir /s C:\ >> C:\zlist.txt find /I "\Include" C:\zlist.txt >> C:\zsearch.txt thats straight off command prompt so in autoit just put a _RunDOS in front of it and you should be good Edited September 5, 2005 by B3TA_SCR1PT3R [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
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