can you help me to create this bat script or program?

Status
Not open for further replies.

giulia

Level 5
Thread author
Verified
Nov 30, 2016
237
508
367
italy
hi
i guess it's the right place because it's w10 related

i would like to create a bat or small program or a script
1)hide the taskbar
2)run photoshop
3)unhide the taskbar

the tool i can use it's nirsoftware
to hide
Code:
nircmd.exe win hide class Shell_TrayWnd
after run photoshop and when i close photoshop
unhide the taskbar with
Code:
nircmd.exe win show class Shell_TrayWnd

i created this
Code:
nircmd.exe win hide class Shell_TrayWnd
nircmd.exe exec show "C:\Program Files\Adobe\Adobe Photoshop CC 2015\Photoshop.exe"
nircmd.exe waitprocess Photoshop.exe nircmd.exe win show class Shell_TrayWnd

it works but i got this :mad::mad::mad:
VZUZUsM.png


thanks
 
Last edited:
Correct me if i'm mistaken but isn't this what you're trying to do? I use the second setting anyway to do what I think you're trying to do.

"automatically hide the taskbar in desktop mode"



Screenshot (65).png
 
Correct me if i'm mistaken but isn't this what you're trying to do? I use the second setting anyway to do what I think you're trying to do.

"automatically hide the taskbar in desktop mode"
hi
i know about it
but i want to hide it only when i run a program ,in this case photoshop.exe
can't understand the border and why i photoshop doesn't start just like if i hide or automacly hide the taskbar
thanks
 
Desktop size and viewport size are different things.

Perhaps it's still getting the old viewport size from launching immediately/asynchronously. Test this by adding the PAUSE command between hiding the taskbar and launching the app. Wait a few seconds before hitting a key.

If this is the case and it works, replace PAUSE with TIMEOUT /NOBREAK /T 2

This adds a 2-second delay after hiding the taskbar.
 
Desktop size and viewport size are different things.

Perhaps it's still getting the old viewport size from launching immediately/asynchronously. Test this by adding the PAUSE command between hiding the taskbar and launching the app. Wait a few seconds before hitting a key.

If this is the case and it works, replace PAUSE with TIMEOUT /NOBREAK /T 2

This adds a 2-second delay after hiding the taskbar.
hi
have you tried it?
 
Status
Not open for further replies.