Hey,

I just started using HotKeyNet and am fairly new making my own script.

The thing I have achieved is creating a panel with buttons. Each button consists of two images. Each time I click a button it will switch to the second image for 500ms then back, so you can see that you click it.

Now what I am trying to achieve is that the buttons have actions with diffrent cooldowns. Below is listed 500ms for each action instead of their actual cooldown. Once I set them for their actual cooldown they do work seperatly, but as soon as I use more at the same time they don't.

What happends when I use multiple buttons is that their wait time queue's up so if I press Button1 > Button2 > Button3 > Button4 the wait time will be 500ms, 1000ms, 1500ms and 2000ms instead of all switching back after 500ms.

I would like to have some feedback on how to make the <wait> work seperate if that's even possible? Else maybe some other suggestion on how to approach this which will result into the result (hidding the buttons with each a seperate timer).

Below I posted a part of my script for creating the panel and buttons.

Code:
//BUTTON//


<Command AutoExec>
    <CreatePictureButton CR1 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button On\10.jpg">
    <CreatePictureButton CR2 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button On\20.jpg">
    <CreatePictureButton CR3 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button On\30.jpg">
    <CreatePictureButton CR4 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button On\40.jpg">
    <CreatePictureButton CR10 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button Off\11.jpg">
    <CreatePictureButton CR20 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button Off\21.jpg">
    <CreatePictureButton CR30 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button Off\31.jpg">
    <CreatePictureButton CR40 1 1 "C:\Users\Name\Pictures\Buttons\hotbar\Button Off\41.jpg">
    <CreatePanel hotbar 100 100 234 318>
    <SetPanelPicture hotbar "C:\Users\Name\Pictures\Buttons\hotbar\hotbar.jpg">


<TargetWin hotbar>
    <SetPanelStyle hotbar Frameless>
    <SetWinOpacity 90>
      <Alwaysontop on>
      <ShowWin>


    <AddButtonToPanel CR1 hotbar 62 56>
    <AddButtonToPanel CR2 hotbar 104 56>
    <AddButtonToPanel CR3 hotbar 146 56>
    <AddButtonToPanel CR4 hotbar 188 56>
    <AddButtonToPanel CR10 hotbar 62 56>
    <AddButtonToPanel CR20 hotbar 104 56>
    <AddButtonToPanel CR30 hotbar 146 56>
    <AddButtonToPanel CR40 hotbar 188 56>


<SetButtonCommand CR1 CRA1>
<SetButtonCommand CR2 CRA2>
<SetButtonCommand CR3 CRA3>
<SetButtonCommand CR4 CRA4>
<SetButtonCommand CR10 CRA1>
<SetButtonCommand CR20 CRA2>
<SetButtonCommand CR30 CRA3>
<SetButtonCommand CR40 CRA4>


<Command CRA1>
      <SendPC local>
       <SendWinm "Game">
        <Key 7>  
        <TargetButton CR10>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR1>
        <Alwaysontop off>
        <HideWin>
        <Wait 500>
        <TargetButton CR1>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR10>
        <Alwaysontop off>
        <HideWin>
<Command CRA2>
      <SendPC local>
       <SendWinm "Game">
         <Key 8> 
        <TargetButton CR20>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR2>
        <Alwaysontop off>
        <HideWin>
        <Wait 500>
        <TargetButton CR2>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR20>
        <Alwaysontop off>
        <HideWin>  
<Command CRA3>
      <SendPC local>
       <SendWinm "Game">
        <Key 0>
        <TargetButton CR30>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR3>
        <Alwaysontop off>
        <HideWin>
        <Wait 500>
       <SendWinm "Game">
        <Key 9>
        <TargetButton CR3>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR30>
        <Alwaysontop off>
        <HideWin>
<Command CRA4>
      <SendPC local>
       <SendWinm "Game">
        <Key 0>
        <TargetButton CR40>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR4>
        <Alwaysontop off>
        <HideWin>
        <Wait 500>
       <SendWinm "Game">
        <Key 0>
        <TargetButton CR4>
        <Alwaysontop on>
        <ShowWin>
        <TargetButton CR40>
        <Alwaysontop off>
        <HideWin>