Jump to content

Recommended Posts

Posted

VarSetCapacity(APPBARDATA, A_PtrSize=4 ? 36:48)Space::   NumPut(DllCall("Shell32\SHAppBarMessage", "UInt", 4 ; ABM_GETSTATE                                           , "Ptr", &APPBARDATA                                           , "Int") ? 2:1, APPBARDATA, A_PtrSize=4 ? 32:40) ; 2 - ABS_ALWAYSONTOP, 1 - ABS_AUTOHIDE , DllCall("Shell32\SHAppBarMessage", "UInt", 10 ; ABM_SETSTATE                                    , "Ptr", &APPBARDATA)   KeyWait, % A_ThisHotkey   Return
This is a code from autohotkey that will autohide the taskbar and give you the taskbar space to use for your app. Can someone show me how to translate it please who has experience with this app? And then put it back to always show.

Posted

dont know what that does, but i use winsetstate. 

WinSetState("[CLASS:Shell_TrayWnd]", "", @SW_HIDE)

tooltip("taskbar is hidden for 5 seconds" , 0 , 0)

sleep (5000)

WinSetState("[CLASS:Shell_TrayWnd]", "", @SW_SHOW)

exit

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Posted

Thanks, but I came across that before, when I use that and open a dialog from my GUI its like the taskbar is there but invisible because my dialog won't occupy the space where the taskbar is usually filling. I don't know if the thing I want translated will fix the problem, but its the only thing left to try.

Posted (edited)

gui has a height of 21 and a y of (@desktopheight - 21) to occupy the space taskbar leaves 

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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
×
×
  • Create New...