Page 1 of 1
Hotkey
Posted: 2011-08-19 16:50:36
by dman
hey how do i make hotkey for a script?
so i can play the script by pressing F12
Re: Hotkey
Posted: 2011-08-19 17:14:39
by dman
okay i got that one.
but how i say in script that stop if key is pressed
Re: Hotkey
Posted: 2011-08-19 20:02:04
by ZeroDX
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
Posted: 2011-08-21 11:55:51
by Golden
in hotkeys
exec NAMESCRIPT
terminate NAMESCRIPT
easy dude
Re: Hotkey
Posted: 2011-08-22 06:38:03
by Mr Imposter
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