Many thanks to Rohwedder and GEV. I've got this script to implement paste-and-go function in address bar on browser, just by holding right mouse button. I come to realize that holding right mouse button trigger has conflicts with existing mouse gesture plug-in on browser.
Any kind man who can modify the following script from holding right mouse button to triple click right mouse button will be much appreciated.
Here is the script.
#NoTrayIcon
; Double Right Click to paste:
~RButton::
If (A_PriorHotKey = "~RButton Up" and A_TimeSincePriorHotkey < 500)
{
CloseContextMenu := true
KeyWait, RButton, L
Sleep, 200
Send ^v ; or your double-right-click action here
}
KeyWait, RButton, U T.2
If ErrorLevel
{ ;when I holding right mouse button for 200 millisecond
CloseContextMenu := true
Sleep, 200
Send ^v ;then it pastes
Sleep, 200
Send, {Enter} ;and send a {Enter}
}
Return
~RButton Up::
CloseContextMenu := false
Return
~LButton & RButton::
CloseContextMenu := true
KeyWait, RButton, L
KeyWait, LButton, L
Send ^c
Return
~RButton & LButton::
CloseContextMenu := true
KeyWait, LButton, L
KeyWait, RButton, L
Send ^v
Return
#If (CloseContextMenu)
RButton Up::
CloseContextMenu := false
Sleep, 200 ; or more
Send {Escape}
Return
#If
- Home Board index AutoHotkey (v1.1 and older) Ask for Help (v1)
- Search
-
- It is currently 05 May 2024, 01:47
- All times are UTC-05:00
modify long holding trigger to triple click 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)