Greetings, recently I bought an ultra widescreen monitor which has caused some problems for me when viewing search results on Bing and Google, since the search results are placed on one side and I have to rotate my head too much. Therefore, I looked for an extension that would automatically center the page, but the problem is that I couldn't find one that is really useful, since it centers all web pages and when searching for images, they go outside the window. In the end, I found one that restarts every time a page is opened, but the problem is that you have to press a keyboard shortcut to activate it, so I'm looking for a way to automatically press the keyboard shortcut, but only when I'm in the Bing and Google search results, excluding image and video searches, etc. I came across AutoHotkey, but I don't really understand anything about coding and programming, so I would like to ask for your help to see if there is a code that can automatically execute a keyboard shortcut, but only for https://www.bing.com/search?q= and https://www.google.com/search?q=. I was also thinking about a code that centers these pages when they are opened, so as not to use the extension, although with this method I already tried using the help of ChatGPT, but the codes that were given to me worked with errors since they didn't move all the elements of the page. Meanwhile, the extension does it really well. I hope you can help me with this problem. I will leave some screenshots.
This is how the screen normally looks when searching for something.
This is what it looks like when I use the extension to center it with the shortcut (alt+n).
- Home Board index AutoHotkey (v2, current version) Ask for Help (v2)
- Search
-
- It is currently 31 Oct 2024, 18:52
- All times are UTC-05:00
Help executing a keyboard shortcut in Edge on a specific page.
Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming Help (v2)
- Scripts and Functions (v2)
- Gaming Scripts (v2)
- Tutorials (v2)
- Tips and Tricks (v2)
- 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)