hey how do i make hotkey for a script?
so i can play the script by pressing F12
Hotkey
Moderators: Murderator+, Murderator
Re: Hotkey
okay i got that one.
but how i say in script that stop if key is pressed
but how i say in script that stop if key is pressed
Re: Hotkey
Use global
Code: Select all
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
Re: Hotkey
in hotkeys
exec NAMESCRIPT
terminate NAMESCRIPT
easy dude
exec NAMESCRIPT
terminate NAMESCRIPT
easy dude
-
- Posts: 7
- Joined: 2011-08-18 05:29:42
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
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