mobittu Posted July 16, 2007 Posted July 16, 2007 Hi all, It seems that Autoit don't support Map/Hash mechnism, right? If I want to use such mechanism, how can I do, please help, thanks.
Uten Posted July 17, 2007 Posted July 17, 2007 Pick one..Implement them with a UDF (you should find several in the Script's forum)Use a vbscript com object (collection or what MS call it these days).Use the SQLite UDF and a in memmory db. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
Uten Posted July 17, 2007 Posted July 17, 2007 the vbscript object to use is probably Scripting.Dictionary.. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
nobbe Posted July 19, 2007 Posted July 19, 2007 its pretty easy if you use this:; http://msdn2.microsoft.com/en-us/library/s....hashtable.aspx$hash = ObjCreate("System.Collections.Hashtable")$hash.add ("txt", "notepad.exe")$hash.add ("bmp", "paint.exe")$hash.add ("dib", "paint.exe")$hash.add ("rtf", "wordpad.exe")ConsoleWrite("For key = 'bmp', value = " & $hash ("bmp") & @CRLF)ConsoleWrite("For key = 'rtf', value = " & $hash ("rtf") & @CRLF)
jwei Posted August 3, 2007 Posted August 3, 2007 its pretty easy if you use this:; http://msdn2.microsoft.com/en-us/library/s....hashtable.aspx$hash = ObjCreate("System.Collections.Hashtable")$hash.add ("txt", "notepad.exe")$hash.add ("bmp", "paint.exe")$hash.add ("dib", "paint.exe")$hash.add ("rtf", "wordpad.exe")ConsoleWrite("For key = 'bmp', value = " & $hash ("bmp") & @CRLF)ConsoleWrite("For key = 'rtf', value = " & $hash ("rtf") & @CRLF)When trying to run the above code snippet, it will fail at ObjCreate, so I wonder if any environment need to be set up first?Expecting your reply and thanks!
teridon Posted January 3, 2008 Posted January 3, 2008 When trying to run the above code snippet, it will fail at ObjCreate, so I wonder if any environment need to be set up first?Expecting your reply and thanks!I believe you need the .NET framework installed.
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