OiMunk Posted September 24, 2016 Posted September 24, 2016 I'm not sure why, but no response from the Keys. I suspect my Microsoft keyboard isn't sending a conventional code for Volume. Au3Record.exe doesn't register a key press. If I knew where to edit the windows registry, I'd pursue that option instead. HotKeySet("{VOLUME_UP}","MediaNext") HotKeySet("{VOLUME_DOWN}","MediaPrevious") while 1 Func MediaNext() Send("{MEDIA_NEXT}") msgbox(0,"Test Response","") EndFunc Func MediaPrevious() Send("{MEDIA_PREV}") EndFunc sleep(50) wend
232showtime Posted September 25, 2016 Posted September 25, 2016 (edited) maybe something like this HotKeySet("{ESC}", "MediaNext") HotKeySet("{F1}", "MediaPrevious") While 1 Sleep(50) WEnd Func MediaNext();Testing1 ;~ Send("{MEDIA_NEXT}") MsgBox(0, "Test Response", "MEDIA_NEXT") EndFunc ;==>MediaNext Func MediaPrevious();Testing2 ;~ Send("{MEDIA_PREV}") MsgBox(0, "Test Response", "MediaPrevious") EndFunc ;==>MediaPrevious dont forget to use the code tags "<>" for posting script. Edited September 25, 2016 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
ViciousXUSMC Posted September 26, 2016 Posted September 26, 2016 For hotkey stuff Id lower the sleep even more to like 10ms helps with response. The original code might work, I would take the functions out of the loop as shown in the 2nd post.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now