Jump to content




for loop problem.


  • You cannot reply to this topic
9 replies to this topic

#1 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 02:39 PM

Update Code: HERE

So what I mean by for loops is popups is that when I click on a window, other window pops up [ the window behind him ] and I dont know how to stop it.

For ex: Lyqyd's Window OS knows how to prevent that.

Can anyone tell me how to prevent other window popups? Thanks.

Edited by LeDark Lua, 19 September 2015 - 04:46 PM.


#2 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 04:46 PM

Ehm, please anybody?

#3 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 19 September 2015 - 04:57 PM

The code you posted doesn't actually do anything on its own.

Could you post the full code and maybe some screenshots?

#4 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 05:13 PM

On its own It checks when to close, move window. And it repositions the window so the clicked window would be the first. But how loops work the first window gets last and then BAAAM: Bugs.

And screenshots, ok.

#5 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 05:22 PM

Screenshot one before clicking on the error window:
Posted Image
After clicking on the error window:
Posted Image

#6 Exerro

  • Members
  • 801 posts

Posted 19 September 2015 - 05:26 PM

You could break out of the loop once you have performed the action on some window.

#7 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 05:28 PM

Wait, ill try....

EDIT: Nope.... Can I have like a code example, or a modified version of mine please?

Edited by LeDark Lua, 19 September 2015 - 05:32 PM.


#8 Exerro

  • Members
  • 801 posts

Posted 19 September 2015 - 05:38 PM

Oooh, ignore that. You're going through from window 1 (first added I guess) to window #windows (last added I guess), so the first window you check will be the bottom layer one, not top layer. Change the for loop to:
for i = #windows, 1, -1 do


#9 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 19 September 2015 - 05:42 PM

And how to activate one window? Because it highlights two of them, and I want so that the can popup trough other windows if its clicked on his border and not other windows border. Well the "Windows" mechanic.

#10 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 20 September 2015 - 08:06 AM

Ohhhh, I got it. Thanks awsumben13!!!!!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users