amar3181 Posted February 26, 2015 Author Posted February 26, 2015 Let me try the first part first with GUI if it works then will hide the GUI. Deleting the codes from posts
orbs Posted February 26, 2015 Posted February 26, 2015 On 2/26/2015 at 10:45 AM, amar3181 said: Deleting the codes from posts why? i see nothing confidential or incriminating in there... Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
TheSaint Posted February 26, 2015 Posted February 26, 2015 Personally I don't think we need your whole code. If you want a delay, just add a Sleep into the Loop example with function that I showed you. That function can have calls to other functions. I'm a great believer in getting you to do things yourself, with a little help of course, so that you will then hopefully end up understanding what is going on, and can thus make any adjustments (future, etc) yourself. If you have enough of a grasp of AutoIt, then you should be creating another script, building it up with the content of the original, testing as you go, and only adding what is needed. Setup a structure with your main loop and functions, ignoring GUI elements, except where perhaps you need to have a value read. However, from what I saw, you already have values in your INI, so only that needs to be read, I imagine. Do what you can in that direction, learning as you go, and we will help you with any difficulties that you advise us of (with code). Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Reveal hidden contents What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
amar3181 Posted February 26, 2015 Author Posted February 26, 2015 Perfect it works!! Now trying for Non GUI
amar3181 Posted February 26, 2015 Author Posted February 26, 2015 Orbs it was a secure deployment code for enterprise. Devil I agree. I have been into lots of languages and sure they take their time. i had to rush to forum as new plus time was ticking. I understood the code but since not like many lang like java or perl helps and learning is limited.
amar3181 Posted February 26, 2015 Author Posted February 26, 2015 Last thing. Next gets selected automatically. After the installation a message pops up where I need to click on OK or basically hit enter. [twitter][/twitter] GUISetState(@SW_HIDE) MsgBox(0, "Secure PC", _TraduceMeIfYouCan("Install_End")) Exit Install end here picks up the data from ini But it waits for OK button to be pressed. Can I send just enter here?
orbs Posted February 26, 2015 Posted February 26, 2015 comment the entire line out, like this - add semicolon at the beginning of line: ;MsgBox(0, "Secure PC", _TraduceMeIfYouCan("Install_End")) Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
amar3181 Posted February 26, 2015 Author Posted February 26, 2015 Ok and there are some check boxes. How to select them through code?
orbs Posted February 27, 2015 Posted February 27, 2015 the only checkboxes in your code is in func Wizard_Componants(), which is automated by the same technique - line 300 or so you have $nMsg = GUIGetMsg() which you need to replace by $nMsg=$Next. these checkboxes are by default all checked, as instructed by this line following each checkbox creation: GUICtrlSetState(-1, $GUI_CHECKED) if you want to uncheck them initially, then remove/comment-out the relevant instances of that line. Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
orbs Posted February 27, 2015 Posted February 27, 2015 side note: in general, the better way to handle this entire project is to locate the pieces of code that actually perform the task, then rewrite them in a new script. but since: 1) your script have the GUI components and the operational components very tightly integrated; 2) you have a time constraint (as you say); 3) skipping the GUI user selection is not that difficult; i think it is justifiable to follow the method i suggested. Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
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