Sign in to follow this  
Followers 0
Markir

ini file --> checkbox

10 posts in this topic

Hello everybody,

it is a little question about ini files and checkboxes.

I have the following program and there is one site "MWI Voreinstellungen".

If somebody checked one box the regkey will be rewrite. At the same time the program write the status "enabled" in an ini-file.

Now I want to have that this ini file will be read out by starting the programm at a second time.

I know that with "GUICtrlCreateInput", but not with "GUICtrlCreateCheckbox".

Here is the code you can download....

Share this post


Link to post
Share on other sites



Okay that is what I know before, but how must I integrate this in my code?

Share this post


Link to post
Share on other sites

i dont think people are helping you as much because we feel that you should READ THE HELP FILE< it has EVERYTHING IN IT IN EXAMPLES ALREADY THAT YOU CAN COPY

just saying


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

@burrup:

I had read the manual, but I don't see anything about my problem. There is be displayed, how I can enable and disable something and how I can use the iniwrite "Befehl". This is not the problem, I have understand that, but not in the corresponce together...:-(

If you see the download you see that I have understand the function, because I use it with "Editfields"

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Okay that is what I know before, but how must I integrate this in my code?

<{POST_SNAPBACK}>

@markir, I really don't understand how a program can be created without the basic understanding of the language which you code it in. You will need to start understanding how things work and not ask others to do the coding for you in your program since you will never be able to support your own program and will indefinitely rely on the forum member to do that for you.

There is no issue with asking how things work but you need to be able to implement it yourself.

Your answer indicates that you understand that GUICtrlSetState() is used to set the Checkbox, so tell us what other questions you have .....

By the way.. I remembered i answered this very same question for you a while ago and found that answer again... it even contains an example:

#61352

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

So I have look at your link and I understand the code in that...

Now I have done it in my project but this doens't functioned, I think there is a little mistake and you can show me where this mistake will be.

<{POST_SNAPBACK}>

I don't see any GUICtrlCreateCheckbox()....

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

can only test it when i change :

$Fenster_MWIVoreinstellungen = GUICreate("", 640, 480 - 42, 0, 0, $WS_CHILD, -1, $Haupt_Fenster)

to:

$Fenster_MWIVoreinstellungen = GUICreate("", 640, 480 - 42, 0, 0)

And it seems to work fine.....

What is the problem?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I think it doesn't work, in the ini-file the value Email=enabled, but if I start the program a second time, the check("Haken") won't be displayed????

Share this post


Link to post
Share on other sites

Why are the checkboxe not be in the status, if i start the program at second time, how they were by closing the program?

Share this post


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
Sign in to follow this  
Followers 0