Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
1) Brightness is very device dependent and doesn't have the widest adoption, so most solutions are kind of inconsistent. You can install this plug-in as a kind of hack which generally is okay: https://forum.strokesplus.net/posts/t1008-Display-GammaCode://red, green, blue - values 0 - 255 each
DisplayGamma.Set(110,110,110); //about 43% brightness
DisplayGamma.Set(255,255,255); //max gamma
Again, this is not true brightness, just kind of a trick. It is possible to accomplish this, depending on the hardware, etc. But I don't have anything built-in for this, until there's a widely adopted standard and support. Though you might find a .NET library (DLL) out there which can handle it, put it in the plug-ins folder and try to call it. 2) Couple ways to do that, if you just want to open YouTube from anywhere, like not just when you're in Chrome or something, just run the URL, like putting it into the Window Run box: Code:sp.RunProgram("http://youtube.com", "", "open", "normal", true, false, false);
Or, you can use this if you want to have it typed into the address bar directly when in Chrome: Code://Send Alt+D to set focus to address bar in Chrome
sp.SendModifiedVKeys([vk.LMENU], [vk.VK_D]);
sp.Sleep(10);
sp.SendKeys("youtube.com~"); // ~ = enter key
3) That is simply the property, you didn't do anything to set the property. Try this: Code:action.Window.TopMost = !action.Window.TopMost;
That will toggle the TopMost flag, to the opposite of whatever it is currently set as, so if on, turn off, and the reverse. You can also explicitly set the value: Code:action.Window.TopMost = true; //Make top most
action.Window.TopMost = false; //Make not top most
|
2 users thanked Rob for this useful post.
|
|