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

Posted
  On 2/26/2015 at 10:45 AM, amar3181 said:

Deleting the codes from posts

 

why? i see nothing confidential or incriminating in there...  :huh2:

Signature - my forum contributions:

  Reveal hidden contents

 

Posted

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

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)

userbar.png

Posted

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.

Posted

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?

Posted

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

 

Posted

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

 

Posted

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

 

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...