insomnai
Active Members-
Posts
47 -
Joined
-
Last visited
insomnai's Achievements
Seeker (1/7)
0
Reputation
-
Wow, I just can't see what is going on in there... I can't see where $hCID get's any of its information, and I don't understand the 'function' that you have created at the bottom of the script or how it affects the earlier section. The aim was to see if the ini's could be seperated so that information could be handled like 'categories'. I think I need to find another hobby :/
-
Bugger. Well look at that. Cheers Melba, my brain is on fire now. Is this what they call 'multi dimensional arrays' by any chance? I need a new tactic lol. ok, where to start....
-
ok, this idea is interesting, could you show me how I could possibly edit my script to resemble what you mean here? Also, the alternative ini section [installers] isn't the only variant, if I could turn your attention to the following: menutitles.ini [installers] installers.ini [antivirus] antivirus.ini ; (Program Name, To Run, File Name) [Norton 360] To Run=n360.exe My GUI will have a menu title of 'Installers' and in that menu title, there is a submenu called 'AntiVirus' and in that submenu there is a list of different AntiVirus Installers to chose from, selecting one of those will tell the script to begin running the appropriate file. Does my explanation here change the way you would lay out the INI file? Still trying to wrap my head around this bit :-) Many thanks all
-
Hi guys and gals, i've been experimenting with the great advice given by Melba23 and would like to ask further questions on how to proceed with the next part... Here is what I have now I understand the basic concept of an array: 'thetoolkit' and 'menutitles.ini' menutitles.ini is very basic, pretty much as follows: [installers] [special] [Technicians Only] [Help] 'thetoolkit' script reads the 'menutitles.ini' and creates the top menu based on it's contents as follows: #include <GUIConstantsEx.au3> ;vars ;NOT IN USE $ScriptDir = StringLeft(@ScriptDir,2) ; specifies the drive letter and colon i.e. g: ;NOT IN USE $Config = $ScriptDir & "\config\" ; specifies where the .ini files will be kept ; Read ini section names $menuTitles = IniReadSectionNames("menutitles.ini") ; Create an array to hold the CIDs of the menu-names Global $aMenuTitle[$menuTitles[0] + 1] = [$menuTitles[0]] ; Create the GUI $hGUI = GUICreate("Test Toolkit", 500, 100) GUISetBkColor(0x000000) ; Create the main menu For $i = 1 To $menuTitles[0] $aMenuTitle[$i] = GUICtrlCreateMenu($menuTitles[$i]) Next GUISetState() While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd As you can probably guess, what i'm wanting is to adapt the script so that I can add extra ini files which correspond with the menutitles.ini, so perhaps 'installers.ini', 'special.ini', 'technicians.ini' and 'help.ini'. This is all well and good but what I can't figure out is how to attach an ini file i.e. 'installers.ini' so that when I click on the appropriate menutitle, the menuitems read from 'installers.ini' are read and selecting them runs the appropriate program which ideally, is also listed in the ini. for example: menutitles.ini [installers] installers.ini [antivirus] antivirus.ini ; (Program Name, To Run, File Name) [Norton 360] To Run=n360.exe The whole point of this is so that I can control how everything works from outside the script... As always, any help would be very much appreciated. insomnai
-
Hi guys, I've been doing some hunting on the tinterweb and have a few bits and pieces on installing itunes silently with switches... The example code which works in the command console works as follows: msiexec.exe /i "itunes.msi" /quiet or msiexec.exe /i "itunes.msi" /passive However I am having difficulty integrating this into the following code: (Note: I do understand that .msi can only run with ShellExecute or ShellExecuteWait) Dim $ScriptDir = StringLeft(@ScriptDir,2) $musvid = $ScriptDir & "Toolsmusic utilities" ShellExecuteWait('msiexec.exe /i " ' & $musvid & 'iTunes64.msi" /quiet') Would you be able to assist? Many thanks insomnai
-
Chachew, that helps a great deal and covers my level of thinking as I see it now:-)
-
Hi, guys and gals, please entertain me for a moment... (begin wonky dancing.... NOW!) No really, as the header states, i'm after an assist on a second idea that i'm working towards, mainly inventory control: After searching the forums, I have found some subjects on the matter of working with spreadsheets but only specific to the OP's question but nothing broad covering the whole area. I'm looking specifically to store information in several columns and rows and i'm wondering on the best way to approach this. What i'm after is basically a 'stock inventory' where I can add new products i.e. [Product Code], [Make], [Model], [Current Stock Level], [Date of Add/Edit] and using this information on a second tab, take products out of 'stock' and tell me how many I have left based on the last removal or addition. I've got to be honest guys, I don't know where to begin and as always, help is always appreciated in the form of pointing me in the right direction or some snippets with explanations on how it works. Many many thanks insomnai
-
Hey guys, seconday question on this, by blocking redirection etc, do I compile this as x86 or x64...?
-
I've only just started using the AutoIT scripting to create exe's so i'm currently learning on the fly and never had a reason to look at that page, however it is a great start so thank you for pointing it out!
-
insomnai reacted to a post in a topic:
MSCONFIG issues
-
insomnai reacted to a post in a topic:
MSCONFIG issues
-
Thank you both for your responses! It does seem as though there is a bit of an issue on Windows 7 machines, I wonder if this will be the same on the Windows Developer Preview or Windows 8 when it's finally released next year. I think I will try Yashied's method first, only because it doesn't involve using send commands, I'm trying to reduce my usage of them. Again, thank you very much! Yashied, could you explain what is happening with your code here? Many thanks...
-
I've searched on the forum and found other posts with regards to this, but i've found a little hiccup that could use an assist with. I'm trying to use the following code, and depending on which way the exe is compiled, it works, or it doesn't! This code runs during a 'while' loop is running on a button. Run(@HomeDrive & "\windows\system32\msconfig.exe") If I compile the exe in x64 mode, the script works on x64 machines but not x86 machines. If it is compiled on x86 mode, it runs on x86 machines but not x64 machines. Wierd thing is, the path i've used is the same on both x86 and x64 machines so theoretically should work on both regardless of how I compile the exe. Thanks guys and gals.
-
Problems creating a menu based on ini read
insomnai replied to insomnai's topic in AutoIt GUI Help and Support
Melba, I have PM'd you. Enjoy the 'gift' :-) -
Problems creating a menu based on ini read
insomnai replied to insomnai's topic in AutoIt GUI Help and Support
Melba, you are a true help and my thanks go to you on that one. Can you please PM me your email address? I have a 'gift' for you for all your help and tutorage. ;-) insomnai -
Dvdshopsonline-Have you shopped there?
insomnai replied to beritly's topic in AutoIt GUI Help and Support
Then 'prune' away :-) You guys/gals have obviously had to do this a few times ;-) Be well! -
Problems creating a menu based on ini read
insomnai replied to insomnai's topic in AutoIt GUI Help and Support
Absolutely, it's starting to make a lot of sense which is great! Question: How do I adapt this to have the menu's to contain sub-menu's? Now, to understand the For loop...