AAO25.com

Assist => Support => Assist Support => Topic started by: hitman on Tuesday, October 24, 2017, 19:09:10 PM

Title: How to have game minimized?
Post by: hitman on Tuesday, October 24, 2017, 19:09:10 PM
Hi, is there any way to join a server (empty) and make the game minimized so I could do something else with the PC? I seem to hijack everything, even the power button doesn't work when the game is launched.

Running Ubuntu 17.04.

Thanks
Title: Re: How to have game minimized?
Post by: Possessed on Tuesday, October 24, 2017, 19:21:21 PM
play in windowed mode. not sure if it works in linux, but try Alt + Enter to go to windowed mode and Alt + Tab, click else where and then minimize the window. to go back to fullscreen press alt + enter again.
Title: Re: How to have game minimized?
Post by: hitman on Tuesday, October 24, 2017, 19:27:41 PM
Alt + Enter works, thanks, but Alt + Tab does not. Can't click anywhere either. Is there some setting to launch the game minimized? Or stop it from hijacking keyboard?

play in windowed mode. not sure if it works in linux, but try Alt + Enter to go to windowed mode and Alt + Tab, click else where and then minimize the window. to go back to fullscreen press alt + enter again.
Title: Re: How to have game minimized?
Post by: Possessed on Tuesday, October 24, 2017, 22:37:51 PM
try either:
Ctrl + G or Ctrl+Alt+G or CTRL+ALT+→ or CTRL+ALT+← or Alt + ESC

 :D
Title: Re: How to have game minimized?
Post by: teddy_grizzly_bear on Wednesday, October 25, 2017, 07:21:40 AM
I've had the same issue in the passed. I've never fixed it. I first thought it was because I was running 25Assist as Super User, but that was not the case as running armyops-bin without without sudo had the same result.

The only key combination I could get to work when I tried it (last year (https://stackoverflow.com/questions/40242285/linux-capture-keystrokes-from-inside-sudo-gui)), was Ctrl+Alt+F1 to Ctrl+Alt+F6 to switch to a command line interface.
Title: Re: How to have game minimized?
Post by: hitman on Wednesday, October 25, 2017, 10:43:00 AM
Thanks for reminding about tty console. I asked a question on AskUbuntu, please press Upvote! https://askubuntu.com/questions/969100/how-to-force-minimize-an-application-when-keyboard-is-hijacked

I've had the same issue in the passed. I've never fixed it. I first thought it was because I was running 25Assist as Super User, but that was not the case as running armyops-bin without without sudo had the same result.

The only key combination I could get to work when I tried it (last year (https://stackoverflow.com/questions/40242285/linux-capture-keystrokes-from-inside-sudo-gui)), was Ctrl+Alt+F1 to Ctrl+Alt+F6 to switch to a command line interface.
Title: Re: How to have game minimized?
Post by: Possessed on Wednesday, October 25, 2017, 13:20:25 PM
Try:
Option 1:
Bind it to some shortcut key:
System>>Preferences>>Keyboard Shortcuts
pick a key, as command add:
Code: [Select]
xdotool getactivewindow windowminimize(If you are using Compiz you can set custom keyboard and mouse shortcuts using CCSM (Compiz Config Settings Manager) and the Commands plugin.)

Option 2:
Make a "minimize.sh"
Code: [Select]
#!/bin/bash
xdotool getactivewindow windowminimize
#if this does not work, use the other command below by removing the "#" and add "#" to the command above.
#xdotool windowminimize $(xdotool getactivewindow)
exec $SHELL
After that use chmod to make this file executable:
Code: [Select]
sudo chmod 744 minimize.shBind it to some shortcut key:
System>>Preferences>>Keyboard Shortcuts
pick a key, as command add:
Code: [Select]
bash /full/path/to/minimize.sh <edit the correct path
Optional keybinding:
using xbindkeys-config
If you do not have xbindkeys:
Code: [Select]
sudo apt-get install xbindkeys xbindkeys-confighttp://xahlee.info/linux/linux_xbindkeys_tutorial.html (http://xahlee.info/linux/linux_xbindkeys_tutorial.html)
Title: Re: How to have game minimized?
Post by: hitman on Wednesday, October 25, 2017, 14:08:47 PM
Have not tried it yet, but since non of the shortcuts defined in Keyboard Shortcuts work, wouldn't that mean that I can't actually set a custom shortcut that would not be hijacked? Maybe xbindkeys.

Btw, your answer with xdotools is simplier than the one askubuntu asnwer with getactivewindow, thanks

Try:
Option 1:
Bind it to some shortcut key:
System>>Preferences>>Keyboard Shortcuts
pick a key, as command add:
Code: [Select]
xdotool getactivewindow windowminimize(If you are using Compiz you can set custom keyboard and mouse shortcuts using CCSM (Compiz Config Settings Manager) and the Commands plugin.)

Option 2:
Make a "minimize.sh"
Code: [Select]
#!/bin/bash
xdotool getactivewindow windowminimize
#if this does not work, use the other command below by removing the "#" and add "#" to the command above.
#xdotool windowminimize $(xdotool getactivewindow)
exec $SHELL
After that use chmod to make this file executable:
Code: [Select]
sudo chmod 744 minimize.shBind it to some shortcut key:
System>>Preferences>>Keyboard Shortcuts
pick a key, as command add:
Code: [Select]
bash /full/path/to/minimize.sh <edit the correct path
Optional keybinding:
using xbindkeys-config
If you do not have xbindkeys:
Code: [Select]
sudo apt-get install xbindkeys xbindkeys-confighttp://xahlee.info/linux/linux_xbindkeys_tutorial.html (http://xahlee.info/linux/linux_xbindkeys_tutorial.html)