Jump to content

Pause/Unpause


Recommended Posts

ok guys i playing 1 game and i use script to pres 678678678678678678678678678 in delay 50ms so thats really fast and cant press that by myself :D

my problem is when i start and alt+tab to go in game its works perfectly but my pause dont work cuz i only need that sometimes when fighting so need alt+tab to go to some windows to pause and if some1 atack me till i alt+tab and start go into game i will die so need help..

can i anyhow pause/unpause while i am in game pls really need help

my code is

HotKeySet("{END}", "_Exit")
HotKeySet("{PAUSE}", "_Pause")

Global $Paused

While 1
   Sleep(50)
   Send("6")
   Sleep(50)
   Send("7")
   Sleep(50)
   Send("8")
WEnd

Func _Pause()
   $Paused = NOT $Paused
   While $Paused
      Sleep(1)
   WEnd
EndFunc

Func _Exit()
   Exit
EndFunc
Link to comment
Share on other sites

Im far from an expert but does it not have to be

Global $Paused()

i am not expert eather :D

i mean pause unpause works fine but when i am in game it dont work need minimize game to pause/unpause

just wanna make it work in game

Link to comment
Share on other sites

I would check to see if the Pause Key is already mapped in the Game. Easiest way you could check this would be to change your Hotkey from {Pause} to something Obscure like CTRL+ALT+P

There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...