hihihihhih Report post Posted October 22, 2021 Hi guys, do you know if it is possible to insert a condition within a script that works only if a key is pressed? Thanks in advance and sorry if I don't write well (google translator). Quote Share this post Link to post Share on other sites
Ego Report post Posted October 22, 2021 Need more details. what are you trying to do? Quote Share this post Link to post Share on other sites
hihihihhih Report post Posted October 23, 2021 Hello and thanks for your patience. Let me explain better, I have to make a script that performs 4 different actions depending on the key pressed. For example: if I press the "X" key he will have to press the right mouse button 4 times, but if I press the "Y" key he will have to press the right mouse button 5 times. Thanks again. Quote Share this post Link to post Share on other sites
The WABBIT Report post Posted October 23, 2021 If I understand what you are wanting to do. Is that you want to create a script that then sets up, what would be in essence, a macro key for use in the game. Yes, it is possible to do that. But, the macro key would only be available for use. As long as the script is running. With that said, what you need to do is use the Special Variables {GlobalKeyCount} & {GlobalKeys} and the ClearGlobalKey command. You can find the information for these in the AC Tool help file. If you search the forums, you might be able to find some very old topic talking about how to use the {GlobalKeyCount} & {GlobalKeys} and ClearGlobalKeys with in a script. Otherwise you will have to create a test script to experiment on how to use these to create a macro key. Quote Share this post Link to post Share on other sites
hihihihhih Report post Posted October 24, 2021 Thank you very much, looking on the forum {GlobalKeyCount} & {GlobalKeys} I found the solution. Quote Share this post Link to post Share on other sites
The WABBIT Report post Posted October 25, 2021 I am glad that I was able to help you in this. Quote Share this post Link to post Share on other sites
helloword Report post Posted February 25 On 10/23/2021 at 9:54 PM, The WABBIT said: With that said, what you need to do is use the Special Variables {GlobalKeyCount} & {GlobalKeys} and the ClearGlobalKey command. You can find the information for these in the AC Tool help file. If you search the forums, you might be able to find some very old topic talking about how to use the {GlobalKeyCount} & {GlobalKeys} and ClearGlobalKeys with in a script. Otherwise you will have to create a test script to experiment on how to use these to create a macro key. Hi, is it possible to use the SHIFT key in {GlobalKeys}? I know you can use SHIFT + "KEY" but I would need to use only SHIFT as GlobalKey. Thank you. Quote Share this post Link to post Share on other sites
The WABBIT Report post Posted February 25 3 hours ago, helloword said: Hi, is it possible to use the SHIFT key in {GlobalKeys}? I know you can use SHIFT + "KEY" but I would need to use only SHIFT as GlobalKey. Thank you. you need to read AC Tool Help file about {GlobalKeys}. Quote Share this post Link to post Share on other sites