KingOfHeart Posted January 29, 2010 Share Posted January 29, 2010 A program I use has Macros support. /* Save to \editor\macros\test.js then press Alt-F1 in code-genie, you should see blue icon with test next to it (might have to press .. first), enter that then click on Hello World*/ function HelloWorld() { // ToDo: Edit the code to tailor it to your needs, // then run it from the selector... Doc.SelText= "Hello " + Doc.Prompt("Enter Name"); } This works well with what I need but I want to know more about this Macros. Like a list of commands or a simple tutorial. I just need to know how to do the following. 1. Can I have a radio option. Some commands are just true and false, so don't want to force them to type it out. 2. Can I have it output more then one option? Quote Link to comment https://forums.phpfreaks.com/topic/190183-help-with-macros/ Share on other sites More sharing options...
oni-kun Posted January 29, 2010 Share Posted January 29, 2010 Look in the documentation for the program. Looking at it, the macros for it are in JS. So you'd need to first read up on what JS commands can be used and then create your own JS file within the macros folder, and add it. Quote Link to comment https://forums.phpfreaks.com/topic/190183-help-with-macros/#findComment-1003563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.