working on it ...

Filters

Explore Public Snippets

Sort by

Found 2 snippets matching: "application hotkey"

    public by p.kontalis  3519  1  5  0

    Hotkey for Application

    Hotkey or Combination that can effect everywhere inside the application
    Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' Add the following line in order to enable the capability to capture the keyboard events before any other element in the form.
        Me.KeyPreview = True
    End Sub
    
    Private Sub Hotkeys_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
        ' The Alt + P Hotkey raise the event Button1.Click
        If (e.Alt AndAlso (e.KeyCode = Keys.P)) Then RaiseEvent Button1.Click
    End If

    external by Agoston Horvath  249  1  3  0

    Karabiner global hotkey definition to switch between applications (place in ~/Library/Application Support/Karabiner/private.xml)

    Karabiner global hotkey definition to switch between applications (place in ~/Library/Application Support/Karabiner/private.xml): private.xml
    XML
    <?xml version="1.0"?>
    <root>
      <vkopenurldef>
        <name>KeyCode::VK_OPEN_URL_APP_Karabiner_Term</name>
        <url type="file">/Users/agoston/Applications/iTerm.app</url>
      </vkopenurldef>
      <vkopenurldef>
        <name>KeyCode::VK_OPEN_URL_APP_Karabiner_Firefox</name>
        <url type="file">/Applications/Firefox.app</url>
      </vkopenurldef>
      <vkopenurldef>
        <name>KeyCode::VK_OPEN_URL_APP_Karabiner_Mail</name>
        <url type="file">/Applications/Microsoft Office 2011/Microsoft Outlook.app</url>
      </vkopenurldef>
      <vkopenurldef>
        <name>KeyCode::VK_OPEN_URL_APP_Karabiner_IDEA</name>
        <url type="file">/Users/agoston/Applications/IntelliJ IDEA 13.app</url>
      </vkopenurldef>
      <vkopenurldef>
        <name>KeyCode::VK_OPEN_URL_APP_Karabiner_Chat</name>
        <url type="file">/Applications/Microsoft Lync.app</url>
      </vkopenurldef>
    
    
      <item>
        <name>Local Maci</name>
    
        <item>
          <name>Maci v0</name>
    
          <identifier>remap.maci_v0</identifier>
    
          <autogen>__KeyToKey__ KeyCode::KEY_1, ModifierFlag::OPTION_L, KeyCode::VK_OPEN_URL_APP_Karabiner_Term</autogen>
          <autogen>__KeyToKey__ KeyCode::KEY_2, ModifierFlag::OPTION_L, KeyCode::VK_OPEN_URL_APP_Karabiner_Firefox</autogen>
          <autogen>__KeyToKey__ KeyCode::KEY_3, ModifierFlag::OPTION_L, KeyCode::VK_OPEN_URL_APP_Karabiner_Mail</autogen>
          <autogen>__KeyToKey__ KeyCode::KEY_4, ModifierFlag::OPTION_L, KeyCode::VK_OPEN_URL_APP_Karabiner_IDEA</autogen>
          <autogen>__KeyToKey__ KeyCode::KEY_5, ModifierFlag::OPTION_L, KeyCode::VK_OPEN_URL_APP_Karabiner_Chat</autogen>
        </item>
    
      </item>
    </root>
    
    

    List Complete ( 2 snippets total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets