Jump to content

jeffonce

Members
  • Posts

    3
  • Joined

  • Last visited

jeffonce's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. That's complete, thank you both guys nb: i can't edit my post, but i think it's 'resolved'. have a nice day
  2. Ooh okay ! So, events are simply queud and treated one by one ? In other words, "GUIGetMsg" doesn't simply return the controlID of last control used, but will remember what control were used and tell these one by one at each call ? I'm glad your understood me :D, thank you very much!
  3. Hello there, I'm new on this language and I'm currently learning about gui, controls, events, ... So, in a basic gui (using setupgui for example), I asked myself: what would happen if the user trigger two (or more) events at the same time ? I mean, I'm using an infinite loop to check events, so, theoretically, if I click a button, the defined action must be executed 'instantly' before anything else happens. OK, but let's imagine a supersayen user click the button1, then 'instantly' (before the "select loop" runs) click button2, what happens? Logically, as I understood the "GUIGetMsg" function, this one should return the control ID of the last control (here, a button) used/clicked. Well, it's not clearly explained in the help file, so that's how I explain it rationally.... BUT, to be sure, I added a pause at the very start of the infinite loop. First, I've set the pause delay to 1000ms, and what happened is a ~10s delay before the action related to my button would happens... Wow! Mindfuck for me ! What is happening ? Trying to find an explanation, I added a counter in my loop, and wow, the loop runs 27 times before doing anything ! And after this, all the actions are executed, like if they were retarded, butt kept in memory.... So, can anyone please tell me what's happening ? If it wasn't clear enough, tell me, but I'm sure it's simple to explain.... :/ Anyway I continue my 'training' because as for now, this 'problem' isn't really disturbing (except for my brain lol) Thank you for reading my noob story
×
×
  • Create New...