Hey all - I'm back with another coding question - been all over the site looking at examples of syntax for button scripts - should be easy (and probably is lol) but so far I cant get it to work - I've put a button in my start button mod that opens my socials page, that much works great - but I want it to close again when I press the button a second time - no luck making it work so far...
You need to make two buttons and have them turn each other on and off as needed. Or do like I did and use a checkbox. I hate doing things twice. Then u can do OnCheck=show_window and OnUncheck=Hinde_window. Then if the window you are opening is in the same set of windows u can make that window uncheck the button if closed by other means then the button.
If you dealing with pages inside the same window just have the page assigned the proper values to the button via the OnShow and OnHide handles.