Sign in to follow this  
Followers 0
litlmike

HotKeySet - two in a row

9 posts in this topic

#1 ·  Posted (edited)

*************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

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0