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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)