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
236
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:

Josh

Level 1
May 26, 2014
3
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
 

giulia

Level 5
Thread author
Verified
Nov 30, 2016
236
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
 

Rolo

Level 18
Verified
Jun 14, 2015
857
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.
 

giulia

Level 5
Thread author
Verified
Nov 30, 2016
236
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.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top