Yoko

All sides of Injection
It is currently 2025-12-08 07:41:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Hotkey
PostPosted: 2011-08-19 16:50:36 
Offline

Joined: 2011-08-12 10:22:49
Posts: 3
hey how do i make hotkey for a script?
so i can play the script by pressing F12


Top
   
 Post subject: Re: Hotkey
PostPosted: 2011-08-19 17:14:39 
Offline

Joined: 2011-08-12 10:22:49
Posts: 3
okay i got that one.
but how i say in script that stop if key is pressed


Top
   
 Post subject: Re: Hotkey
PostPosted: 2011-08-19 20:02:04 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
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


Top
   
 Post subject: Re: Hotkey
PostPosted: 2011-08-21 11:55:51 
Offline

Joined: 2009-04-14 11:36:23
Posts: 17
in hotkeys

exec NAMESCRIPT

terminate NAMESCRIPT

easy dude


Top
   
 Post subject: Re: Hotkey
PostPosted: 2011-08-22 06:38:03 
Offline

Joined: 2011-08-18 05:29:42
Posts: 7
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited