Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BBCode Helper
#1
Hi all,

Just thought I would share one of my tools with everyone, here it is.

This macro is for helping you with posting BBCode on this forum or any other forum. It will get the active macro's code along with the macro name and trigger, then it will color code the macro type, and add the new code to your clipboard so it can be pasted into a post.


Examples:

Macro ( Tray help )
Code:
Copy      Help
;Adds tray icon for current macro.
;Alternatively, use the AddTrayIcon function.
;See also: <Tray.AddIcon> function, and samples in "samples" subfolder.


;EXAMPLE
Tray t.AddIcon("lightning.ico" "Tray sample. Ctrl+click to end this task.")
10


Function ( My_Delete ) Trigger ( CAx )
Code:
Copy      Help
;Hi everyone
'D
'D

Toolbar ( QM toolbar )
Code:
Copy      Help
;/mov0 100 0 /siz0 260 28 /set0 0x505
Text :mac "TO_Text" * text.ico
Keys :mac "TO_Keys" * keyboard.ico
Mouse :mac "TO_Mouse" * mouse.ico
Windows, controls * windows.ico
Files, web * files.ico
Wait :mac "TO_Wait" * wait.ico
Dialogs, other * inp.ico
-
Favorites :TO_FavMenu * favorites.ico
More Tools
-
On Top      Alt+F1 :men 105 "Quick Macros" * ontop.ico

Menu ( Menu ) Trigger ( @11 )
Code:
Copy      Help
Hi :mac "mc1"


Member Function ( Tray.Modify )
Code:
Copy      Help
function [iconindex] [$tooltip]

;Modifies tray icon that was added by Add function.

;iconindex can be 0 (don't change) or 1-based index of icon.
;You can specify list of icon files in icon argument of Add function.



AddIcon(+iconindex tooltip)



Steps.

1. Selete the (Macro/Function/Menu/Toolbar/T. S. Menu/Member Function) in the tree list in QM that you would like to get the BBCode from.
[Image: bbc2gw5.jpg]

2. Click on the (Get BBCode) Menu bar item
[Image: bbcbuttoned2.jpg], this will get the BBCode for that (Macro/Function/Menu/Toolbar/T. S. Menu/Member Function) and format it, and add it to your clipboard.

3. Open up the forum, then go to make a post, and paste in the new BBCode into that post.


.......
I had to post the code as a picture because of the BBCode in it, to use this macro download the attachment below.


Function ( Get_BBCode ) Trigger ( @11 )
[Image: bbcodehelprr9.jpg]

If you need any help please post your questions here or PM me.


Attached Files
.qml   Get_BBCode.qml (Size: 871 bytes / Downloads: 857)
#2
Very cool John.
I'm liking this.
Taking on Quick Macros one day at a time
#3
Thank you QM Assistant, I love it big time saver if you're posting alot of code.
#4
Wow i love this tool its very handy! Thanks...

Question, is there anyway to add this to System Folder in QM so it loads everytime a different file is opened?
#5

Uncheck read-only in System folder properties. Place it in there, then export and replace System folder. I think that should re-save the system folder for QM and save your changes, at least until you download QM again.
Taking on Quick Macros one day at a time
#6
It didnt work, when i did that, and re-imported it it turned to a regualr folder and it didnt change the other files jsut that oine
#7

Not re-import it, just save it over the old system folder file. When I said replace it I meant save over it.
Taking on Quick Macros one day at a time
#8
Oh lol how would i do that?
#9

Step 1:
My Computer --> Local Disk © --> Program Files --> Quick Macros --> Right-click macro called System --> Goto properties --> Uncheck Read-Only.

Step 2:
Now go to your QM system folder and go to properties and uncheck read-only. Then export it to the location of the first step. I have no garauntees but I think that should save it until you download QM again, whether for an upgrade or downgrade.
Taking on Quick Macros one day at a time
#10
Sweet Thanks so much it worked! Big Grin
#11

With QM update, this Function has come across a couple problems.

1.) you need to change one line: act id(2203 _hwndqm)
to
act id(2210 _hwndqm)

2.) It's not copying code correctly, when I try to copy this code for example, This is all I get: Function ( Get_BBCode )


You better get on this John... I use this macro whenever I post code. :roll: Smile
Taking on Quick Macros one day at a time
#12
lol i was looking into it before i even saw this post Smile)
#13
well i dont think this is going to work anymore or with the new QM anyways..... men function doesnt seem to work with the new QMs menus
#14
Now QM adds function name and trigger. But uses different style. To make the function work again, rerecord the menu.

str Type Name Trigger BBC ForumC TEMPx TEMPz
Type.getmacro("" 3)
if val(Type)=0;Type="Macro"
if val(Type)=1;Type="Function"
if val(Type)=2;Type="Menu"
if val(Type)=3;Type="Toolbar"
if val(Type)=4;Type="T. S. Menu"
if val(Type)=6;Type="Member Function"
Name.getmacro("" 1)
Trigger.getmacro("" 2)
if (!len(Trigger)=0);TEMPz.formata("Trigger ( %s )" Trigger)
;act id(2203 _hwndqm)
;'Ca
;men 33126 _hwndqm
men 33344 id(2213 _hwndqm) ;;Copy for QM Forum
0.1
;'R
BBC.getclip
;0.1
TEMPx=
;%s ( %s ) %s
;%s
ForumC.formata(TEMPx Type Name TEMPz BBC)
ForumC.setclip


Forum Jump:


Users browsing this thread: 2 Guest(s)