Yoko
http://forum.yoko.com.ua/

Hotkey
http://forum.yoko.com.ua/viewtopic.php?f=3&t=16742
Page 1 of 1

Author:  dman [ 2011-08-19 16:50:36 ]
Post subject:  Hotkey

hey how do i make hotkey for a script?
so i can play the script by pressing F12

Author:  dman [ 2011-08-19 17:14:39 ]
Post subject:  Re: Hotkey

okay i got that one.
but how i say in script that stop if key is pressed

Author:  ZeroDX [ 2011-08-19 20:02:04 ]
Post subject:  Re: Hotkey

Use global

Code:
sub Switcher()
  If UO.GetGlobal('variable') <> '1' then
    UO.SetGlobal('variable', '1')
   else
    UO.SetGlobal('variable', '0')
  Endif
Endsub

sub main()
  While true
    If val(UO.GetGlobal('variable')) then
      UO.Exec('exec main11111')
      While val(UO.GetGlobal('variable'))
        Wait(100)
      Wend
      UO.Exec('terminate main11111')
     else
      Wait(100)
    Endif
  Wend
Endsub

sub main11111()
  ...
Endsub

Author:  Golden [ 2011-08-21 11:55:51 ]
Post subject:  Re: Hotkey

in hotkeys

exec NAMESCRIPT

terminate NAMESCRIPT

easy dude

Author:  Mr Imposter [ 2011-08-22 06:38:03 ]
Post subject:  Re: Hotkey

I use hotkey scripts daily.

The best way to use them is autoload.sc (automaticly loads with injection)

So save you needed scripts in this script. I have F12 hotkey (Uo - Say - ",exec hidden")

In the autoload.sc

sub hidden()
While TRUE
check not in war mode
uo skill blah bla
end sub..

Same for my meditation.

Then it gets down to a bit more.. Eg.

Self killing script. (phy immue creatures) etc etc..

Hope you have some fun with this

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/