XIM Community

Script Timer  (Read 718 times)

Offline bjbama

  • Member
  • *
  • Posts: 1
    • View Profile
Script Timer
« on: 09:47 AM - 04/07/20 »
Hey guys,

Having some issues with setting a toggle with the settimer fuction.  The script works perfectly outside of sandhawc but ingame it isn't able to read the updated toggle variable.  Is there something I'm doing wrong?

Code: [Select]
F5::
    if(isSpecialBReady){
        isSpecialBReady := False
        doSpecialB()               
        SetTimer, flipIsSpecialBReady, 60000
    }
    if(isSpecialXReady){
        isSpecialXReady := False
        doSpecialX()       
        SetTimer, flipIsSpecialXReady, 20000
    }
   
    sleep 25
    Send, b
    sleep 25
    Send, x   
    sleep 25
    Send, x     
    Sleep 250
return

Thanks so much if you can help!


Admin