Sign in to follow this  
Followers 0
Gif

simple question

5 posts in this topic

#1 ·  Posted (edited)

when i press a button i want another gui to be shown and while its there i want the main gui to be disabled so i just use this:

GUISetState(@SW_DISABLE, $GUI)
GUISetState(@SW_SHOW, $FuncGui)oÝ÷ ٩ݶ§§¶Ø^~*ì¶ÞzvçZÛazÇ¢wa×^Ê"ºÇ­+ºÚ"µÍÕRTÙ]Ý]JÕ×ÒQK  ÌÍÑ[ÑÝZJBÕRTÙ]Ý]JÕ×ÑSPK  ÌÍÑÕRJBBÕRTÙ]Ý]JÕ×ÔTÕÔK ÌÍÑÕRJ

is there a more elegant way to enable the $GUI and keep it restored? cause for a split second the $GUI minimizes and restores...

PS: even if i use @SW_restore before enable i have the same result

Edited by c4nm7

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you thought about using WinSetTrans on your main GUI?

To work around the resize visibility, I'd suggest trying to:

  • Set main GUI to 0 transparency level
  • SW_Hide the main GUI (to then remove the taskbar item)
  • Enable your function GUI, do its tasks, and get rid of the function GUI
  • SW_Show the main GUI
  • Set main GUI back to 255 transparency level
Just my quick 2 cents, though there may already be another method.

Edit addition:

... or instead of SW_RESTORE, using SW_SHOW? GUISetState(@SW_SHOW, $GUI) I haven't run across the min/restore issue on my stuff because I just use HIDE/SHOW.

Edited by Monamo

- 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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Have you thought about using WinSetTrans on your main GUI?

To work around the resize visibility, I'd suggest trying to:

  • Set main GUI to 0 transparency level
  • SW_Hide the main GUI (to then remove the taskbar item)
  • Enable your function GUI, do its tasks, and get rid of the function GUI
  • SW_Show the main GUI
  • Set main GUI back to 255 transparency level
Just my quick 2 cents, though there may already be another method.

Edit addition:

... or instead of SW_RESTORE, using SW_SHOW? GUISetState(@SW_SHOW, $GUI) I haven't run across the min/restore issue on my stuff because I just use HIDE/SHOW.

yes i tried @SW_SHOW to and it doesnt work properly as for the transparency , i ve thought of itbut i dnt want the $GUI invisible...

WinActivate($FuncGui) ?

the window gets blank for a sec if i use this..

Edited by c4nm7

Share this post


Link to post
Share on other sites

...but i dnt want the $GUI invisible...

That'll teach me not to read the example so quickly. :"> I was looking at the show/hides on $FuncGui and attributing them to $GUI in my head...


- 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]

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