Jump to content

Recommended Posts

Posted

HotKeySet("{PAUSE}", "mExit")

****************

WEnd

Func mExit()

Exit

EndFunc

what should i put in the **** area so that program simulates the F1 button being holded down until i press pause?

Posted (edited)

HotKeySet("{PAUSE}", "mExit")

****************

WEnd

Func mExit()

Exit

EndFunc

what should i put in the **** area so that program simulates the F1 button being holded down until i press pause?

<{POST_SNAPBACK}>

Ok,

$paused = 1
HotKeySet("{PAUSE}", "mPause")
HotKeySet("{ESC}", "MyExit")

While 1 
   Sleep(10)
   If $paused = 0 then
      Send("{F1 down}")
      While $paused = 0 
         Sleep(10)
      WEnd
      Send("{F1 up}")
   EndIf
WEnd

Func mPause(ByRef $paused)
   If $paused = 1 then $paused = 0
   If $paused = 0 then $paused = 1
EndFunc

Func MyExit()
   Exit
EndFunc

Try that.

Bleah, CS beat me. :) Oh well. Mine's a toggle function....I find those more useful.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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
  • Recently Browsing   0 members

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