How to prevent the short menu to close before the mouse pointer move to any command inside it? - power-automate-desktop

When I use action extract data from web page and try to use the short menu, I move mouse pointer from extract element value and try to reach src value but the menu always close itself (once I hover away) . any solution ? I tested all browsers
Video for demonstration:
https://vimeo.com/791648674

Related

How to make the selenium web driver click on a button which is inside react spotlight (React Joyride)?

I've added a controlled tour in my app using ReactJoyride. At a particular step, the tour will progress only when the 'Ongoing' tab/button is clicked (see image).
This 'Ongoing' button is inside the spotlight.
I've tested this manually and it works perfectly. However, while testing this using Selenium, I can't seem to find a way to click on this button.
I'm getting the following error :
It says that react-joyride__overlay will receive the clicks. But react-joyride__spotlight is a child element of react-joyride__overlay and i've enabled spotlightClicks.
The current code that i'm using is this : (test.rb)
the commented lines of code are the other ways that i've tested. All of them failed.
If you can point me in the correct direction, I would really appreciate it!
The problem here is, your desired element is overlay-ed by other element, so this other element is hiding your element. All you have to do is, you have check whether this overlay is permanent or temporary. If it's temporary, you have to write the code to wait until the other element gets disappeared, If it's permanent, then you have to issue the click on top of the other element so that your desired element would receive the click.
Let me assume your overlay is permanent so try this code
find(xpath: "//div[#class='react-joyride__overlay']").click

IDropSourceNotify - how to implement

I want to implement a OLE Drag&Drop feature. Doing this, I have to detect the mouse button is clicked and moved. Than I call DoDragDrop to start the Drag&Drop feature.
To receive the Drag&Drop feature, I have to call RegisterDragDrop before of it to register a window as a target of the Drag&Drop operation. Like the most applications, my main window based on several sub windows: TreeView, ListView, Edit, etc.. With IDropTarget::DragOver I can detect, if the target sub window accepts the Drag&Drop operation. This works fine, if I drag an object from a different application and the mouse cursor shows as well, if the target sub window accept the Drag&Drop operation.
But if I start the Drag&Drop feature inside my application with DoDragDrop the mouse cursor does now change automatically. Why?
So I can use the IDropSource::GiveFeedback method to change the cursor of the target sub window. But I can't find out, which sub window has to change the cursor.
If I'm right, the IDropSourceNotify should provide this informations. But how can I involve this class into the Drag&Drop operation?
Additional, I don't understand, why I have to handle the mouse cursor by my self, if the source window is inside my application - but it will be handled automatically, if the source window is inside an other application.
Last but not least, if I change the cursor of my sub window inside IDropSource::GiveFeedback it will be shown like I changed it. But since the my main thread is inside DoDragDrop I wonder how Windows detect the changed cursor. If I'm right, Windows ask my application with the WM_NCHITTEST message, which cursor should be shown. But how does my application answer this message, while the main thread is blocked inside DoDragDrop?
I'm working with Delphi XE4 on a Window 7 system.
The drop source should not make any assumptions about the drop target - and should never attempt to modify the UI of the target.
In other words: Do not mess with the cursor property of the control under the cursor.
The return value from IDropSource.GiveFeedback instructs Windows to either use the standard drag drop cursors or let you handle that detail yourself.
If you return DRAGDROP_S_USEDEFAULTCURSORS then the standard cursor corresponding to the current drop effect (the parameter passed to GiveFeedback) will be used. If you return S_OK then you can set the cursor by calling the SetCursor API function.
I would recommend that you just return DRAGDROP_S_USEDEFAULTCURSORS.
Actually unless you have a burning desire to learn the inner details of COM based drag and drop I would recommend you Google "drag drop delphi" and use one of the already available libraries.

Replace mouse click for function key in Gimp

Is there a way to setup Gimp to use a held key (e.g control or alt) to do the same as mouse click?
The general answer is no.
There are some mouse clicks in the tool boxes and editor dialogs which change parameters (like brush size) - these are mapped as "actions" inside GIMP and you can create keyboard shortcuts for them (including using the F keys) under Edit->Preferences->Interface->Edit Keyboard Shortcuts...
But probably that is not what you want - the main mouse button-click effect in GIMP is stroking the image with a paint tool - and that is wired in a different way inside the program: it can't be replaced by a keypress.
However, there are different painting devices that can be used that might serve your needs - a graphics tablet like those sold by Wacon provide a fundamentally different interface than mouse not just for GIMP, but for all drawing programs.
And GIMP is somewhat a unique program that can actually make use of a MIDI controler
(like a MIDI foot controller) to control the pressure of the painting - so, if your problem is getting rid of the "click and hold" action for painting with the mouse, a proper configured such peripheral could serve you.
That said, this question would be ontopic for https://graphicdesign.stackexchange.com/ and is offtopic here - I hope someone can move both the question and this answer there.
If GIMP does not allow such function. I have a suggestion, if you are using Ubuntu you can enable mouse control by numeric keypad as explained here. After enabling mouse control by numeric keypad you must turn Num Lock ON and press the key 5 to simulate a mouse click.
One workaround I use is to rebind an unused key to left mouse button, through macro or some other method.

Delphi - Activating the Hint from another control of Application

I'm trying to activate Hint from control of different application created from delphi upon focus, I'm using hook to identify the focused control, and then use WM_MOUSEMOVE, which I think will activate the Hint of that control, the handle would be the Control itself and the lParam is the Left and Top of the Control. The Control activate the OnMouseMove Event, but the Hint never shows. but when I use SetCursorPos, Hint show, but I need to show the Hint with out the cursor move on that Control. Can you please help me with this? Thank you in advance... by the way I'm using Delphi XE4
Among the really asked question is how to show the hint of a control that resides on another application (i am afraid without hook that application can not be done), the title is "Delphi - Activating the Hint from another control of Application".
First is first: That can be done without knowing what language the other app was done, but it is very complex to put it here (and i am not an expert on such way of coding, also i hate apps that work that way).
Second: The main idea is to hook the other application, search on Google some code of that apps, that can show you a rectangular hole square of the object the mouse is passing over, that application while doing it is iconized (i do not remember the name of it).
Waht such app does: As you move the mouse over the screen it overlays a rectangular over the control that mouse is over, then if you press the key to print screen, that small region is the only thing that goes to clipboard; on of such apps i saw had an extra funcion, they can move such controls if you press cursors on keyboard, also can hide/enable/disable such control... more, it can also make controls that are invisible to be visible, etc... i saw it working on my computer, and hey, for fun it is pretty and to DeBug or get extra things on some apps is also great (make some menĂºs to be visible and enabled and then can use such funtions).
Please, please, understand i am agaist piracy and also against using such apps to let code to be run... some apps need pay for letting some menus enabled, but they have the code there, no need to change EXE to have/use that menus; just using this kind of apps makes that limited apps to be unlimited (just enable or show hidden menus and voila).
Note: To unhide menus, mouse point is not needed to be over the app, can be anywhere and is not moved.
The idea i want to say is: Any app can move, alter any control on any other app (at least on Windows) that is running, so maybe there can be a way to show such hint.
In the past i had use such app (sorry i do not remember the name) for DeBug my own apps, so i do not need to recompile in such cases where something was wrongly hidden, also work with buttons, labels, texts, combos, memos, etc.
Now my small problem is: I just need exactly what title say, but i can not make it to work.
Must be:
Mouse position must be irrelevant (it also must be able to be outside the application)
Just when a button that has focus is pressed with keyboard (Space or Enter) or just after some code somewhere on my application, i want to show the Hint of a specific TEdit for a short period of time.
I did not get Hint to be shown; not unless mouse point is over such TEdit but i want/need mouse pointer to not be over it, neither it to jump to the TEdit.
Idea Conept for that Hint to be shown: After doing some code that changes something, show extra info associated.
Example:
A button with that loads a file using an open dialog, filename is put on a ReadOnly TEdit (so it let user copy the text, but not change it); i want extra info that i punt on .Hint of such TEdit to be shown inmediatly.
That hint use is for not overload window with a lot of fields (TLabels) for showing such file data.
Simple idea: such Hint shows TimeStamp and size of the selected file.
P.D.: Not much related (since i am trying with a normal plain text hint), but hints can also store a full HTML page and with 3rd party tools be shown as an HTMLhint, so they can show a lot info of that file (also its content, etc) in a web based format; as i say i first try with standard plain text hints.
In order to show hint programatically you need to call TApplications ActivateHint method to which you specify the position parameter.
http://docwiki.embarcadero.com/Libraries/XE3/en/Vcl.Forms.TApplication.ActivateHint
Based on position parameter Application automatically finds which controll is at that position and shows its hint.
NOTE: Position parameter screen coordinates in pixels and not your controll coordinates. So you will have to use ClientToScreen method to change your coordinates apropriately.
You can see simple example of how to use this here: https://stackoverflow.com/a/15031208/3636228
Now if you need to do this from another application then you will have to add some comunication mechanizm to these two application so that one could send a proper message to tell the other to show the hint at specific position. But this does require you to be able to change both applications.
EDIT: This works with VCL applications but I'm not sure if it would work with FireMonkey applications.

How to control a popup window in dart

I wonder if it is possible in dart to open a popup window and then control it from the opener context.
What I would like is to open a popup window, and then control it's content and event from the script that opened it.
The propblem is that window.open only returns a WindowBase, that can only close the popup, nothing more.
So, is it doable ?
I can't test right now but this should work:
var w = window.open(...);
w.document.body.innerHtml = 'from parent';
This of course won't work if the opened site is not in the same origin.
If it's a site you control, you could pass in a parameter in the URL that you can then read and act on.
A div with a high z-index and the right positioning and styling could function as a popup window easy to manipulate.

Resources