TemporarilyShowVerticalBar

Title TemporarilyShowVerticalBar
File Name TemporarilyShowVerticalBar.txt
Description Show briefly and then hide vertical button bar
Author Vochomurka
Parameters -
Plugins Called win
Version 1.0
Updated on 28.10.19
local hwnd = win.handle("c=TTOTAL_CMD")
win.sendmessage(hwnd, 0x400+51, 2944, 0)
local VBB = win.sendmessage(hwnd, 0x400+50, 29, 0)

if(!win.visible(VBB))
	quit

wait.for(1500)

for(;VBB == win.handlefrompoint(xmouse, ymouse);)
	wait.for(500)
endfor

win.sendmessage(hwnd, 0x400+51, 2944, 0)

Comments

If at starting the script the vertical bar is shown, it gets hidden. Otherwise, it gets shown for 1.5 seconds, and remains visible while the mouse cursor os over the bar, and half-second after. So, the bar is always available and hides just after it is used. The same can be done with horizontal bar. Number 29 should be changed to 28, and 2944 to 2901.

Both script execution can be assigned to so-called "screen bumps" by PowerPro


Main Page Total Commander PowerPro