New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/agsetup_20060419.exe


----------------------------------------------------------------------------
Wed, 19 Apr 2006

Three new commands to support System Tay icons, SYSTRAYICON, SYSTRAYTIP
and SYSTRAYMENU.  SYSTRAYMENU is not written yet (doesn't do anything).
SYSTRAYICON and SYSTRAYTIP both are tested and working.


  SYSTRAYICON ICONFILENAME XHOTSPOT YHOTSPOT
  SYSTRAYICON ICONFILENAME XHOTSPOT YHOTSPOT
  SYSTRAYTIP TOOLTIPSTRING
  SYSTRAYMENU MENUARRAY


Example:

  SPEEDMENUARRAY[0] = "1 Second"
  SPEEDMENUARRAY{0} = "label1sec"
  SPEEDMENUARRAY[1] = "2 Seconds"
  SPEEDMENUARRAY{1} = "label2sec"
  SPEEDMENUARRAY[2] = "5 Seconds"
  SPEEDMENUARRAY{2} = "label5sec"
  SPEEDMENUARRAY[3] = "10 Seconds"
  SPEEDMENUARRAY{3} = "label10sec"
  SPEEDMENUARRAY[4] = "30 Seconds"
  SPEEDMENUARRAY{4} = "label30sec"
  SPEEDMENUARRAY[5] = "1 Minute"
  SPEEDMENUARRAY{5} = "label1min"
  SPEEDMENUARRAY[6] = "2 Minutes"
  SPEEDMENUARRAY{6} = "label2min"
  SPEEDMENUARRAY[7] = "5 Minutes"
  SPEEDMENUARRAY{7} = "label5min"
  SPEEDMENUARRAY[8] = "10 Minutes"
  SPEEDMENUARRAY{8} = "label10min"
  MENUARRAY[0] = "About"
  MENUARRAY{0} = "labelshowabout"
  MENUARRAY[1] = "Speed"
  MENUARRAY{1} = &SPEEDMENUARRAY
  MENUARRAY[2] = "Exit"
  MENUARRAY{2} = "labelexitnow"

  SYSTRAYTIP "AfterGRASP Example"
  SYSTRAYMENU &MENUARRAY



WINDOWFORCETOP has a new option, NOTOPMOST, same as ON except it does
not make the window the absolute topmost window.

  WINDOWFORCETOP             ; same as ON
  WINDOWFORCETOP ON
  WINDOWFORCETOP OFF
  WINDOWFORCETOP NOTOPMOST


WINFINDBYCLASS and WINFINTBYTITLE now support 2 more optional parameters:


  RESULTHWND = WINFINDBYCLASS(CLASS)
  RESULTHWND = WINFINDBYCLASS(CLASS)
  RESULTHWND = WINFINDBYCLASS(CLASS,HWNDPARENT)
  RESULTHWND = WINFINDBYCLASS(CLASS,HWNDPARENT,HWNDCHILDAFTER)
  RESULTHWND = WINFINDBYCLASS(CLASS,HWNDPARENT,HWNDCHILDAFTER,TITLE)

  RESULTHWND = WINFINDBYTITLE(TITLE)
  RESULTHWND = WINFINDBYTITLE(TITLE,HWNDPARENT)
  RESULTHWND = WINFINDBYTITLE(TITLE,HWNDPARENT,HWNDCHILDAFTER)
  RESULTHWND = WINFINDBYTITLE(TITLE,HWNDPARENT,HWNDCHILDAFTER,CLASS)

HWNDPARENT
  Handle to the parent window whose child windows are to be searched.
  If hwndParent is NULL, the function uses the desktop window as the
parent window.
  The function searches among windows that are child windows of the desktop.

HWNDCHILDAFTER
  Handle to a child window. The search begins with the next child
window in the Z order.
  The child window must be a direct child window of hwndParent, not
just a descendant window.
  If hwndChildAfter is NULL, the search begins with the first child
window of hwndParent.


Example which reads the Windows Task Bar height:

  drawclear white
  dllsetup user32.dll dword "GetWindowRect" GetWindowRect hwnd farptr
  memnew rect 16
  GetWindowRect WinFindByClass("Button", WinFindByClass("Shell_TrayWnd")) @rect
  taskbarheight = @desktopsizey-#rect[4]
  messagebox "TaskBarHeight = "[EMAIL PROTECTED]
  wait

----------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"aftergrasp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/aftergrasp
-~----------~----~----~----~------~----~------~--~---

Reply via email to