Hello guys.
I have a program which is Listar in my computers, it's a program of easy search through the files you have in your computer, for fast access, there's a hotkey in the program which is pressing twice the control key for a popup search bar. The problem is when I fire that hotkey while I'm in a remote desktop session, because it launches 2 of these bars, one of the host, and the other in the client ( the rdp session ) and it's really annoying and confusing.
How can I prevent with authotkey to prevent sending the twice press of control key in my host computer and only send it in the rdp session ?
Thank you very much
Block certain hotkey inside windows remote desktop?
Re: Block certain hotkey inside windows remote desktop?
A_ComputerName ?? ; The name of the computer as seen on the network.
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Block certain hotkey inside windows remote desktop?
dont think that will work :/ A_ComputerName will get the name of my computer which is running the script.
Re: Block certain hotkey inside windows remote desktop?
I do not understand that.
you have two PC then.
on is virtual and one is host.
you could seperatly install autohotkey on each computer.
scenario 1:
you have same hotkeys at both machines.
run a hotkeys at host runs also a hotkey at romote. right?
thats the problem?
you need a distinctive feature.
computername?
something else?
what could that be?
you have two PC then.
on is virtual and one is host.
you could seperatly install autohotkey on each computer.
scenario 1:
you have same hotkeys at both machines.
run a hotkeys at host runs also a hotkey at romote. right?
thats the problem?
you need a distinctive feature.
computername?
something else?
what could that be?
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Block certain hotkey inside windows remote desktop?
Yes, that is the problem. I have the same program in both computers and the hotkey fires both, I tried with something like
Is working to not fire the program in the main computer, but then the control key is obsolete in the RDP Session and I cannot even do ctrl+c
Sorry if I'm explaining badly on this
Code: Select all
#IfWinActive ahk_class TscShellContainerClass
LCtrl::
Return
Sorry if I'm explaining badly on this
Re: Block certain hotkey inside windows remote desktop?
exit the main script if TscShellContainerClass is active?alesyt0h wrote: ↑29 Jan 2019, 21:24Yes, that is the problem. I have the same program in both computers and the hotkey fires both, I tried with something likeIs working to not fire the program in the main computer, but then the control key is obsolete in the RDP Session and I cannot even do ctrl+cCode: Select all
#IfWinActive ahk_class TscShellContainerClass LCtrl:: Return
Sorry if I'm explaining badly on this
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Block certain hotkey inside windows remote desktop?
Nope, because the hotkey its not created by autohotkey, it's created by the program.SL5 wrote: ↑30 Jan 2019, 03:32exit the main script if TscShellContainerClass is active?alesyt0h wrote: ↑29 Jan 2019, 21:24Yes, that is the problem. I have the same program in both computers and the hotkey fires both, I tried with something likeIs working to not fire the program in the main computer, but then the control key is obsolete in the RDP Session and I cannot even do ctrl+cCode: Select all
#IfWinActive ahk_class TscShellContainerClass LCtrl:: Return
Sorry if I'm explaining badly on this
Re: Block certain hotkey inside windows remote desktop?
disable all of this hotkeys in main PC? if remote is active?alesyt0h wrote: ↑30 Jan 2019, 04:34Nope, because the hotkey its not created by autohotkey, it's created by the program.SL5 wrote: ↑30 Jan 2019, 03:32exit the main script if TscShellContainerClass is active?alesyt0h wrote: ↑29 Jan 2019, 21:24Yes, that is the problem. I have the same program in both computers and the hotkey fires both, I tried with something likeIs working to not fire the program in the main computer, but then the control key is obsolete in the RDP Session and I cannot even do ctrl+cCode: Select all
#IfWinActive ahk_class TscShellContainerClass LCtrl:: Return
Sorry if I'm explaining badly on this
yourHotkey::
; do nothing
return
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Block certain hotkey inside windows remote desktop?
Nope, that's what my script that I've tried is doing with LCtrl, it has to be that key. And as I said, it works to not fire the "program" in the RDP Session, but then it blocks the use of that key in everything on the RDP Session, like copy, paste .. anything that implies LCtrl
Re: Block certain hotkey inside windows remote desktop?
Send then a compicate seldom Shortcut to the Remote and redecode it there?alesyt0h wrote: ↑30 Jan 2019, 05:28Nope, that's what my script that I've tried is doing with LCtrl, it has to be that key. And as I said, it works to not fire the "program" in the RDP Session, but then it blocks the use of that key in everything on the RDP Session, like copy, paste .. anything that implies LCtrl
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Block certain hotkey inside windows remote desktop?
Sorry, I got lost, wdym ?SL5 wrote: ↑30 Jan 2019, 05:55Send then a compicate seldom Shortcut to the Remote and redecode it there?alesyt0h wrote: ↑30 Jan 2019, 05:28Nope, that's what my script that I've tried is doing with LCtrl, it has to be that key. And as I said, it works to not fire the "program" in the RDP Session, but then it blocks the use of that key in everything on the RDP Session, like copy, paste .. anything that implies LCtrl
Re: Block certain hotkey inside windows remote desktop?
example:alesyt0h wrote: ↑30 Jan 2019, 06:02Sorry, I got lost, wdym ?SL5 wrote: ↑30 Jan 2019, 05:55Send then a compicate seldom Shortcut to the Remote and redecode it there?alesyt0h wrote: ↑30 Jan 2019, 05:28Nope, that's what my script that I've tried is doing with LCtrl, it has to be that key. And as I said, it works to not fire the "program" in the RDP Session, but then it blocks the use of that key in everything on the RDP Session, like copy, paste .. anything that implies LCtrl
send,^+!1 from host.
to remote
then send, ^c inside remote to itself
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: Bing [Bot], iamasink and 341 guests