Jump to content
LaunchBox Community Forums

Auto Hotkey Scripts


Lordmonkus

Recommended Posts

@JoeViking245 Could you help me with something? I think it's the last issue I should need help with.

I have problems with launchbox covering the taskbar when I launch certain games, most likely because they're a different resolution than desktop which is 1920 x 1080. Even though when I quit the game and the resolution reverts back to 1080p launchbox still covers the taskbar. I am able to use a hotkey to make the taskbar show as minimizing it and reactivating it solves the issue.

 

Hotkey, Insert, LaunchUpdate
return

LaunchUpdate: 
WinMinimize ahk_exe launchbox.exe 
WinActivate ahk_exe launchbox.exe 

 

But I want to do it on a loop instead that does it automatically if it happens however only if the script can tell launchbox is covering the taskbar because if not it'll just be winminimizing and activating constantly. Could you help with that?

Edited by Jayinem
Link to comment
Share on other sites

7 minutes ago, JoeViking245 said:

What happens if you set the LB window to NOT fullscreen, then grab the edges and 'stretch' to where you want the window to be?  aka, it looks fullscreen, but it's technically not.

You know what it is remember how I was running scripts to keep launchbox fullscreen and where if I minimize or hit the middle winrestore button it would still stay fullscreen (but show taskbar) that script is causing the issue I just figured out.  Because to do what you asked make it not fullscreen I had to close that script, and when I dragged it to cover the entire screen except taskbar, and changed the resolution it did not cover the taskbar. However as soon as I ran the script and changed the resolution it covered the taskbar. Problem is I kind of like the script maybe it could be fixed? This is what I have

 #SingleInstance force
#Persistent

Loop
{
   if WinActive("ahk_exe LaunchBox.exe")
      WinMaximize
}

  

So for some reason this makes it maximize as in cover the taskbar if I change resolutions, but if not it does not which is odd to me.

 

Link to comment
Share on other sites

8 hours ago, JoeViking245 said:

Sounds like you have too many scripts and they're tripping all over themselves. lol

Change your old script to not maximize then.  Try WinRestore instead.

When I do that, it makes it cover the taskbar at all times, even if I click the box in the top right it won't allow it to not cover the taskbar. 😟

I've never had success with the WinRestore command, it's almost like they're backwards restore maximizes and maximize restores. As soon as I change it back to WinMaximize it's back to showing taskbar, unless of course I change resolution.

You having me drag the size of launchbox did seem to help somewhat though. If I change the resolution to 720p it does cover the taskbar, but at least when I change it back to 1080p it no longer does, so is helpful for games that would effect the resolution. I do use 720p for one thing though to stream my PC to my Nintendo Switch, but I don't use it very often.

Edited by Jayinem
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...