Announcement

Collapse
No announcement yet.

How to get display frequency

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get display frequency

    I have looked everywhere at peoples requests about the display but can't find one way to get the frequency I don't want to use a plugin to just get the frequency so is there any simple way or am I out of luck?
    Plugins or Sources MokoX
    BunnyHop 2021 Here

  • #2
    I first excuse me for the simple suggestion and then say
    only if you haven't find a professional solution

    I understand you don't want a plugin but it is much more

    Well, I think that using SIW (System Information for Windows) you can solve the problem.
    It is a fully portable application (single exe but discontinued or PAF Format but packed).
    Launch it silently with the command line parameter /log and then get the value you need from AMS.

    Here you can find a quick review

    Hope it helps you.

    Comment


    • #3
      Originally posted by Drag View Post
      I first excuse me for the simple suggestion and then say
      only if you haven't find a professional solution

      I understand you don't want a plugin but it is much more

      Well, I think that using SIW (System Information for Windows) you can solve the problem.
      It is a fully portable application (single exe but discontinued or PAF Format but packed).
      Launch it silently with the command line parameter /log and then get the value you need from AMS.

      Here you can find a quick review

      Hope it helps you.
      That exe, god been years since I seen that does not support NT 6.3

      Also after reading there website I cant fine any freeware version at all, they offer a trial versions but not a freeware version for SIW 2013
      Last edited by kingzooly; 01-21-2014, 08:57 PM. Reason: Not free
      Plugins or Sources MokoX
      BunnyHop 2021 Here

      Comment


      • #4
        Have you ad a play with this?

        Comment


        • #5
          Originally posted by Shrek View Post
          Have you ad a play with this?
          I forgot about that Shrek thanks I give it a look over see if that can help

          Thanks Shrek but that replys on luacom.
          Last edited by kingzooly; 01-22-2014, 05:11 AM. Reason: Update
          Plugins or Sources MokoX
          BunnyHop 2021 Here

          Comment


          • #6
            Originally posted by kingzooly View Post
            I forgot about that Shrek thanks I give it a look over see if that can help

            Thanks Shrek but that replys on luacom.
            Code:
            -- Generated by ScriptOMatic Tool for AutoPlay Media Studio
            
            function Escape(v)
                if (v == nil) then return ""; end
                if (type(v) == "table") then return Table.Concat(v, ", "); end
                if (type(v) == "boolean") then
                    if (v == true) then return "Yes"; else return "No"; end
                end
                return v;
            end
            
            local sOutput      = "";
            local sOutputTitle = "Computer: localhost\r\n==========================================\r\n\r\n";
            local oWMIService  = luacom.GetObject("winmgmts:\\\\localhost\\root\\CIMV2");
            local oColItems    = oWMIService:ExecQuery("SELECT * FROM CIM_VideoControllerResolution", "WQL", 48);
            if oColItems then
                local oEnum   = luacom.GetEnumerator(oColItems);
                local oItem = oEnum:Next();
                while oItem do
                    sOutput = sOutput .. "MaxRefreshRate: " .. Escape(oItem:MaxRefreshRate()) .. "\r\n";
                    sOutput = sOutput .. "MinRefreshRate: " .. Escape(oItem:MinRefreshRate()) .. "\r\n";
                    if (Dialog.Message("WMI Output",  sOutputTitle .. sOutput, 1) == 2) then break; end
                    sOutput = "";
                    oItem = oEnum:Next();
                end
            else
                Dialog.Message("WMI Output", "No WMI Objects Found for class: CIM_VideoControllerResolution");
            end
            Try also the Win32_DisplayConfiguration item:

            Code:
            -- Generated by ScriptOMatic Tool for AutoPlay Media Studio
            
            function Escape(v)
                if (v == nil) then return ""; end
                if (type(v) == "table") then return Table.Concat(v, ", "); end
                if (type(v) == "boolean") then
                    if (v == true) then return "Yes"; else return "No"; end
                end
                return v;
            end
            
            local sOutput      = "";
            local sOutputTitle = "Computer: localhost\r\n==========================================\r\n\r\n";
            local oWMIService  = luacom.GetObject("winmgmts:\\\\localhost\\root\\CIMV2");
            local oColItems    = oWMIService:ExecQuery("SELECT * FROM Win32_DisplayConfiguration", "WQL", 48);
            if oColItems then
                local oEnum   = luacom.GetEnumerator(oColItems);
                local oItem = oEnum:Next();
                while oItem do
                    sOutput = sOutput .. "DisplayFrequency: " .. Escape(oItem:DisplayFrequency()) .. "\r\n";
                    if (Dialog.Message("WMI Output",  sOutputTitle .. sOutput, 1) == 2) then break; end
                    sOutput = "";
                    oItem = oEnum:Next();
                end
            else
                Dialog.Message("WMI Output", "No WMI Objects Found for class: Win32_DisplayConfiguration");
            end
            We are slowly invading your planet to teach lazy humans to read the user manual.
            But don't be scared: we are here to help.

            Comment


            • #7
              i usualy use winapi free plugin

              GetCurrDisplaySettings

              gives you :-
              display width
              display height
              bits per pixel
              mode frequency (refresh rate)

              Comment


              • #8
                After letting some none AMS users play with it I think I am just going to set the size fixed to the 1024 and Kiosk it, this I know the stage will always be what I designed it to be :yes

                Right now I don't want to include any plugin as the way I create my code and updates can some times be funny with plugins, I will keep these ideas in mind tho as who knowns down the line I might need to revisit this.

                Thanks guy.
                Plugins or Sources MokoX
                BunnyHop 2021 Here

                Comment


                • #9
                  OK I am now I am having a problem if I use the FakeKiosk it for some reason cuts off the size of the start/toolbar off at the bottem, I was also going to have a image move and strech out in kiost mode but it is not letting me set negative valuses

                  WinPos.X will get my window then I need to make this a negative value to the image so it will move but it for some reason just goes to 0 I not sure if its me or what but -WinPos.X, (-WinPos.X) (0 - WinPos.X) none work so I am lost there also as I could of just made the image fit around my app but seems it does not want to play ball :(
                  Plugins or Sources MokoX
                  BunnyHop 2021 Here

                  Comment

                  Working...
                  X