
Now you have a skeleton macro, you can put interesting stuff in Is the normal javascript function to pop up a message. Without something in the HTML to run the code, nothing will happen. in the same way as in a normal HTML page). The onload=myfunc() runs the function myfunc as soon as the In your empty file fred.htm, enter the following: (usually!) force a reload from disk of the macro. Alternatively, holdĭown the Ctrl key, click Command, then click your macro name. Restart Dreamweaver, there will be a new menu item 'fred' at the bottom of the Commands

If you create an empty file 'fred.htm' in that folder, when you We'll outline enough to get you going below. They do things to theĭocument you're working on using the 'Object model' which is the same as the W3C Javascript functions and placed in the C:\Program Files\Macromedia\Dreamweaver MX\Configuration\Commandsįolder. Where do the macros go? How do I start writing one? It presumes you're new toĭreamweaver - I am - and tells you the basics.
#Keyclick macro tool how to#
These products? Why don't they ever tell you how to get What is it with the people who document how to write macros in It ought to be possible to assign a hot-key to the snippet. To run it,ĭouble-click on the snippet name in the snippet panel.
#Keyclick macro tool code#
The reason is that SUP pushes the linesĪpart, which looks ugly the CSS code does not do this.) Expand the Text branch, right click on Text, and choose 'New OK, so what is that? (Using the Help|Using Dreamweaver,Īnd search for snippet). But it doesn't seem to be.Ĭreate a snippet under text, which inserts the needed To use the process above for assigning Ctrl-U. You now want to give that a Keyboard short-cut. It will demand a name - IĬhose 'Color_Red'. That command, and choose 'Save as command'. 'Font color'), and it should be obvious which one it is. The last entry in the history panel will be the format change (the label is Then stop recording (Commands|Stop recording). Then do Text|Color and click on red, then Leave that as it is, and record the process of changing the colour:Ĭommands|Start Recording. History', otherwise you won't be able to see what you're doing. Right click on the commands, and choose 'clear Then display the History panel (Window|Other|History). I want quite a lot of text in red in my case, but theįirst select in design mode a bit of text you want in red. it annoys me too! But I've just found out how Get the Color picker up? Instead of a single click as in normalĪpplications? Well. You know that every time you want something a particular color, you have to Setting text color automatically as in Word, etc

Use a copy of the default shortcuts - let it create one automatically, then Note that the keyboard shortcut editor may whine that it has to Just press OK.Īnd, voila! You can use Ctrl-U in design mode as you A message box will pop upĪgain whining about being assigned to something else. Ignore this and click on the 'Change' button. Some text willĪppear on the dialog box whining that it is assigned to 'Preferences.' This will give you a blank line, and the cursor will Now move your mouse to the 'Shortcuts:' section and click on the In the box under this is all the menu items.

This brings up a dialog box, with a Commands: You need to use the Keyboard Shortcut editor:Įdit|Keyboard shortcuts. They knew better than I what I needed to do. It cost me an hour of my lifeįinding out how, and reading interminable posts by prissy idiots who thought They take it upon themselves to decide that we shouldn't use 'underline' -Īvailable as Ctrl-U in every application under the sun, apart from theirs. Reason they want to decide what and how you and I should work.

The Dreamweaver developers are strange people. Dreamweaver MX Macros - Getting Started Dreamweaver MX - Tips
