Zobrazenie otázok označených: Zobraziť všetky otázky

Here's working C# source code to open and arrange 3 Firefox browsers on a 4K monitor wtih Windows

modify to suit your tastes or improve it? working now without any known issues. using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; name… (ďalšie informácie)

modify to suit your tastes or improve it? working now without any known issues.

using System.Diagnostics; using System.Runtime.InteropServices; using System.Text;

namespace FirefoxWindowPositioner {

   class Program {
       [DllImport("user32.dll", SetLastError = true)]
       private static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, IntPtr lParam);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
       [DllImport("user32.dll")]
       [return: MarshalAs(UnmanagedType.Bool)]
       private static extern bool IsWindowVisible(IntPtr hWnd);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
       private const uint GW_OWNER = 4;
       private const int MaxRetries = 100;
       private const int SleepTime = 200;
       private const string ClassNameToFind = "MozillaWindowClass";
       private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
       private static IntPtr foundWindowHandle = IntPtr.Zero;
       private static bool EnumWindowsCallback(IntPtr hWnd, IntPtr lParam) {
           uint processId;
           GetWindowThreadProcessId(hWnd, out processId);
           if (IsWindowVisible(hWnd) && GetWindow(hWnd, GW_OWNER) == IntPtr.Zero) {
               StringBuilder className = new StringBuilder(256);
               GetClassName(hWnd, className, className.Capacity);
               if (className.ToString() == ClassNameToFind) {
                   foundWindowHandle = hWnd;
                   Console.WriteLine($"Found window handle {hWnd} for process ID {processId}");
                   return false; // Stop enumerating windows once the desired window is found
               }
           }
           return true; // Continue enumerating windows
       }
       static void Main(string[] args) {
           string path = @"C:\Program Files\Mozilla Firefox\firefox.exe";
           // Define positions and sizes
           int[,] positions = new int[,]
           {
               {0, 0, 1284, 2120},
               {1280, 0, 1284, 2120},
               {2560, 0, 1284, 2120}
           };
           int initialDelay = 750; // Initial delay in milliseconds, 1000 worked
           int retryDelay = 200; // Delay between retries in milliseconds
           // Start three Firefox processes sequentially and move them to specified positions
           for (int i = 0; i < 3; i++) {
               Process firefoxProcess = Process.Start(path);
               Thread.Sleep(initialDelay); // Wait for the process to initialize
               foundWindowHandle = IntPtr.Zero;
               int retries = 0;
               while (foundWindowHandle == IntPtr.Zero && retries < MaxRetries) {
                   EnumWindows(EnumWindowsCallback, IntPtr.Zero);
                   if (foundWindowHandle == IntPtr.Zero) {
                       Thread.Sleep(retryDelay); // Wait before retrying
                       retries++;
                   }
               }
               if (foundWindowHandle != IntPtr.Zero) {
                   bool success = MoveWindow(foundWindowHandle, positions[i, 0], positions[i, 1], positions[i, 2], positions[i, 3], true);
                   if (success) {
                       Console.WriteLine($"Moved window {i + 1} to X: {positions[i, 0]}, Y: {positions[i, 1]}, Width: {positions[i, 2]}, Height: {positions[i, 3]}");
                   } else {
                       Console.WriteLine($"Failed to move window {i + 1}");
                   }
               } else {
                   Console.WriteLine($"Failed to get handle for Firefox process {i + 1}");
               }
           }
       }
   }

}

Otázku položil(a) FireFoxCustomWannabe Pred 2 hodinami

cannot log into my yahoo mail recently, it use to work fine

I get this error while trying to log into yahoo mail, I have cleared casche history. Secure Connection Failed An error occurred during a connection to guce.yahoo.com. P… (ďalšie informácie)

I get this error while trying to log into yahoo mail, I have cleared casche history.

Secure Connection Failed

An error occurred during a connection to guce.yahoo.com. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

   The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
   Please contact the website owners to inform them of this problem.

Otázku položil(a) faulhaberfrank Pred 1 dňom

Posledná odpoveď od jonzn4SUSE Pred 1 dňom

Can I create a bookmark for Help->About Firefox?

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Op… (ďalšie informácie)

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Open All Bookmarks", it would be displayed. This would be a convenient, albeit forceful, way to keep Firefox up-to-date. The About dialog isn't modal, so that shouldn't be an issue.

Otázku položil(a) ForceRs Pred 2 dňami

Posledná odpoveď od TechHorse Pred 2 dňami

  • Vyriešené

When in a private window, How do you open a bookmark or link in a normal window?

If you are currently using a normal window then there are ways to open a bookmark or link in a private window. But if you are currently using a private window then how wo… (ďalšie informácie)

If you are currently using a normal window then there are ways to open a bookmark or link in a private window. But if you are currently using a private window then how would you open a bookmark or link in a normal window?

I have tried several things including pressing shift+enter or choosing "Open in new Window" from the context menu, but this just opens the bookmark or link in a new private window.

My current method is to copy the address of the bookmark or link then paste it into the address bar of a normal window.

But is there a more direct method of opening bookmarks or links in a normal window, if currently in a private window?

Thanks.

Otázku položil(a) TechHorse Pred 3 dňami

Na otázku odpovedal(a) cor-el Pred 3 dňami

Disabling GPU process fixes stuttering on external display on dual-GPU Optimus laptop

My configuration is the following: Windows 11, internal display connected to iGPU and external UHD display to nvidia-HDMI port, multiple firefox windows are opened (1 one… (ďalšie informácie)

My configuration is the following: Windows 11, internal display connected to iGPU and external UHD display to nvidia-HDMI port, multiple firefox windows are opened (1 one the internal screen, 2 on the external).

Then in Windows->Settings->GPU I can select firefox to run on either iGPU (powersaving) or on Nvidia GPU (max perf), the problem is the following: Whenever I set firefox running on iGPU, there would be a massive stuttering/framedrop on an external display (connected to NVIDIA), while a perfectly smooth browsing on internal display, and vice versa.

My first attempt was to disable webrenderer compositor or switching it to a software rendering, which fixes the heavy stuttering, but the scrolling becomes overall less fluid/responsive.

However, setting "layers.gpu-process.enabled" to "false" seemingly solves this problem completely. Now I have a perfectly smooth scrolling on both displays, regardless of which GPU is used in Windows->Settings->GPU (nvidia's is arguably a little but more responsive).

Hope this helps someone, or maybe dev team could look deeper into this.

Thank you for the great browser!

Otázku položil(a) Alexey Samosyuk Pred 5 dňami

Suggestions: Download Webpage as HTML

Hello. I noticed that on the current version of Firefox browser on Android, there seems to be no button to download the current webpage as a HTML file? Would such a featu… (ďalšie informácie)

Hello. I noticed that on the current version of Firefox browser on Android, there seems to be no button to download the current webpage as a HTML file? Would such a feature be considered in the future?

Otázku položil(a) egg.plus101 Pred 1 týždňom

Need to hide "Browser is under remote control (Reason: Marionette)"

I am in need to develop Visual Studio Desktop Application for Windows, and open 1 website in InPrivate or incognito mode, that is achieve for Edge and Chrome browser and … (ďalšie informácie)

I am in need to develop Visual Studio Desktop Application for Windows, and open 1 website in InPrivate or incognito mode, that is achieve for Edge and Chrome browser and able to hide "Browser is under remote control", but can't able to figure out parameter or settings to do that for Firefox browser.

I am using Firefox 128.0 (64-bit) and Selenium WebDriver 4.22.0, Selenium.WebDriver.GeckoDriver 0.34.0.

I opened https://github.com/mozilla/geckodriver/issues/2186, and thought that, maybe there is any settings of Mozilla Firefox (about:profile), so ask here also.

Need your expert advice.

Regards,

Kamal Kiri

Otázku položil(a) Kamal Kiri Pred 1 týždňom

Want to download PDF documents into Google Drive

Using Firefox, I would like to download PDF documents that are online directly to a Google Drive folder. Is that possible with Firefox? Thanks in advance for a response! … (ďalšie informácie)

Using Firefox, I would like to download PDF documents that are online directly to a Google Drive folder. Is that possible with Firefox? Thanks in advance for a response!

Otázku položil(a) mitch32 Pred 1 týždňom

Firefox screenshot feature: How to prevent clicking from affecting page content when taking screenshots?

Hi there, I've noticed that since a certain update (1 - 2 months ago?), when using the Firefox screenshot feature (that is, using Shift + Command/Ctrl + S), clicking on … (ďalšie informácie)

Hi there,

I've noticed that since a certain update (1 - 2 months ago?), when using the Firefox screenshot feature (that is, using Shift + Command/Ctrl + S), clicking on webpage still has effect on the webpage itself: After pressing Shift + Command/Ctrl + S, so that the browser enters screenshot mode, I have to click on a certain area in order to orient the screenshot camera, then click somewhere again, in order to click the "Copy" or "Download" button when the screenshot is ready. If I remember right, these two click actions wouldn't influence the webpage itself at all in older versions of Firefox, because in the screenshot mode the interaction between webpage and mouse clicks was "blocked". However, this is not the case anymore. That means, the webpage could no more look like how it looked like at the moment I wanted to take the screenshot, due to the unblocked mouse click. Even though for most static pages it's not a big deal, for many dynamic pages like online games this is absolutely annoying. Any workaround?

Otázku položil(a) Lutalli Pred 2 týždňami

capture entire web page

i am trying to find out how to capture an entire web page. Appparently Edge provides such an option with a camera icon. How can i do a similar function in Firefox. Are th… (ďalšie informácie)

i am trying to find out how to capture an entire web page. Appparently Edge provides such an option with a camera icon. How can i do a similar function in Firefox. Are there add-ons perhaps?

Otázku položil(a) John Pred 2 týždňami

Posledná odpoveď od cor-el Pred 2 týždňami