Gaia

start a program and hide the task bar and close the program re-hide the taskbar

8 posts in this topic

hi

i'm new

i start to use autoit , i would like to learn 

for example i would like to hide the windows 10 taskbar when i start photoshop.exe and to unhide the taskbar when i close it

can somebody give a optimazed code about it?

i would like to optimaze at best the code

thanks

Share this post


Link to post
Share on other sites



Normally pressing F key in Photoshop changes to Full Screen Mode (on top of taskbar), I've read that there are some issues with 1607 though but upgrading to 2017 appears to fix the issue.

Share this post


Link to post
Share on other sites
1 hour ago, Subz said:

Normally pressing F key in Photoshop changes to Full Screen Mode (on top of taskbar), I've read that there are some issues with 1607 though but upgrading to 2017 appears to fix the issue.

hi

yes , but 2017 is very slow and buggy , you can read in their forum

i would like to use and write a script for this

it should wait for photoshop.exe and hide the taskbar , as soon i close photoshop it should un hide the taskbar

 

thanks

Share this post


Link to post
Share on other sites

Ok, here is the skinny. The settings for auto hiding the taskbar are not as simple as on / off unless you use the "built in" function. Changing the registry requires you to kill the 'explorer.exe' process and reload it for the changes to happen.. Sucks.. So.. Here is a quick and dirty work around. It will do the mouse movements to accomplish what you want, if your taskbar is on the bottom. It's not the ideal solution but works.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Run_Tidy=y
#Tidy_Parameters=/tc 4 /reel
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client

Local $Properties

HotKeySet("{ESC}", "_Quit")

Run("Notepad.exe")

While 1
    Sleep(10)
    If ProcessExists("Notepad.exe") Then
        _HideTaskBar()
        _Quit()
    EndIf
WEnd

Func _HideTaskBar()
    $x = @DesktopWidth / 2
    $y = @DesktopHeight - 1

    MouseClick("right", $x, $y, 1, 1)
    MouseClick("left", $x + 5, $y - 5, 1, 1)
    Sleep(100)
    If WinExists("Taskbar and Start Menu Properties") Then
        $Properties = WinGetPos("Taskbar and Start Menu Properties")
        WinActivate("Taskbar and Start Menu Properties")
        MouseClick("left", $Properties[0] + 45, $Properties[1] + 118, 1, 1)
        Send("{ENTER}")
    EndIf
EndFunc   ;==>_HideTaskBar

Func _Quit()
    Exit
EndFunc   ;==>_Quit

 

1 person likes this

 

Spoiler

WinSizer 2.1 (01/04/2017) - Download - [ Windows Layout Manager ]
Folder+Program (12/23/2016) - Download - [ USB Shortcut Creator ]

 

Share this post


Link to post
Share on other sites
1 hour ago, zone97 said:

Ok, here is the skinny. The settings for auto hiding the taskbar are not as simple as on / off unless you use the "built in" function. Changing the registry requires you to kill the 'explorer.exe' process and reload it for the changes to happen.. Sucks.. So.. Here is a quick and dirty work around. It will do the mouse movements to accomplish what you want, if your taskbar is on the bottom. It's not the ideal solution but works.

 

hi

thanks

is there a way to decompile an exe created with audit?

thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now