Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set additional properties for the window
#1
Hello everyone, I want to know, QM how to set some additional properties of the window, I hope someone can provide some suggestions or methods, thanks in advance Smile

For example, I want to set up a notepad window: 

1.the title bar is hidden

2.the label is not displayed on the taskbar

3.and the transparency of the window is 50%.

4.After clicking the minimize button, in the lower right corner of the taskbar, a small icon is displayed.

Macro Macro2
Code:
Copy      Help
int w
run "$system$\notepad.exe" "" "" "" 0xA00 win("-" "Notepad") w
;code for 1.the title bar is hidden
;2.the label is not displayed on the taskbar
;3.and the transparency of the window is 50%.
;4.After clicking the minimize button, in the lower right corner of the taskbar, a small icon is displayed.
#2
you cant do all of that at the same time easily.. If you hide title bar(aka window caption) there is no option to minimize ,maximize ect. also you won't be able to move the window either(least not by mouse dragging).

but here is a few of those options

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)
;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.
#3
Smile

1. The ico of the notepad will still be displayed on the taskbar. I want him to disappear.

2. In addition, the most important, the fourth requirement, after the button is minimized, can be minimized to an icon in the lower right corner of the taskbar.  I don't know if it can be achieved.

There are a lot of software. When I record the screen, the software can't be minimized to the bottom right corner of the taskbar. I really need this function.

Macro Macro1
Code:
Copy      Help
int w
run "$system$\notepad.exe" "" "" "" 0xA00 win("" "Notepad") w
_s=""
_s.setwintext(w)
;3.and the transparency of the window is 50%.
Transparent w 128
;4.After clicking the minimize button, in the lower right corner of the taskbar, a small icon is displayed.


Attached Files Image(s)
   
#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
#5
Now I can hide the button on the taskbar. How do I implement the click minimize button and display a small icon in the lower right corner of the taskbar? When I click on it, the window will recover Smile

Macro Macro4
Code:
Copy      Help
int w
run "$system$\notepad.exe" "" "" "" 0xA00 win("" "Notepad") w
Transparent w 128
TaskbarAddRemoveButton 2 w
;4.click minimize button, a small icon in the lower right corner of the taskbar


Forum Jump:


Users browsing this thread: 2 Guest(s)