Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

IsPressed works for one key, but does not for a key combination?

$
0
0
Hello,

Background
1) AutoIt : 3.3.8.1
2) OS : Windows XP SP3

Issue

I am attempting to create a set of keyboard shortcuts, as shown in the code below:

#include <misc.au3>

Local $hDLL = DllOpen("user32.dll")

while 1
HotKeySet ("a" , "_keyA")
wend

Func _keyA ()

; DOES work
; Wake + Left = Left
If _ispressed ("FF") Then
Send("{LEFT}")
Endif

; DOES NOT work
; Alt + Wake + a = Home
; If _ispressed ("FF") and _ispressed ("12") Then
; Send("{HOME}")
; Endif

EndFunc
DllClose($hDLL)


One of them, as indicated in the comment, works and sends a Left when pressing "Wake + a". The other one when sending "Alt + Wake + a" does not work. Could someone please let me know what is that I am doing wrong?

Thank you for your time.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>