Post by jeeswg » 12 Nov 2017, 17:54
I was getting confusing behaviour, which I resolved:
Manual click: logout warning.
Click via hotkey: logout, no warning.
Code: Select all
^#Left::
;SendInput, {Click} ;not working correctly
SendInput, {Ctrl Up}{Click} ;working correctly
return
So it turns out that ctrl+click bypasses the logout warning.
In my script, because the hotkey contains ctrl, I needed the script to release ctrl, otherwise ctrl+click was sent. Cheers.
[EDIT:]
- When I pressed the hotkey it didn't open a new window.
- When I press ctrl+click manually, it opens a new window.
I was getting confusing behaviour, which I resolved:
Manual click: logout warning.
Click via hotkey: logout, no warning.
[code]
^#Left::
;SendInput, {Click} ;not working correctly
SendInput, {Ctrl Up}{Click} ;working correctly
return
[/code]
So it turns out that ctrl+click bypasses the logout warning.
In my script, because the hotkey contains ctrl, I needed the script to release ctrl, otherwise ctrl+click was sent. Cheers.
[EDIT:]
- When I pressed the hotkey it didn't open a new window.
- When I press ctrl+click manually, it opens a new window.