Sign in to follow this  
Followers 0
autocomplex

GUI Wont Appear

2 posts in this topic

#1 ·  Posted (edited)

I am having trouble displaying a GUI when it is called in a Function. I have it set to @SW_HIDE. Then In the Function I GUISetState($var, @SW_SHOW). But It is not showing up when I use the Function in a Loop.

I need it to be a Global GUI, but only be visible at certain points. Like when a user hits a button. But they hit another button and it disappears.

Heres where I create the GUI's.

;Draws the Top of the Ore Finder Box
$Top = GUICreate("Top Line", $ScanWidth, 2,$x,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Left Side of the Ore Finder Box
$Left = GUICreate("Left Line", 2, $ScanHeight,$x,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)
            
;Draws the Right Side of the Ore Finder Box
$Right = GUICreate("Right Line", 2, $ScanHeight,$x + $ScanWidth,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)
            
;Draws the Bottom of the Ore Finder Box
$Bottom = GUICreate("Bottom Line", $ScanWidth, 2,$x,$y + $ScanHeight,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)



;Draws the Top of the Drop Finder Box
$smallTop = GUICreate("Top Line", $smallScanWidth, 2,$smallx,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Left Side of the Drop Finder Box
$smallLeft = GUICreate("Left Line", 2, $smallScanHeight,$smallx,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Right Side of the Drop Finder Box
$smallRight = GUICreate("Right Line", 2, $smallScanHeight,$smallx + $smallScanWidth - 2,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Bottom of the Drop Finder Box
$smallBottom = GUICreate("Bottom Line", $smallScanWidth, 2,$smallx,$smally + $smallScanHeight,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)oÝ÷ Øw«zËax[§rبƮ¶­sdgVæ26÷r ¤uT6WE7FFRb33cµF÷Â5uõ4õr¤uT6WE7FFRb33c´&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c´ÆVgBÂ5uõ4õr¤uT6WE7FFRb33cµ&vBÂ5uõ4õr ¤VæDgVæ0 ¤gVæ26ÖÆÅ6÷r¢¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uõ4õr ¤VæDgVæ2 ¤gVæ26÷t&÷F¢¤uT6WE7FFRb33cµF÷Â5uõ4õr¤uT6WE7FFRb33c´&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c´ÆVgBÂ5uõ4õr¤uT6WE7FFRb33cµ&vBÂ5uõ4õr ¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uõ4õr ¤VæDgVæ0  ¤gVæ2FR¢¥6ÆVW¤uT6WE7FFRb33cµF÷Â5uôDR¤uT6WE7FFRb33c´&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c´ÆVgBÂ5uôDP¤uT6WE7FFRb33cµ&vBÂ5uôDR¢¤VæDgVæ0 ¤gVæ26ÖÆÄFR¢¥6ÆVW¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uôDR¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uôDR¢¤VæDgVæ2 ¤gVæ2FT&÷F ¥6ÆVW¤uT6WE7FFRb33cµF÷Â5uôDR¤uT6WE7FFRb33c´&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c´ÆVgBÂ5uôDP¤uT6WE7FFRb33cµ&vBÂ5uôDR ¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uôDR¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uôDR

Please help me ... I don't know if there is another way I can do what I need to, but if there is I'm sure somebody here knows how. =)

Edited by inline853

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0