Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set drivelabel and win rollup
#1
i have two questions.
how do i change the name of a drive (e.g. c:\) ?

how to rollup a window so that only the captionbar is visible ?

thanks
pi
#2
Code:
Copy      Help
dll kernel32 #SetVolumeLabel $lpRootPathName $lpVolumeName

SetVolumeLabel "c:\" "label" ;;set label
10
SetVolumeLabel "c:\" 0 ;;remove label

Code:
Copy      Help
def CCHILDREN_TITLEBAR 5
type TITLEBARINFO cbSize RECT'rcTitleBar rgstate[CCHILDREN_TITLEBAR+1]
dll user32 #GetTitleBarInfo hwnd TITLEBARINFO*pti

int h=win("Quick Macros")
RECT r; GetWindowRect h &r ;;save

TITLEBARINFO ti.cbSize=sizeof(TITLEBARINFO)
GetTitleBarInfo h &ti
siz 0 ti.rcTitleBar.bottom-ti.rcTitleBar.top h 1

5
siz 0 r.bottom-r.top h 1 ;;restore
#3
do you have an idea why rollup doesn't work on calc.exe ?
pi
#4
calculator restores itself. Only height. For example, max "Calculator" changes width, but not height.


Forum Jump:


Users browsing this thread: 1 Guest(s)