|
Page 1 of 1
|
[ 13 posts ] |
|
| Author |
Message |
|
Daniel_E_Higginbotham
Ensign
Joined: Fri Jan 18, 2002 3:00 am Posts: 296 Location: USA
|
Ok guys, Ender here. Listen, I am trying to do one simple thing, I am trying to find a simplie key stroke to load a session profile, I have different profiles set up for different things now, and I would like to be able to switch through them at the click of a button instead of having to go, "Profiles > Load" any help is great, thanks
|
| Thu Apr 28, 2005 2:29 am |
|
 |
|
Traitor
Lieutenant Commander
Joined: Thu Mar 21, 2002 3:00 am Posts: 890 Location: USA
|
quote:Originally posted by Daniel_E_Higginbotham
Ok guys, Ender here. Listen, I am trying to do one simple thing, I am trying to find a simplie key stroke to load a session profile, I have different profiles set up for different things now, and I would like to be able to switch through them at the click of a button instead of having to go, "Profiles > Load" any help is great, thanks
Ender, RTFM! [:D]
Bind a key to a script that uses the following commands:
ZocLoadOpts <optsfile>
Load session profile file.
Example:
CALL ZocLoadOpts "OPTIONS\VT102OPT.ZOC"
ZocLoadKeyfile [<keyfile>]
Load an key definition (*.zky) file.
Example:
CALL ZocLoadKeyfile "OPTIONS\ALTERNATE.ZKY"
_________________ http://tw-cabal.navhaz.com - THE TW info site
Man, I gotta quit showing up here...next thing you know i'll get dragged back in.
|
| Thu Apr 28, 2005 12:06 pm |
|
 |
|
Daniel_E_Higginbotham
Ensign
Joined: Fri Jan 18, 2002 3:00 am Posts: 296 Location: USA
|
Well I guess if I knew anything about ZOC scripting at all that would be of some assitance. I guess if I studied what the post said I could proablly do it, but please, a step by step play...
1. do this
2. do that
3. ender your dumb
4. ender your done
|
| Fri Apr 29, 2005 12:05 am |
|
 |
|
Traitor
Lieutenant Commander
Joined: Thu Mar 21, 2002 3:00 am Posts: 890 Location: USA
|
quote:Originally posted by Daniel_E_Higginbotham
1. do this
2. do that
Ok,
First one's free. After that, you gotta pay me. [;)]
Step 1
Make a script that looks like this:
/* Load_Profile.zrx */
CALL ZocTimeout 60
/* Use the profile name you want to load */
CALL ZocLoadOpts "OPTIONS\ENDER_PROFILE.ZOC"
/* end */
This can get pretty fancy if you want, you could create a menu that would give you options of which one you wanted to load. But I think you just want a simple script that will load individual profiles, then make multiple scripts and bind each one to a seperate key.
step 2
bind a key or button to the script.
go to options, jump too..., buttons/F-Keys
highlight the Function key you want. lets use f12
click the edit button.
for the "action", enter the name of your script, in this case, it's Load_Profile.zrx
for the "The action string is" you shoud choose the "the name of a REXX script" button.
click OK, then save (or save as) and it will get added to your profile.
- OR - (for advanced users who may want to bind it to something besides an Function key)
Go to your key mapping section. (options, key map profile)
bind a key to your script. Lets use f12 for this example.
click on the f12 button.
Hit the more functions button (if it's there. if it's not, skip this step)
for the "action", enter the name of your script, in this case, it's Load_Profile.zrx
for the "The action string is" you shoud choose the "the name of a REXX script" button.
click ok, then save the key map.
step 3
Now, when you hit f12, it should load up your proflie.
repeat as necessary for each profile you want to have. I would recommend using different keys for each profile. Remember, you will want to add these new keys to all of your profiles.
Very important! By default, key re-mappings are saved in the standard.zky file. I believe that these overide the profile. So you have to be careful messing with key re-mappings. I don't have time to play with it, since I got mine setup a long time ago, and feel no inclination to mess with it. However, I recommend that you play with it some, so you know how the key re-maps interact with your profile f-keys. You can use the ZocLoadKeyfile command to manage them if you really want.
quote:Originally posted by Daniel_E_Higginbotham
3. ender your dumb
4. ender your done
heh. I'll just leave that part alone [:D]
_________________ http://tw-cabal.navhaz.com - THE TW info site
Man, I gotta quit showing up here...next thing you know i'll get dragged back in.
|
| Fri Apr 29, 2005 1:01 pm |
|
 |
|
Harley Nuss
Commander
Joined: Thu Feb 20, 2003 3:00 am Posts: 1529 Location: USA
|
you don't need the "call zoctimeout 60"
|
| Fri Apr 29, 2005 4:58 pm |
|
 |
|
Zoso
Ensign
Joined: Fri Sep 19, 2003 2:00 am Posts: 247 Location: Canada
|
Just out of curiosity, what do you guys keep as standards for Key-Mapping profiles? (Keys that you always have mapped regardless of profile) I just recently began using them (don’t ask why I waited so long, most likely laziness) but find myself changing them constantly.
A couple of examples that I have mapped;
ALT-R = CKrefreshfigs.ts
ALT-P = PDrop.ts
Any tricks you boys would like to part with that we may not know yet?
Zoso
_________________ No Quarter - Is what we offer our enemies
|
| Fri Apr 29, 2005 5:07 pm |
|
 |
|
Traitor
Lieutenant Commander
Joined: Thu Mar 21, 2002 3:00 am Posts: 890 Location: USA
|
Kemper,
Yeah, it works without it fine. But I just make it a habbit to toss it into every zoc script I write.
Zoso,
I always have the Escape key remapped to $sx. That stops all non-system TWX scripts.
I also have Shift-Escape remapped to $sik. That displays your current active scripts, and then puts you at the kill script prompt, so if I want to kill a specific one, I just choose it off the list, even system scripts.
I also have the Tab key remapped to the tilde (~), since I use a modified version of Supg's quikpanel script a lot.
Most of my function keys are mapped to macros, like ay9999^M, or f1^Mco. I change them frequently, depending on if I'm red or blue.
I also have a profile loader/manager script bound to Ctrl-Alt-P. I have default red and blue ZOC profiles, and then I make game specific modifications based on whatever I happen to need at the moment. (no, Ender, you're not the first one to try this [;)])
I mostly use the buttons for launching scrips.
I am also starting to write most of my scripts so that they can be loaded while you are offline. Then I use the autorun feature of twx to have them pre-load when I fire up TWX. Things like keepalive, and no_mugging.ts, find-nearest, etc...
_________________ http://tw-cabal.navhaz.com - THE TW info site
Man, I gotta quit showing up here...next thing you know i'll get dragged back in.
|
| Fri Apr 29, 2005 5:52 pm |
|
 |
|
Daniel_E_Higginbotham
Ensign
Joined: Fri Jan 18, 2002 3:00 am Posts: 296 Location: USA
|
Traitor, thats what makes you great bro. Still havent figured it out yet, til I read the last part of your post that is, I did a little re-keying that I shouldnt have done, but I guess I will just have to fix that up wont I?? Anyway bro, many thanks, and anytime I need some help with ZOC I know who to yell it.
|
| Fri Apr 29, 2005 5:55 pm |
|
 |
|
Zoso
Ensign
Joined: Fri Sep 19, 2003 2:00 am Posts: 247 Location: Canada
|
Like the Esc key map, never thought of that. I had it mapped elsewhere, but I was looking for the instinctual keys, sometimes you only have a fraction of a second. Thanx for the help Traitor
Zoso
_________________ No Quarter - Is what we offer our enemies
|
| Fri Apr 29, 2005 6:05 pm |
|
 |
|
Harley Nuss
Commander
Joined: Thu Feb 20, 2003 3:00 am Posts: 1529 Location: USA
|
I keep tab mapped to a saveme call for whatever my current sector is.
|
| Fri Apr 29, 2005 6:12 pm |
|
 |
|
Harley Nuss
Commander
Joined: Thu Feb 20, 2003 3:00 am Posts: 1529 Location: USA
|
I also have ctrl+c mapped to a ship cap script.
|
| Fri Apr 29, 2005 6:14 pm |
|
 |
|
Zoso
Ensign
Joined: Fri Sep 19, 2003 2:00 am Posts: 247 Location: Canada
|
Nice and nice. Thanks for the input Harley. I assume your were referring to the saveme call script knowing your location, not the tab key.
_________________ No Quarter - Is what we offer our enemies
|
| Fri Apr 29, 2005 6:17 pm |
|
 |
|
Harley Nuss
Commander
Joined: Thu Feb 20, 2003 3:00 am Posts: 1529 Location: USA
|
I have a TWX script contanstly running in the background. I have my keyboard remapped to send various ascii characters that the TWX catches and reacts on. So when I press tab, the TWX script catches it, knows where I am, and sends out the call.
|
| Fri Apr 29, 2005 9:59 pm |
|
 |
|
|
Page 1 of 1
|
[ 13 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 41 guests |
|
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
|
|