WindowsContextMenu

 1def examples():
 2    """ 
 3    ```python
 4    from WindowsContextMenu.menu_operations import *
 5
 6    # List all available scopes for the context menu
 7    scopes = get_available_scopes()
 8
 9    # Create a simple command in the context menu for all files
10    create_simple_command("FILES", "Open with Notepad", "notepad.exe %1")
11
12    # Create a simple command in the context menu for directories
13    create_simple_command("DIRECTORY", "Open Command Prompt Here", "cmd.exe /k cd %1")
14
15    # Create a folder in the context menu for all files
16    mkdir_menu_context("FILES", "My Custom Commands")
17
18    # Create a command inside the previously created folder
19    create_simple_command("FILES", "Custom Command 1", "cmd.exe /k echo Custom Command 1", parent="My Custom Commands")
20
21    # List all items (folders and commands) in the context menu for all files
22    print(list_items("FILES"))
23
24    # Check if an item exists in the context menu
25    print(item_exists("FILES", "Open with Notepad"))
26
27    # Get the command associated with a context menu item
28    print(get_item_command("FILES", "Open with Notepad"))
29
30    # Determine the type of a context menu item (folder or command)
31    print(item_type("FILES", "My Custom Commands"))
32
33    # Remove a command from the context menu
34    remove_item("FILES", "Custom Command 1", parent="My Custom Commands")
35
36    # Remove a folder from the context menu
37    remove_item("FILES", "My Custom Commands")
38
39    # Create a top-level folder in the context menu for all files
40    mkdir_menu_context("FILES", "My Commands")
41
42    # Create a nested folder inside the top-level folder
43    mkdir_menu_context("FILES", "Subfolder", parent="My Commands")
44
45    # Create a command inside the nested folder
46    create_simple_command("FILES", "Subfolder Command", "cmd.exe /k echo Subfolder Command", parent="My Commands/Subfolder")
47
48    # List all items in the top-level folder
49    print(list_items("FILES", parent="My Commands"))
50
51    # List all items in the nested folder
52    print(list_items("FILES", parent="My Commands/Subfolder"))
53
54    # Delete the top-level folder and all its contents
55    remove_item("FILES", "My Commands") 
56    
57    # Create a command in the Desktop context menu
58    create_simple_command("DESKTOP", "Escritorio", "cmd.exe /k cd %1")
59    
60    # Create a command in the Recycle Bin context menu
61    create_simple_command("RECYCLE_BIN", "Recycle Bin Custom", "cmd.exe")
62    ```
63    """
64    
65    pass
def examples():
 5def examples():
 6    """ 
 7    ```python
 8    from WindowsContextMenu.menu_operations import *
 9
10    # List all available scopes for the context menu
11    scopes = get_available_scopes()
12
13    # Create a simple command in the context menu for all files
14    create_simple_command("FILES", "Open with Notepad", "notepad.exe %1")
15
16    # Create a simple command in the context menu for directories
17    create_simple_command("DIRECTORY", "Open Command Prompt Here", "cmd.exe /k cd %1")
18
19    # Create a folder in the context menu for all files
20    mkdir_menu_context("FILES", "My Custom Commands")
21
22    # Create a command inside the previously created folder
23    create_simple_command("FILES", "Custom Command 1", "cmd.exe /k echo Custom Command 1", parent="My Custom Commands")
24
25    # List all items (folders and commands) in the context menu for all files
26    print(list_items("FILES"))
27
28    # Check if an item exists in the context menu
29    print(item_exists("FILES", "Open with Notepad"))
30
31    # Get the command associated with a context menu item
32    print(get_item_command("FILES", "Open with Notepad"))
33
34    # Determine the type of a context menu item (folder or command)
35    print(item_type("FILES", "My Custom Commands"))
36
37    # Remove a command from the context menu
38    remove_item("FILES", "Custom Command 1", parent="My Custom Commands")
39
40    # Remove a folder from the context menu
41    remove_item("FILES", "My Custom Commands")
42
43    # Create a top-level folder in the context menu for all files
44    mkdir_menu_context("FILES", "My Commands")
45
46    # Create a nested folder inside the top-level folder
47    mkdir_menu_context("FILES", "Subfolder", parent="My Commands")
48
49    # Create a command inside the nested folder
50    create_simple_command("FILES", "Subfolder Command", "cmd.exe /k echo Subfolder Command", parent="My Commands/Subfolder")
51
52    # List all items in the top-level folder
53    print(list_items("FILES", parent="My Commands"))
54
55    # List all items in the nested folder
56    print(list_items("FILES", parent="My Commands/Subfolder"))
57
58    # Delete the top-level folder and all its contents
59    remove_item("FILES", "My Commands") 
60    
61    # Create a command in the Desktop context menu
62    create_simple_command("DESKTOP", "Escritorio", "cmd.exe /k cd %1")
63    
64    # Create a command in the Recycle Bin context menu
65    create_simple_command("RECYCLE_BIN", "Recycle Bin Custom", "cmd.exe")
66    ```
67    """
68    
69    pass
from WindowsContextMenu.menu_operations import *

# List all available scopes for the context menu
scopes = get_available_scopes()

# Create a simple command in the context menu for all files
create_simple_command("FILES", "Open with Notepad", "notepad.exe %1")

# Create a simple command in the context menu for directories
create_simple_command("DIRECTORY", "Open Command Prompt Here", "cmd.exe /k cd %1")

# Create a folder in the context menu for all files
mkdir_menu_context("FILES", "My Custom Commands")

# Create a command inside the previously created folder
create_simple_command("FILES", "Custom Command 1", "cmd.exe /k echo Custom Command 1", parent="My Custom Commands")

# List all items (folders and commands) in the context menu for all files
print(list_items("FILES"))

# Check if an item exists in the context menu
print(item_exists("FILES", "Open with Notepad"))

# Get the command associated with a context menu item
print(get_item_command("FILES", "Open with Notepad"))

# Determine the type of a context menu item (folder or command)
print(item_type("FILES", "My Custom Commands"))

# Remove a command from the context menu
remove_item("FILES", "Custom Command 1", parent="My Custom Commands")

# Remove a folder from the context menu
remove_item("FILES", "My Custom Commands")

# Create a top-level folder in the context menu for all files
mkdir_menu_context("FILES", "My Commands")

# Create a nested folder inside the top-level folder
mkdir_menu_context("FILES", "Subfolder", parent="My Commands")

# Create a command inside the nested folder
create_simple_command("FILES", "Subfolder Command", "cmd.exe /k echo Subfolder Command", parent="My Commands/Subfolder")

# List all items in the top-level folder
print(list_items("FILES", parent="My Commands"))

# List all items in the nested folder
print(list_items("FILES", parent="My Commands/Subfolder"))

# Delete the top-level folder and all its contents
remove_item("FILES", "My Commands") 

# Create a command in the Desktop context menu
create_simple_command("DESKTOP", "Escritorio", "cmd.exe /k cd %1")

# Create a command in the Recycle Bin context menu
create_simple_command("RECYCLE_BIN", "Recycle Bin Custom", "cmd.exe")