Jump to content
Sign in to follow this  
Queener

Restore windows from systray

Recommended Posts

I'm not sure if I'm doing it right or there's a better way to restore windows from hidden in system tray, but if I remove the if statement then it's able to restore the program from system tray, but if I add the if statement then it doesn't restore it. Here's what I gotten so far and the reason why I use the if statement is because #32770 opens many other apps also.

WinSetState("[CLASS:#32770]", "", @SW_SHOW)
    
If WinExists($title_Pass_Entrance) Then
WinWaitActive(WinActivate($title_Pass_Entrance))
  ControlSend($title_Pass_Entrance, "", "[CLASS:Edit; INSTANCE:1]", "TempPassword")
  ControlClick($title_Pass_Entrance, "", "[CLASS:Button; INSTANCE:2]", "left", 1)
EndIf
     
    >>>> Window <<<<
Title:    Enter Safe Combination
Class:    #32770
Position:    728, 411
Size:    465, 218
Style:    0x94C800C4
ExStyle:    0x00010101
Handle:    0x0000000000050A7A
    >>>> Control <<<<
Class:    
Instance:    
ClassnameNN:    
Name:    
Advanced (Class):    
ID:    
Text:    
Position:    
Size:    
ControlClick Coords:    
Style:    
ExStyle:    
Handle:   


Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By TXTechie
      Hello Everyone,
      I've developed my own GUI using AutoIt and I'm allowing users to minimize the GUI, but I also want to include some kind of timer so that it will automatically restore the GUI after something like 30 minutes or an hour. However, I also want them to be able to manually restore the GUI by clicking the application's icon in the taskbar.
      I've searched through the forums, but I'm not sure how to get started.
      Any ideas or functions to research are appreciated!
      Regards,
      TX Techie
    • By Jahar
      Hi All,
      Please help me on how to fetch date/time of last windows 10 system restore point using autoit? Basically its about querying the last restore point.
    • By ur
      I need to read the status of OneDrive icon running in the taskbar and update the status in a log file.
      2nd part I can complete
      But the first part, how to read the status of tray menu icon.

      I need the text above from the tray icon.
      I looked into , but not that helpful.
       
       
    • By Miliardsto
      Hello. How to make GUI restore from tray with slower speed or effect?
    • By Rishav
      Hi
      Returning to AutoIt after a few years.
      I wanted to add a custom counter to the system tray.
      The long term plan is to add a simple monitor (could be another clock, cpu temp, cpu usage etc), but for now I just want to add a simple counter which increments by 1 every tick and resets to 0 after 1000.
      I tried searching but most relevant post seem to be over 5 years old.
      Can someone point me in the right direction?
       
×
×
  • Create New...