Word VBA: Watch List Disappears - vba

This problem has been happening for awhile now, but with the particular piece of code I am now trying to debug, it has become really difficult for me to live with.
The issue is rather basic: every time I click F8 to step to the next line of code, the Expression, Value and Type columns in the watch window goes completely blank. The Context remains, as do an icon of a pair of glasses to each Watch I had created, but other than that they are blank. If I click in the Watch window, the values reappear, one at a time as I click each one. I can cause the whole list to reappear by clicking on a plus or minus sign (tree collapse or expand), once I've revealed a watch by clicking on it. After going through this process of making my list visible again, it all disappears again when I click f8. Tried searching for this issue, but can't seem to find anything. Can someone please help?
Thank you

Related

SAP GUI scripting - Button press fails

I am using a macro in an Excel file that runs the SAP GUI. There is a step where, when I click a button in SAP there will be another window that pops up.
For that I have written a code like this:
session.findbyid("wnd[0]/XX/btnXX").press
session.findbyid("wnd[1]/XX/btnXXX").press
There is a button (btnXXX) in the window (wnd[1]). But when I execute this query, I am getting an error object not found for findbyid.
When I keep the break point and execute it, it is throwing error on 2nd line in the above code. I try to pick the activewindow.name and it shows wnd[0] still. Here the issue is wnd[1] is not getting opened.
Does somebody know why the 2nd "button press" doesn't work?
You should be able to replace all mouse clicks with keyboard strokes.
Replace:
session.findbyid("wnd[0]/XX/btnXX").press
With:
session.findById("wnd[0]").sendVKey(N)
Where N is the linked hot-key ID.
To get the exact command, use SAP script recording and only use the keyboard to transition between views and windows. The easiest way to determine how is to hover your mouse over the buttons you would normally click to learn the hot-key then record the hot-key.
Note 1) So far I have found that btn[XX] always maps to sendVKey(XX), but I can't be certain this is always the case.
Note 2) sendVKey always appears to be referenced off the window (wnd[Y]) even if a button is another layer down (/tbar, /usr, etc.).

Intellij - how to copy some text from tooltip messages to clipboard [duplicate]

When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.

Mouse button hotkeys only work once, not continual

I need to make an AutoHotkey script that performs some action when and while the mouse button is pressed, then finishes when the mouse button is released.
For (a very simplified) example:
LButton::
MouseGetPos x,y
MsgBox %x%-%y%
LButton Up::MsgBox Foobar
Replacing the LButton with a keyboard key (e.g., LWin) makes it work correctly and moving the mouse cursor updates as expected while the key is held down, but using the mouse button only performs the LButton action one time. I need the hotkey action to continue occurring until the button is no longer being held.
After a bunch of query-term tweaking, I found a page that gives sample scripts for autofire.
I wasn’t sure that was what I wanted (even though it made sense) because as I said, the sample script already works just fine for keys, but I gave it a shot anyway. I tweaked the sample a bit and now it works as desired. (Actually, it is very similar to a solution I had already been using, but now it absorbs the button event, which solves the underlying problem that I led me to trying the aforementioned script.)
Hopefully I picked good keywords in this post so that anyone else who finds themselves in the same situation can find the/a solution faster than I did.
#SingleInstance,force
CoordMode, Mouse, Screen
LButton::
While GetKeyState("LButton","p") {
MouseGetPos x,y
Tooltip %x%/%y%
Sleep 75
}
return
LButton Up::
Tooltip Foobar
return

how can I copy error message from intellij idea?

When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.

How to fix a non responding ext.list?

I've got a problem with an Ext.List:
You press a button on the main menu and are shown the list. Everything on it works fine and it let's you choose, where to go deeper inside the app. No problems so far.
But if you then go back to the main menu by pressing a "back"-button and reenter the page, that shows this Ext.List, it doesn't work anymore: you can't select an entry of the list.
The "back"-button removes the list, if you return to the main menu this way:
setTimeout(function(){page.removeAll();},100);
What's my mistake? Do you know a better method than "page.removeAll()" that really kills this Ext.List to let it then be completely recreated when I choose to see it in my main menu?
Thanks in advance, you guys have the best tips and tricks.
It's hard to tell without seeing your code but I suspect that there is a javascript error somewhere in the program flow that you described. If you display the javascript console in either Chrome or Firefox it should show the error.
Depending upon how the function that creates the list is defined it would normally recreate the list upon page/function entry and there should be no need to 'kill' the list explicitly.