Ok. I have VirtualBox, with Linux inside. My host is Win10. You may know that VirtualBox might work in two modes. In one of them, it grabs the keyboard entirely (except Right Ctrl, which is used to come bac to host OS). That's it - you live and type in an honest Linux machine. Alt+Tab will cycle, naturally, between the applications inside Linux, any Autohotkey scripts in the host Win10 are ignored, etc. In another mode, the keyboard is not grabbed by VirtualBox, but this is helpful only if you work with a single application in Linux, because Alt+Tab now switches only between applications of the host OS.
That has bugged be quite a lot. So when I learnt about AutoHotKey, I though - that's it! I'm saved! I can write a script, such that when the active window is VirtualBox, I can send Alt+Tab to Linux!
And yet, whichever version of a script that could do this I tried, it failed. For example, this one cause Alt+Tab to switch between host's apps as usual:
#IfWinActive Ubuntu [Running] - Oracle VM VirtualBox
!Tab:: Send !{Tab}
#IfWinActive
and this one just type "Tab" if there is an input active within Linux:
#IfWinActive Ubuntu-16.04.2 [Running] - Oracle VM VirtualBox
!Tab:: Send !Tab
#IfWinActive
I also tried different versions of Send (SendInput, SendRaw, SendEvent) - nothing works.
What am I doing wrong? Or does even a solution with AHK exists for this problem?
- Home Board index AutoHotkey (v1.1 and older) Ask for Help (v1)
- Search
-
- It is currently 09 May 2024, 22:25
- All times are UTC-05:00
Out of ideas about sending ALt+Tab into VirtualBox guest OS Topic is solved
Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming
- Scripts and Functions (v2)
- Gaming
- Tutorials (v2)
- Tips and Tricks
- Wish List
- Suggestions on Documentation Improvements
- Bug Reports
- AutoHotkey Development
- AutoHotkey_H
- Ask for Help
- Development
- Editors
- Adventure IDE
- Old Topics
- AHK Studio
- Notepad++
- Pulovers Macro Creator
- SciTE4AutoHotkey
- Visual Studio Code
- Announcements
- General Discussion
- AutoHotkey (v1.1 and older)
- Ask for Help (v1)
- Gaming Help (v1)
- Scripts and Functions (v1)
- Gaming Scripts (v1)
- Tutorials (v1)
- Tips and Tricks (v1)
- General
- Other Utilities & Resources
- Other Programming Languages
- C/C++
- ASM
- C#
- KeySharp
- Off-topic Discussion
- RPA
- Other languages
- Looking for Volunteers in other languages
- Deutsch (German)
- Ich brauche Hilfe
- Spiele
- Skripte und Funktionen
- Tutorials
- Tooltime
- Allgemeines
- 中文 (Chinese)
- 请求帮助
- 脚本函数
- 教程资料
- 相关工具
- 其他
- Español (Spanish)
- Pedir Ayuda
- Automatización de Juegos
- Scripts y Funciones
- Tutoriales
- Otras Utilidades y Recursos
- General
- Русский (Russian)
- Помощь
- Скрипты для Игр
- Скрипты и библиотеки
- Статьи и руководства
- Прочие ресурсы и ПО.
- Свободное общение
- Français (French)
- J'ai besoin d'aide
- Scripts et Fonctions
- Tutoriels
- Autres Utilitaires et Ressources
- Hors Sujet
- Português (Portuguese)
- Ajuda e Suporte Geral
- Scripts e Funções
- Tutoriais
- Outras Ferramentas e Recursos
- Outros Assuntos
- 한국어 (Korean)
Who is online
Users browsing this forum: haomingchen1998, OrangeCat and 137 guests