Aceguy Posted December 20, 2007 Share Posted December 20, 2007 why doesnt this work please #include <WindowsConstants.au3> $box1=GUICreate('', 20, 20, 50, default, $WS_POPUP) GUISetBkColor(0xff0000) $box2=GUICreate('', 20, 20, 100, default, $WS_POPUP) GUISetBkColor(0xff0000) GUISetState() While 1 Sleep(1000) WEnd [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
xzaz Posted December 20, 2007 Share Posted December 20, 2007 Example: #include <WindowsConstants.au3> $box1=GUICreate('', 20, 20, 50, default, $WS_POPUP) GUISetBkColor(0xff0000) GUISetState() secondgui() While 1 Sleep(1000) WEnd Func secondgui() $box2=GUICreate('', 50, 50, 100, default, $WS_POPUP) GUISetBkColor(0xff0000) GUISetState() EndFunc Small Color Picker v0.2 | Travian bot Link to comment Share on other sites More sharing options...
Nevin Posted December 20, 2007 Share Posted December 20, 2007 It's a little red box, what did you want it to be? Link to comment Share on other sites More sharing options...
SpookMeister Posted December 20, 2007 Share Posted December 20, 2007 I'm not familiar with WindowsConstants.au3 and I think you need another GUISetState() before you make the second GUICreate [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
Monamo Posted December 20, 2007 Share Posted December 20, 2007 why doesnt this work please #include <WindowsConstants.au3> $box1=GUICreate('', 20, 20, 50, default, $WS_POPUP) GUISetBkColor(0xff0000) $box2=GUICreate('', 20, 20, 100, default, $WS_POPUP) GUISetBkColor(0xff0000) GUISetState() While 1 Sleep(1000) WEndIt (GUISetState) in your current setup would only show the last created GUI. Instead, you'd want to do a GUISetState for each GUI (assuming that what you're trying to do is make them both visible at once) Try replacing the existing GUISetState() line with: GUISetState(@SW_SHOW,$box1) GUISetState(@SW_SHOW,$box2) - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
Aceguy Posted December 20, 2007 Author Share Posted December 20, 2007 @Nevin umm, 2 little red boxes. thanks all for your swift replys. GUISetState(@SW_SHOW,$box1) GUISetState(@SW_SHOW,$box2) works for me, [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now