Welcome, Guest. Please login or register.
Did you miss your activation email?


Recent news:

March 10, 2010 - Keybreeze is now a 100% free, open source application. The new version includes everything that was previously in the Professional Edition. Update now.


   Home   Help Search Login Register  
 

Pages: [1]
  Print  
Author Topic: Macro Meltdown in HTML  (Read 1504 times)
jimalan
Sr. Member

Posts: 6


View Profile
« on: November 05, 2007, 04:40:36 PM »

I've used Keybreeze for years and have written many useful macros without any trouble.  Today I ran into a roadblock.  I tried to create a macro that would type these four characters: <br> (line break).  Nothing happens when I run it.  I tried another HTML code, this time for italics: <i></i> followed by four left arrows to place the cursor in the middle.  All that appears is the two letter I's.  Then I tried to create one for a long dash.  The code is &#151;  Note that it ends with a semicolon.  All I get is "&#151."  I'm guessing that the semicolon confuses Keybreeze, but what's wrong with the macros that have characters inside the greater-than and lesser-than arrows?  No matter where I place those arrows in a test macro, in pairs or singly, they won't appear.

I saved all my good macros and uninstalled and reinstalled Keybreeze, because at one point I got an error message saying the macro database was messed up.  No luck.  My old, usual macros work fine (thank God).  I also tried to use ALT key commands with the character code for those symbols, but that doesn't work, either.  Any ideas?
Logged
jimalan
Sr. Member

Posts: 6


View Profile
« Reply #1 on: November 06, 2007, 01:40:11 PM »

I managed to solve part of the problem.  I used the <shift> key so it looks like this:

<shift d>,<shift u>  That'll make the < arrow appear without any trouble.
Logged
Andrew Langford
Administrator
Power User

Posts: 144


View Profile
« Reply #2 on: November 06, 2007, 01:44:54 PM »

Hi Jim,

The macro isn't working correctly because of the arows.  Whenever you run a macro, Keybreeze will interpret the arrows as an instruction, so it thinks that <br> is supposed to run a pre-defined function called br.  In reality, you just want it to type <br>

I'm going to change the code so that if an instruction is not recognized, such as "br", Keybreeze will just type it along with the arrows.  This should solve your problem, and I will have the new version released by next week.

Andrew
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!