I have googled a bit, but I'm not able to find how to do this. I need custom icon when script is paused/suspended. I know how to change it on key press, but I need same functionality like when you suspend it with right mouse click in System Tray. When you do that standard AHK icon will have red background, if paused and it will change letter to "S" if suspended. My script needs to change to custom icon when it's paused/suspended, when you right-click on the icon in Tray and suspend it. No key press activation needed, eventually script need to detect when I pause/resume it and change to different custom icons.
You can change the tray icon at any time, so you can do so before you pause and return it back to normal when you unpause the script like so:
; start of script
Menu, Tray, Icon, normal.ico
; pause icon
Menu, Tray, Icon, paused.ico
Pause, On
; return to normal
Menu, Tray, Icon, normal.ico
Pause, Off
See https://www.autohotkey.com/docs/commands/Menu.htm#Icon
Edit: make your own tray menu, very basic code you need to expand to turn it on/off, simply to illustrate
Menu, Tray, Icon, normal.ico, , 1
Menu, tray, NoStandard ; removes edit, pause, reload etc
; other menu options
Menu, tray, Add, &Suspend Hotkeys , MenuHandler
Menu, tray, Icon,&Suspend Hotkeys , %A_AhkPath%, 3 ; default suspend icon
Menu, tray, Add, &Pause Script , MenuHandler
Menu, tray, Icon,&Pause Script , %A_AhkPath%, 4 ; default pause icon
;
MenuHandler:
;
If (A_ThisMenuItem = "&Pause Script")
{
Menu, Tray, Icon, paused.ico
Pause
Return
}
Is there a way to add Call Hierarchy to mouse popup menu in Intellij? I use it a lot and hope it is available on the mouse right click popup menu.
This works on Intellij IDEA Ultimate 2018.1.3:
From the File menu select Settings...
In the left panel select Appearance & Behavior > Menus and Toolbars.
In the right panel expand the Editor Popup Menu entry.
Select the final entry of that menu, which (for me) was JSP Actions.
Some buttons on the right should now be enabled. Click the Add After... button:
The Choose Actions To Add dialog opens. Navigate to the Call Hierarchy entry:
Expand the Main menu entry, then expand the Navigate entry.
Scroll down and select the Call Hierarchy entry.
Click OK to close the Choose Actions To Add dialog.
At the end of the list of menu entries there should now be a new entry for Call Hierarchy.
Click OK to close the Settings window.
Position the mouse cursor over a method in the editor window, right click and select Browse Call Hierarchy from the bottom of the popup menu:
How can I navigate to links in balloon notifications like this via the keyboard?
All the messages are logged in EventLog.
Normally it will be in bottom right corner.
There is no Keyboard shortcut assigned by default. But you add a shortcut.
Go to Settings --> Keymap
Search for Event Log and click edit
Select Add Keyboard Shortcut
Press the keys you wish to assign, If the selected key stroke is already used you will see a error message so choose a different one.
Is there a commmand or shortcut for quickly jump from code editor to graphical layout editor?
For example I am editing MyActivity.java and it's layout is in activity_layout.xml.
In layout editor there is a button for jumping to code, I just need reverse.
First press Ctrl+F12, then press home to jump to main Class name, for example MyActivity, then press enter and now select Navigate | Related File... ( or press Ctrl+Alt+Home in Windows or CMD+ALT+Home on mac)
I downloaded squeak 4.2 http://squeak.org/ and watch this very basic tutorial
http://www.youtube.com/watch?v=0w1Yub4eUAU
When I type 2 + 2 in workspace window and select right-click the line I can't get any popup menu with "do it" option.
Did I miss something ?
Depending on your platform and configuration that menu may be activated either by a right-click or a middle-click. For Squeak on Windows I believe the default is to middle-click.
If the default feels unintuitive you can invert the right and middle mouse buttons.
To invert the mouse buttons for the current image:
Click on the world background
Select open... from the World menu
Select Preference Browser
Search for mouse in the preferences
Toggle swapMouseButtons
To invert the mouse buttons on the Windows VM:
Open the system menu (small Squeak icon in the top-left window corner)
Under VM Preferrences > Mouse mapping toggle 3 button mouse
You can also activate that menu by ALT-clicking or use the quicker ALT-d shortcut for "do it".