What should I do if the priority of shortcut keys is not enough?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
ZeronoFreya
Posts: 16
Joined: 31 Jan 2015, 09:28

What should I do if the priority of shortcut keys is not enough?

Post by ZeronoFreya » 25 Jul 2021, 21:56

Program is pureref
www.pureref.com

This is a Qt5 program

Cannot send shortcut keys with send method

Code: Select all

Left::{
  ; ControlSend("{Ctrl Down}{Left}{Ctrl Up}",,"ahk_exe PureRef.exe")
  ; Send("{Ctrl Down}{Left}{Ctrl Up}")
  Send("^{Left}")
}
The above code is invalid
The program will perform the default left operation

I have used SendMode, SetKeyDelay, InstallKeybdHook, UseHook, and I have run it with an administrator
Last edited by ZeronoFreya on 26 Jul 2021, 05:39, edited 1 time in total.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: What should I do if the priority of shortcut keys is not enough?

Post by swagfag » 26 Jul 2021, 02:08

play around with A_SendMode, A_KeyDelay and A_KeyDuration

ZeronoFreya
Posts: 16
Joined: 31 Jan 2015, 09:28

Re: What should I do if the priority of shortcut keys is not enough?

Post by ZeronoFreya » 26 Jul 2021, 05:40

swagfag wrote:
26 Jul 2021, 02:08
play around with A_SendMode, A_KeyDelay and A_KeyDuration
I tried it and it didn't work
Autohotkey2

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: What should I do if the priority of shortcut keys is not enough?

Post by swagfag » 26 Jul 2021, 07:11

ZeronoFreya wrote:
26 Jul 2021, 05:40
I tried it and it didn't work
reeeeeeeeeeaallly.....so why then is it when i tried it it did work? :roll:

Code: Select all

#Requires AutoHotkey v2.0-beta.1

Left::{
	A_SendMode := 'Event'
	A_KeyDuration := 10
	Send('^{Left}')
}

ZeronoFreya
Posts: 16
Joined: 31 Jan 2015, 09:28

Re: What should I do if the priority of shortcut keys is not enough?

Post by ZeronoFreya » 26 Jul 2021, 07:47

swagfag wrote:
26 Jul 2021, 07:11
ZeronoFreya wrote:
26 Jul 2021, 05:40
I tried it and it didn't work
reeeeeeeeeeaallly.....so why then is it when i tried it it did work? :roll:

Code: Select all

#Requires AutoHotkey v2.0-beta.1

Left::{
	A_SendMode := 'Event'
	A_KeyDuration := 10
	Send('^{Left}')
}
I tried your code, but it still doesn't work? Are there any operating conditions?

win10 64 home
AutoHotkey_2.0-a138
Autohotkey2


ZeronoFreya
Posts: 16
Joined: 31 Jan 2015, 09:28

Re: What should I do if the priority of shortcut keys is not enough?

Post by ZeronoFreya » 26 Jul 2021, 11:39

swagfag wrote:
26 Jul 2021, 08:46
no
Image
Thank you very much, I was stupid, I pressed the right key :crazy:
Autohotkey2

Post Reply

Return to “Ask for Help (v2)”