Messages - BigVent [ switch to compact view ]

Pages: prev1 2 3 4 [5] 6 7 8next
21
Post New Requests Here / Re: IDEA: AutoMaximize Windows
« on: June 19, 2013, 04:10 PM »
*Amended*:

"would maximize automatically every maximizable window, when new windows of apps/Explorer etc opening."
 
   As I re-read the other linked thread I think this is more suitable for your needs.

Enjoy!


Code: Autohotkey [Select]
  1. ;http://www.autohotkey.com/board/topic/19672-detect-when-a-new-window-is-opened/
  2. ;DLLCall / Shell / MsgBox = SKAN
  3.  
  4. ;-------------------------------------------------------------------
  5. ;--Program monitors newly opened windows & maximizes accordingly--
  6. ;-------------------------------------------------------------------
  7.  
  8. SetWorkingDir %A_ScriptDir%
  9. onexit, exitsub
  10.  
  11. Gui +LastFound
  12. hWnd := WinExist()
  13.  
  14. DllCall( "RegisterShellHookWindow", UInt,hWnd )
  15. MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
  16. OnMessage( MsgNum, "ShellMessage" )
  17. Return
  18.  
  19. ShellMessage( wParam,lParam )
  20. {
  21.   Local k
  22.   If ( wParam = 1 ) ;  HSHELL_WINDOWCREATED := 1
  23.   {
  24.        NewID := lParam
  25.        SetTimer, MsgBox, -1
  26.   }
  27. }
  28.  
  29.          WinGetTitle, Title, ahk_id %NewID%
  30.          WinGetClass, Class, ahk_id %NewID%
  31.          WinWait, ahk_id %NewID%
  32.                 TrayTip, New Window Opened, Title:`t%Title%`nClass:`t%Class%
  33.         minmax_func()
  34. Return
  35.  
  36. ralt & Esc::    ;right Alt key & Esc
  37. exitsub:
  38. {
  39.     critical
  40.         Exitapp
  41. }
  42.  
  43. ;=================
  44. ;==Function(s)====
  45. ;=================
  46. minmax_func()
  47. {
  48.         global NewID, minmax
  49.         WinGet, minmax, minmax, ahk_id %NewID%
  50.  
  51.    if (minmax=0)
  52.    {
  53.       WinMaximize, ahk_id %NewID%
  54.           ;use PostMessage for stubborn windows
  55.           ;PostMessage, 0x112, 0xF030,,, NewID  ; 0x112 = WM_SYSCOMMAND, 0xF030 = SC_MAXIMIZE
  56.    }
  57.    else
  58.         if (minmax=-1)
  59.         {
  60.                 WinRestore, ahk_id %NewID%
  61.         }
  62. }

~BigVent

22
psionics,

   You're most welcome!  I'm VERY happy to hear that this is aiding you!!!  I figured that if it could (save/warn) at least one person then it's worth any amount of time invested!

   Did this app alert you personally?   Is there anything you can see that needs to be adjusted, changed, added?


Again, thank you for the feedback!


~BigVent

23
Seems to be back up now


~BigVent

24
Thank you mouser!!! Much appreciated!

~BigVent

25
Hey psionics, thank you for the feedback!

* if we didn't put an entry on email/txt/smtp functions, will it not function by default? or can we have an enable/disable box for the email/txt/smtp functions(to save bandwidth/sms during non-alerting days) or a button to toggles between alerting/normal days?

  • Now you can select whether or not you'd like to enter your information.  At any time you can rt. click tray icon & change location or email/text information

* have a hyperlink to http://121.58.193.221:8080/html/wl/wl_map.html  - near the location selector(so they will have the initial idea where they are located)

  • Great idea & has been implemented

* can we use a different icon? (lets look for one)
  • I chose the Philippines flag for the current icon.  If you think of one better just let me know & we'll incorporate

* can we name the apps as floodwatch.exe(instead of pagasa.exe) and rename "Philippines Flood Information and Alert" into "Flood Watch Philippines"

  • Absolutely!  Done

Items that I'll work on:
  • Make a better GUI for the program. (I've only been focused on the functionality)
  • Testing on different OS to ensure everything works properly
  • Will remove the "Press F10 for direct site within the notification

~BigVent

Pages: prev1 2 3 4 [5] 6 7 8next
Go to full version