Jump to content

HotKeySet - two in a row


litlmike
 Share

Recommended Posts

*************EDIT!******************

Go here to view update on this post:

http://www.autoitscript.com/forum/index.ph...=38101&st=0

*************CLOSE EDIT!******************

Problem:

I used to be able to call two HotKeySets in a row, that shared some of the same HotKeys, without having to release all the keys on the keyboard. Now that I updated to the newest version of AutoIt Beta, I can no longer do this.

Edit:

Also, the HotKey does not activate until the release of the HotKeys.

Example:

Let's say the hotkeys are "+!p" and "+!r". I used to be able to press the first HotKey "+!p", and the function would call; then with only lifting off the "p" I could hold down "+!" then just press "r" and the next function would call. Since the update I have to press "+!p", release all keys, then press "+!r". For the script I used this for, it is imperative that I am able to revert to the original way, before the update. Suggestions?

Thanks in Advance.

HotKeySet ("+!p", "Click1")
HotKeySet ("+!r", "Click2")

While 1 
    Sleep (1000)
WEnd

Func Click1 ()
    MouseClick ("left", 500, 500)
EndFunc
    
Func Click2 ()
    MouseClick ("left", 600, 600)
EndFunc
Edited by litlmike
Link to comment
Share on other sites

i know what you mean.

HotKeySet ("!s", "Click")
HotKeySet ("!a", "Click")
HotKeySet ("!d", "Click")

While 1
    Sleep (250)
WEnd
    
Func Click ()
    ConsoleWrite(@HotKeyPressed & @LF)
EndFunc

if you press: ALTDOWN A S D ALTUP it reports 3 times ALT+D After the modifier (ALT) is released

this wasent so last time i used this (v 3.1.something beta)

i think you found a bug...

edit: works as expected (reporting 3 different keys immediately) in v3.2.0.1

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

i know what you mean.

HotKeySet ("!s", "Click")
HotKeySet ("!a", "Click")
HotKeySet ("!d", "Click")

While 1
    Sleep (250)
WEnd
    
Func Click ()
    ConsoleWrite(@HotKeyPressed & @LF)
EndFunc

if you press: ALTDOWN A S D ALTUP it reports 3 times ALT+D After the modifier (ALT) is released

this wasent so last time i used this (v 3.1.something beta)

i think you found a bug...

edit: works as expected (reporting 3 different keys limitedly) in v3.2.0.1

Can anyone else confirm this is a bug? If it is, do I need to report it somewhere? This is my first time finding a bug, usually my coding is the bug!

Thanks.

Link to comment
Share on other sites

It sounds like he is saying that before, he just had to hold down the ctrl-alt keys and could just press the extra letters without letting up off the special keys. So, he could just alternate

Now, he has to entirely release and repress the special keys.

Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Link to comment
Share on other sites

I remember JP putting in a fix for hotkeys and functions, I had a feeling at the time it would break something else...

Lol, well it is good to know that the problem is not on my end. However, that does mean I also can't fix the problem, that is up to JP. I did put a post in the Bug Forums.

I feel special that I found my first bug. Lol.

Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...