Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OSD
#5
Code:
Copy      Help
// script ""
bool ticheck = false;
for (; ; ) {
    //code created with the 'Find UI element' tool
    var w = wnd.find(0, "", "Shell_TrayWnd");
    var e = w.Elm["BUTTON", "Turn Dragon's Microphone Off", "class=ToolbarWindow32"].Find();
    
    if (e == null) {
        if (ticheck) {
            osdText.closeAll();
            osdText.showTransparentText("Dragon microphone is OFF", 2, new(y: ^1), 0xff0000, new(22, "Arial"));
            ticheck = false;
        }
    }
else {
        if (!ticheck) {
            osdText.showTransparentText("Dragon microphone is ON", -1, new(y: ^1), 0x0000ff, new(22, "Arial"));
            ticheck = true;
        }
    }

    
    500.ms(); //hush the CPU fan
}


Messages In This Thread
OSD - by InterestedNewbie - 05-02-2023, 11:19 PM
RE: OSD - by Gintaras - 05-03-2023, 04:37 AM
RE: OSD - by InterestedNewbie - 05-03-2023, 02:59 PM
RE: OSD - by Gintaras - 05-03-2023, 03:12 PM
RE: OSD - by Gintaras - 05-03-2023, 04:06 PM
RE: OSD - by InterestedNewbie - 05-04-2023, 03:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)