What's the difference between ✱chrome or chrome✱? - g1ant

I had tried both ✱chrome and chrome✱, both the time it opens up the chrome window. Now I am confused that how ✱ works?
window ✱chrome
or
window chrome✱

window ✱chrome will wait for a window with a title that ends with "chrome" and bring it to the front.
window chrome✱ will wait for a window with a title that starts with "chrome" and bring it to the front.
✱ sign means any string of characters. As #Nick A the Popcorn King suggests, you can visit search place and window descriptions in the manual to get more information about them.

Related

Electron BrowserWindow shows taskbar when focused

My application is an overlay (alwaysOnTop) for a full screen game and when the user clicks on my overlay it takes focus and shows the taskbar on top of their game as well. Taking focus is fine, but I can't have the taskbar show.
It says in the BrowserWindow docs:
not a toolbox window which can not be focused on
Implying that it is possible to create a window which cannot be focused on.
Does anyone know how to create a toolbox window, or to simply avoid having the taskbar showing when clicking on the electron window?
I should mention I've tried setAlwaysOnTop and skipTaskbar. I also have transparent: true and frame: false.
The overlay I've created is the "Safelane, Midlane, Offlane" buttons. When I run the application it shows on top of the full screen app (Dota 2) like this:
After clicking on the interface the taskbar appears. It would be fine that the full screen app (Dota) loses focus, the task bar appears on top which breaks the continuity of the experience:
I would like the experience to stay like the first image--when the user clicks on anything in my overlay, the taskbar should not show.
Electron GitHub Issue
Additional Solution Info -- After using Gaafar's solution below
Setting kiosk: true in the setup does not seem to allow it to render transparent. Using setKiosk(true) within a setTimeout after the window has been opened seemed to work.
I also found that any windows using kiosk or fullscreen with transparency had rendering issue. It would render multiple times on top of itself and could not unrender items (display: none in css would do nothing). The way I fixed this was by using Electron Window Manager creating a single kiosk window with nothing in it and creating other non-kiosk windows with the HTML / CSS interfaces. The result:
All of the interfaces can be interacted with, mouse and keyboard.
Rendering happens as it does regularly in electron.
The fullscreen application below receives input through any transparent areas.
Taskbar never shows up on any input.
skipTaskbar: true is to prevent showing your app in the taskbar.
To hide the taskbar altogether use fullscreen or kiosk mode instead
fullscreen: true
or
kiosk: true
EDIT:
There are some issues open where fullscreen or kiosk modes prevent the transparency of the window.
A solution that works for me is to run with these flags --enable-transparent-visuals --disable-gpu
issue & solution: https://github.com/electron/electron/issues/2170#issuecomment-145942717
showInActive();
set your BrowserWindows, focusable: false
Im gonna post a solution some might be facing with full screening, I was facing this issue and wandering here and there, this StackOverflow post kept coming up.
So Im posting it here so people getting similar problems can get help.
When fullscreening taskbar getting in way.
When you fullscreen using mainWindow.setFullScreen(true) taskbar will get in way when you are on home (all windows minimized) in windows.
Here is the solution:
ipcMain.on("fullscreenon",()=>{
mainWindow.setAlwaysOnTop(true, 'screen-saver');
mainWindow.setFullScreen(true);
})
//The order of the commands is important below
//don't setAlwaysOnTop() before getting out of fullscreen.
ipcMain.on("fullscreenoff",()=>{
mainWindow.setFullScreen(false);
mainWindow.setAlwaysOnTop(true, 'floating')
})
Basically, by default setFullscreen uses the level: "floating". We need a higher level, "screen-saver" is the highest level I think.

SQL WIndow Not Displaying for FIBDataset Component

I am facing a strange problem, when I click to see SQL of TFIBDataset component, then the window seems to be open but not visible, coz once it is open i can't click in Delphi until I press Esc key. I tried pressing Alt + Tab key, but no use. then I right click on that component is chose SQL Generator option, but then also I couldn't see the SQL window.
Any clue?
I got the solution.
I was using a laptop, and a monitor was also connected to it. I made screen resolution setting on Windows 8 as "Show Desktop Only on 2".
When I was clicking on SQLs property TFIBDataset component, then the window was displaying on Laptop screen and not on Monitor screen.
Because of "Show Desktop Only on 2" setting, laptop screen was in switched off mode, so I couldn't able to notice this change.
Finally, I made the screen resolution settings as "Duplicate These Displays" and now able to see the SQL window on both the screes.
Happy At The End :)
With Best Regards.
Vishal

How to get render window back on main screen?

I've opened a v4 patch that's kind of old. It defaults to fullscreening when I open the patch. When I ALT+ENTER to exit fullscreen, it disappears. I'm assuming it is going to a monitor that is no longer connected.
Is there a command in the vvvv IDE to position the DirectX window back on the main screen?
I assume that the patch window is still visible. There is a node called 'Window.' Run the help file and find the render window that ahould be in the list if you cycle throuh getslice. You can then move the point on the IObox around and it should reappear on you main screen. Technically its probably just slightly unclickacble off screen but I appreciate the annoyance of this.

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.

Zoom to full screen?

How to activate/use this feature in D2010 ?!?
I have checked Zoom to full screen in Tools > Option > Editor Option > Display clicked Ok button but nothing happened. Ok, i said to myself, let's see what the help has to say about this. I pressed F1 key, wait a little, help's coming up but as i have expected, it has no idea about this, ironically: the help didn't help. Google did find some old blog posts which provided some outdated information like double click on the editor tab or pressing F5 will do the thick. But, that's not the case, so i'm asking here maybe somebody has more information about this.
That option controls whether the code editor, when zoomed, will zoom to occupy the entire screen. If that option isn't set, then maximizing the edit window will leave space at the top of the screen for the main IDE application window. If you never maximize the editor window, then that setting has no effect. It might also only have an effect when you're using the "classic undocked" layout mode.

Resources