Jump to content

Recommended Posts

Posted (edited)

Hey guys,

I would like to learn how the whole GUI stuff is working so I try to understand it step by step...

First of all I created a GUI with a single button. My goal is to activate an infinite while loop as soon as the checkbox is checked and to deactive the infinite while loop as soon as I uncheck the checkbox, but I don't understand how... I read various threads but couldn't find a good example etc...

Thanks in advance 

Edited by jannikrendl
  • Moderators
Posted

jannikrendl,

So what code have you tried that has not worked?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

I just experimented a bit and created a simple script with an msgbox which pops up every 20 secs when used in an infinite loop. Then I tried to put it into a GUI which should enable this feature / disable this feature...

  • Moderators
Posted

jannikrendl,

In case you have not yet realised, we do not usually write code to order - we expect people to at least have made a stab at coding something. Think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers.

So post the code you have tried (see here how to do it) and then we can either correct it or explain why it did not work.

M23

 

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • 3 weeks later...
  • Moderators
Posted

jannikrendl,

Delighted you solved the problem yourself, but could you please post your solution so that others can see and learn.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  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
×
×
  • Create New...