Advertisement
CivReborn

Untitled

Aug 13th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. I sent this:
  2.  
  3.  
  4. Ok, your problem is a simple fix.
  5. When you enter the loop, you don't have a way of exiting it. you can fix this by having your color change in a timer.
  6.  
  7.  
  8. Example.
  9.  
  10.  
  11. SetTimer,Change_Colour,1000
  12.  
  13.  
  14. 1:=1
  15. Color_1:=Red
  16. Color_2:=Green
  17. Color_3:=Blue
  18.  
  19.  
  20. return
  21.  
  22.  
  23. Color_Radios:
  24. Gui,submit,nohide
  25. return
  26.  
  27.  
  28. Change_Color:
  29. i++
  30. if(i>=4)
  31. {
  32. i:=1
  33. }
  34. if(Radio1=1)
  35. {
  36. Gui,Color,Red
  37. }
  38. else if(Radio2=1)
  39. {
  40. Gui,Color,Blue
  41. }
  42. else if(Radio3=1)
  43. {
  44. Gui,Color,% Color_%i%
  45. }
  46. return
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. Let me know if this helps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement