Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set additional properties for the window
#4
you said remove label so i removed the text. You meant apparently remove the taskbar button

need this

Function TaskbarAddRemoveButton
Code:
Copy      Help
;/
function action hwnd ;;action: 1 add, 2 delete

;Adds or deletes taksbar button for window whose handle is hwnd.


interface# ITaskbarList :IUnknown
,HrInit()
,AddTab(hwnd)
,DeleteTab(hwnd)
,ActivateTab(hwnd)
,SetActiveAlt(hwnd)
,{56FDF342-FD6D-11d0-958A-006097C9A090}

ITaskbarList t._create("{56FDF344-FD6D-11D0-958A-006097C9A090}")
t.HrInit
sel action
,case 1 t.AddTab(hwnd)
,case 2 t.DeleteTab(hwnd)

err end _error



Code:
Copy      Help
int w
run "$system$\notepad.exe" "" "" "" 0xA00 win("" "Notepad") w
;code for
;1.the title bar is hidden
;; if you do this wont be able to move the window with the mouse
SetWinStyle w WS_CAPTION 2|8
;2.the label is not displayed on the taskbar
;_s=""
;_s.setwintext(w)
TaskbarAddRemoveButton 2 w

;3.and the transparency of the window is 50%.
;value between 0 and 255
Transparent w 128
;4.After clicking the minimize button, in the lower right corner of the taskbar, a small icon is displayed.



or simpler try code below

Code:
Copy      Help
int w
run "$system$\notepad.exe" "" "" "" 0xA00 win("" "Notepad") w
;code for
;1.the title bar is hidden
;; if you do this wont be able to move the window with the mouse
SetWinStyle w WS_CAPTION 2|8
;2.the label is not displayed on the taskbar
;_s=""
;_s.setwintext(w)
SetWindowLong(w GWL_HWNDPARENT GetDesktopWindow)
;3.and the transparency of the window is 50%.
;value between 0 and 255
Transparent w 128
;4.After clicking the minimize button, in the lower right corner of the taskbar, a small icon is displayed.

read more here
http://www.quickmacros.com/forum/showthr...bar+button


Messages In This Thread
set additional properties for the window - by win - 11-13-2018, 11:30 PM
RE: set additional properties for the window - by Kevin - 11-14-2018, 03:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)