Jump to content
AC Tool Forums
  • Sign Up
Sign in to follow this  
Anka

Globalkeys empty

Recommended Posts

All of a sudden {Golbalkeys} does not have any results.

When testing a timestamp loop, my results are ...

TimeStamp: 11/22/2019 11:32:35:267 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:36:268 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:37:268 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:38:269 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:39:271 am - Current value of GlobalKeys = 

Could this be to a recent Windows 10 update?

Any suggestions?

Share this post


Link to post
Share on other sites

 

 

All of a sudden {Golbalkeys} does not have any results.

When testing a timestamp loop, my results are ...

TimeStamp: 11/22/2019 11:32:35:267 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:36:268 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:37:268 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:38:269 am - Current value of GlobalKeys = 
TimeStamp: 11/22/2019 11:32:39:271 am - Current value of GlobalKeys = 

Could this be to a recent Windows 10 update?

Any suggestions?

I guess this was just a false post/problem. Since there was no response to my reply or further statements from the OP.

Share this post


Link to post
Share on other sites
//Empty the keystroke buffer
ClearGlobalKeys

//Loop 10 times
Loop 10
 //Write {GlobalKeys} contents to test log
 Timestamp Current value of GlobalKeys = {GlobalKeys}
 Delay 1 sec
End

This is what I used, been too busy to test further, I'll look at it again.

Share this post


Link to post
Share on other sites

I'm using a macro I wrote to mine in ATITD.  I've been using it for over a month where I hover over a mining stone and press backspace to capture the coordinates on screen.  I've had no problems with it before my post last Friday.  The code has not changed at all.  I ran the above code which gave the blank results.  The code I've been using is below.

ClearGlobalKeys
  Timestamp $Stones
  Loop $Stones
    Set $R = 0
    While $R = 0
      If {GlobalKeys} Contains 8
        ListAdd Rocks, {MouseX} , {MouseY}
        Timestamp Rocks[1]
        ClearGlobalKeys
        inc R
      End
    End
  End

The only results from timestamp is the "Timestamp $Stones.

Share this post


Link to post
Share on other sites

Okay, AC Tool uses a Global Keyboard hook to catch keys being typed while another windows is the Focused and active window. When AC Tool loads up, it will load the actoolhook.dll that will hook into all other programs/apps that are, or will be, running one you system. The actoolhook.dll captures all keyboard keypresses and sends them to AC Tool in the {GlobalKeys} constant. And updates the {GlobakKeyCount} with the number of keys shown in {GlobalKeys}.

If you are not typing anything after clearing the {GlobalKeys}. then {GlobalKeys} will not get any keys.

Also, if for some reason actoolhook.dll isn't loaded, or the global keyboard hook is removed, then {GlobalKeys} and {GlobalKeyCount} will not be populated or changed.

 

From what you have stated in your last post. It sounds like actoolhook.dll was not loaded and the global keyboard hook was not established. or for some reason the global keyboard hook was removed.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and to our Privacy Policy.