| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Its only ZOC dummie! https://mail.black-squirrel.com/viewtopic.php?f=15&t=13121 |
Page 1 of 1 |
| Author: | Daniel_E_Higginbotham [ Thu Apr 28, 2005 2:29 am ] |
| Post subject: | |
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 |
|
| Author: | Traitor [ Thu Apr 28, 2005 12:06 pm ] |
| Post subject: | |
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" |
|
| Author: | Daniel_E_Higginbotham [ Fri Apr 29, 2005 12:05 am ] |
| Post subject: | |
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 |
|
| Author: | Traitor [ Fri Apr 29, 2005 1:01 pm ] |
| Post subject: | |
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] |
|
| Author: | Harley Nuss [ Fri Apr 29, 2005 4:58 pm ] |
| Post subject: | |
you don't need the "call zoctimeout 60" |
|
| Author: | Zoso [ Fri Apr 29, 2005 5:07 pm ] |
| Post subject: | |
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 |
|
| Author: | Traitor [ Fri Apr 29, 2005 5:52 pm ] |
| Post subject: | |
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... |
|
| Author: | Daniel_E_Higginbotham [ Fri Apr 29, 2005 5:55 pm ] |
| Post subject: | |
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. |
|
| Author: | Zoso [ Fri Apr 29, 2005 6:05 pm ] |
| Post subject: | |
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 |
|
| Author: | Harley Nuss [ Fri Apr 29, 2005 6:12 pm ] |
| Post subject: | |
I keep tab mapped to a saveme call for whatever my current sector is. |
|
| Author: | Harley Nuss [ Fri Apr 29, 2005 6:14 pm ] |
| Post subject: | |
I also have ctrl+c mapped to a ship cap script. |
|
| Author: | Zoso [ Fri Apr 29, 2005 6:17 pm ] |
| Post subject: | |
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. |
|
| Author: | Harley Nuss [ Fri Apr 29, 2005 9:59 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|