Right click menu on the explore

Right click menu on the explore

rahulwalekar14
Participant Participant
2,571 Views
29 Replies
Message 1 of 30

Right click menu on the explore

rahulwalekar14
Participant
Participant

I want this macro as my right click menu on explorer in which I want all my small macros list. Which I can use. 

0 Likes
Accepted solutions (1)
2,572 Views
29 Replies
Replies (29)
Message 2 of 30

psx2
Collaborator
Collaborator

hi,

add this rows in the file user_menu.xml in the pmill4 folder

 

<menupage label="Macro List">
<button label="Macro_1" command= "macro file 'C:\xxx\xxx\xxx\Macro1.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
</menupage>
<spacer/>
0 Likes
Message 3 of 30

karan30782
Advocate
Advocate

Do not copy in pmill4 folder 

 

Copy to pmill2 folder instead.

 

Cheers !

0 Likes
Message 4 of 30

rahulwalekar14
Participant
Participant

Where can I get this pmill2 folder please help.

0 Likes
Message 5 of 30

karan30782
Advocate
Advocate

create a blank file named user_menu.xml

 

paste below contains in that file...

 

# ************** USER MENU ***************
# comment lines
# this file must be called user_menu and be in your HOME area

U user_menu

# T is for Title and cannot be selected
# S is for separator or line on the menu
# I is a menu operation line
# M is start new menu/sub-menu
# Z is end menu/sub-menu

T "Extra MENU"
S


# format is I "Label String" 1 "Command string"

M "Folder Paths"
I "Treasure" 1 "macro path_menu\*****Your macro name*****.mac"
S
I "Folder create" 1 "macro path_menu\*****Your macro name*****.mac"
S
I "Folder pmill2" 1 "macro path_menu\*****Your macro name*****.mac"
S


Z
S
M "Toolpath Menu"
I "Fix PARA" 1 "macro toolpath_menu\*****Your macro name*****.mac"
S
I "Transform IND" 1 "macro toolpath_menu\*****Your macro name*****.mac"
S
I "Transform MIX" 1 "macro toolpath_menu\*****Your macro name*****.mac"
S
I "Links UP" 1 "macro toolpath_menu\*****Your macro name*****.mac"

S

 

*** Note: save this file in C:\dcam\config\pmill2

*** Create folder pmill2 ( if not exist )

0 Likes
Message 6 of 30

iamcdn79
Mentor
Mentor

Create a dir called C:\dcam\pmill2, you will also probably need to create a user variable in your Windows advanced settings. Go to System>About>Advanced system settings>Environment variables then create a new system variable called HOME (caps sensitive) and value C:\dcam

 

iamcdn79_0-1724670077080.png

 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

Message 7 of 30

karan30782
Advocate
Advocate

HI !

 

No need to work in system variable.

pmill2 / 4 works also without modifying system variable.

 

 

Regards !

0 Likes
Message 8 of 30

hrh46
Advocate
Advocate

I have located the user menu xml file inside my macros directory and works well. 

of course Im using PM 2025

0 Likes
Message 9 of 30

rahulwalekar14
Participant
Participant

Not working.

0 Likes
Message 10 of 30

rahulwalekar14
Participant
Participant

1000044973.jpg

0 Likes
Message 11 of 30

icse
Advisor
Advisor

You need to call the file:

user_menu.xml

 

NOT

user menu.xml

0 Likes
Message 12 of 30

rahulwalekar14
Participant
Participant

Please explain.

0 Likes
Message 13 of 30

icse
Advisor
Advisor

not much to explain...

You have a typo, your file is named "user menue.xml" whit a space inbetween, you should name the file "user_menue.xml" with a underline(_) insted of a space.

Message 14 of 30

rahulwalekar14
Participant
Participant

1000044990.jpg

 any idea ??

0 Likes
Message 15 of 30

iamcdn79
Mentor
Mentor

add this to the beginning

 

<?xml version="1.0" ?>
<menus xmlns="x-schema:user_menu.xsd">
	<usermenu value="user_menu">

 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 16 of 30

icse
Advisor
Advisor

if you named you file user_menue.xml your file should look something like this:

 

<?xml version="1.0" ?>
<menupage>
	<button label="YourMacroName" command='macro "C:\path\to\your\macro\mac.mac"'/>
</menupage>

 

 

OR

you call your file "user_menue" with no file extention, then your file should look somehting like that:

 

U user_menu
T   "Your custom usermenue"
S
I "YourMacro" 1 "macro 'C:\yourPath\yourMacro.mac'"
S

 

 

 

also you may want to post your user_menue.xml so we can take a look whats inside and may spot the error.

0 Likes
Message 17 of 30

rahulwalekar14
Participant
Participant

1000044999.jpg

1000045001.jpg

 not working.

0 Likes
Message 18 of 30

icse
Advisor
Advisor

Theres another typo in the .xml file:

 

you got:

<menupage>
<button label="Macro_1" command= "macro file 'C:\xxx\xxx\xxx\Macro1.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
</menupage>
<spacer/>

 

it should be:

<menupage>
<button label="Macro_1" command= "macro file 'C:\xxx\xxx\xxx\Macro1.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
<button label="Macro_2" command= "macro file 'C:\xxx\xxx\xxx\Macro2.mac'"/>
</menupage>

 

you need to remove </spacer>

 

also please post your code in text fromat not just an image so we can copy/paste it...

0 Likes
Message 19 of 30

rahulwalekar14
Participant
Participant

<?xml version="1.0" ?>
<menupage>
<button label="Bkgrnd-Black" command= "macro file 'C:\pmill4\Bkgrnd-Black.mac'"/>
<button label="Bkgrnd-BlueGrey" command= "macro file 'C:\pmill4\Bkgrnd-BlueGrey.mac'"/>
<button label="Bkgrnd-GreenGrey" command= "macro file 'C:\pmill4\Bkgrnd-GreenGrey.mac'"/>

 

 

Removed spacer still not working

0 Likes
Message 20 of 30

icse
Advisor
Advisor

You removed to much... you need to keep </menuepage>

 

<?xml version="1.0" ?>
<menupage>
<button label="Bkgrnd-Black" command= "macro file 'C:\pmill4\Bkgrnd-Black.mac'"/>
<button label="Bkgrnd-BlueGrey" command= "macro file 'C:\pmill4\Bkgrnd-BlueGrey.mac'"/>
<button label="Bkgrnd-GreenGrey" command= "macro file 'C:\pmill4\Bkgrnd-GreenGrey.mac'"/>
</menupage>

 

0 Likes