-
Notifications
You must be signed in to change notification settings - Fork 8
Description
The launch script didn't work for me, renamed as suggested and backed up the old file, It opened a command prompt and it said to press any key then it closed and nothing happend.
Anyways wanted to contribute to this fine project because it is super amazing and btw great freaking work ! Tried others and it either plane didn't work due to requirements conflict or somehow the search methods/results where inaccurate (somehow the model is clearly not working properly with the results) !
This thing works ! And with lots of settings and features !
Ok here's my plan B workaround for you (especially if you want to see the window working)
All are minimized automatically (Windows only)
Script to run google in debug mode and also minimize it. Save as .ps1 file in notepad:
Launch Chrome with specified debugging port
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList "--remote-debugging-port=9222"
Start-Sleep -Seconds 2 # Give Chrome some time to launch properly
Attempt to minimize the Chrome window
$chromeProcesses = Get-Process chrome -ErrorAction SilentlyContinue
foreach ($chrome in $chromeProcesses) {
if ($chrome.MainWindowHandle -ne 0) {
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
}
"@
# 2 = Minimize the window
[Win32]::ShowWindow($chrome.MainWindowHandle, 2)
break # Assuming only one window needs to be minimized
}
}
Exit PowerShell script
exit
Script to launch this script along with start_windows.bat minimized (Save as .cmd file in notepad):
@echo off
start /min "" "C:\path\to\text-generation-webui-main\start_windows.bat"
start "" powershell.exe -ExecutionPolicy Bypass -File "C \Path\to\Powershell\Script\File\YourScriptFilename.ps1"
Right click on desktop or inside of the folder you want your shortcut, set location as your .cmd file
Optional, make a fun icon lol.