Jump to content

Removing all GUI functions

Go to solution Solved by orbs,

Recommended Posts

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.


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)


Link to post
Share on other sites

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.

Link to post
Share on other sites

Last thing. Next gets selected automatically. After the installation a message pops up where I need to click on OK or basically hit enter.

MsgBox(0, "Secure PC", _TraduceMeIfYouCan("Install_End"))

Install end here picks up the data from ini

But it waits for OK button to be pressed. Can I send just enter here?

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...