Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Will pay someone to fix this script error please

If you have a question or need help, this is the place to be.
Post Reply
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

I appreciate your efforts but I must admit I have no clue of the technical stuff you're posting as I am not a coder. I am simply trying to follow your instructions best as I can which is why I am not always sure if I am doing so accurately so please excuse this?

So I did as requested in your last post but as can be seen in the attached file I have changed the volume down to .50 with no change when I test, please tell me what I am doing wrong or what I need to do to change the volume to smaller increments?
EG-OTSAV.xml
(2.57 KiB) Downloaded 45 times
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

you installed the version of EG in the link that I last posted????

This version changes the 2 standard volume adjustment action dialogs. They should look like the images below
actions.png

I changed the whole control to something that would be easier to navigate the volume instead of having a spin type control. to have a 0.05% resolution on a spin control would bean there would be 2000 items to choose from on the config dialog that is on the bottom and 4000 choices for the one that is on the top. Having that many choices with the original control would have been a real pain. This slider control I made is a much better solution and makes it easier to select the volume you want (my opinion). I also modified the mechanism that actually changes the volume so it wouldn't round out the volume command to the nearest whole integer. So it now accepts the lower precision.

You can see in the screen shot of EG below the actions getting executed the first bunch are changing the volume by 0.05% and the last one is setting the volume. You can see the events that take place when the volume changes. Those events are generated by Windows and that is the volume that has been set.
action events.png
As I stated before. the precision is set by the sound card. mine supports a 0.0125% precision(i think). It could be possible that yours only goes down to 1.0%.

The link in that previous post has all of the modifications already done. You have no need to copy any files. just install it.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

also in that file you attached.
You do not have any volume adjustments set to +-0.5%.

You have a volume down macro named -.5% but the action is set to adjust the volume to -7.0
and the other is set to +7.0%

Code: Select all

<Macro Name="Change Master Volume: 1.00 %" Expanded="True">
                                    ^
                                    ^
              This is simply the name of the macro. It inherits the name from the action that is initially placed into the macro upon creation
              If you change the action contained within the macro it does not change the name of the macro.

            <Event Name="X10.VolumeUp" />
            <Action>
                System.ChangeMasterVolumeBy(7.0, u'Speakers (High Definition Audio')
                                             ^
                                             ^
                                          Here
                
                
                
            </Action>
        </Macro>
        <Macro Name="Change Master Volume: -.50 %" Expanded="True">
                                             ^
                                             ^
                                   Here is the macro name tht has the -.50% in it
        
            <Event Name="X10.VolumeDown" />
            <Action>
                System.ChangeMasterVolumeBy(-7.0, u'Speakers (High Definition Audio')
                                             ^
                                             ^
                             Here is the action contained within the macro above. This first value is what the action is set to.
                             Notice how it says -7.0 and not -0.5. This is the reason why you are not seeing the volume change that you are expecting.
           
           
           
                            
            </Action>
        </Macro>
        

So to fix this issue. double click on the Action and change the value on the slider to a lower precision and try it agian.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

I double checked, the version you had linked to was downloaded but not installed so I uninstalled the version on my pc and reinstalled with the new one [10.32.22] and had changed the volume to +-.05 if that is how it's supposed to be done but the volume still changes in the original increments.

Tell me this, aside from changing the volume digits in the EG tree, should the OTSAV XML file also be changed accordingly to match the +-.05?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

That file is your tree. And you never need to edit the file.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

OK I am going to step you through this.


Open EG.
Right click on the computer icon at the top of your tree.
click on "add macro " in the menu that opens up
once you click that the Add Action box pops up.
Expand "System" then "Audio"
click on the Set Master Volume action
click on OK

a new box should open up.
does the box look like the bottom image a few posts back??

If so. in the dropdown box select your sound card.
then set the volume using the slider. make sure the volume you set it to has a decimal value. like 15.15
then click on the Apply button. then click on the Test button. you should see an event show up in the log. the number at the end between the single quotes is the volume that is currently set.

If you happen to be looking in the sound control panel in windows you can't it is not going to show decimal values. it rounds the number it is not the true volume the event you see in EventGhost is the actual volume as reported by the sound card
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Right, everything is as written in your last post, I did it a few times and I can see the changes in the events
vol.png
.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

run the Set Master Volume 4.35% manually. (right click on the action then click on execute in the menu that appears). then see what the event looks like.

I also need to know what sound card you have the actions set to.


if it is still only doing whole percentage points go into Device Manager and expand the Sound item on the left. take a screen shot of that and post it.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

kgschlosser wrote: Wed Jun 27, 2018 4:16 am run the Set Master Volume 4.35% manually. (right click on the action then click on execute in the menu that appears). then see what the event looks like.
Not sure about the instructions. When I open EG, I added a macro and set at 4.70 then clicked on Execute. Here's a screenshot of all 3.
Screenshot_1.png
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

OK you need to install the drivers for the sound card they are located on the Mac OSX disc. You are using the generic Microsoft drivers. and those drivers are only going to allow for 1.0% precision. It appears as tho you are not using Parallels yet. As i had stated earlier this is all dependent on what the drivers allow. and the generic ones are junk. If you give me the whole Model number from your latop i can locate the drivers online for ya if ya like.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Oh wait, my sincerest apologies. I have been trying this on my windows machine to avoid messing anything up on the mac. I didn't think it would make a difference, sorry. If there's no chance of myself messing up anything on the mac then I can work with the mac on this?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

it doesn't make a difference.

If you want to use a non production machine that's fine. But you need to install the drivers that comes from the manufacturer of your sound card.

If you do not know who makes your sound card i will walk you through the steps to find out.


click on start. in the search box type in

Code: Select all

dxdiag
if it asks you about loading signed driver crap say no or yes or whatever doesn't matter

on that screen that pops up. I need to know the System manufacturer and System model information. with that I will be able to locate the drivers. Now in the off chance that the information is not populated (usually because of a generic driver or it is a custom built machine and the mainboard manufacturer didn't feel it was necessary to fill in that information) You will have to get me the manufacturer of the mainboard and the model number. In most cases the built in sound cards are realtek. so we can simply start off with those drivers and if the installer cannot find you will be told that there is no device installed. so it's not a worry.


here are the drivers for realtek sound cards.
http://www.realtek.com/downloads/downlo ... Down=false

I would start by installing those, 9 times out of 10 a PC has a realtek sound card. I know those drivers will allow you to have a better precision
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

This machine I am testing this on is my old original music machine with the same setup so only difference is this is on a windows machine and the other is windows on the mac.

I have installed the Realtek driver so it now shows in the DM alongside the High Definition driver and this is the machine's info below prior to installing the Realtek.
info.png
driver.png
Attachments
driver.png
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

Ok cool so now in Device Manager you see 2 drivers. One should be "High Definition Audio Device" and the second is "Realtek High Definition Audio" or something similar.

The other generic driver that is installed is for the audio card on your video card. Yes.. you have 2 sound cards in your computer. The second one is for the HDMI port on the back of your machine. If you want to (which you should really do) install the manufacturers driver for the video card then you will need to go to HPs support website. Punch in your service tag/serial number. It will bring up all of the drivers that are available for your computer. DO NOT DOWNLOAD THESE DRIVERS. You want to note the manufacturer of the various drivers. Sometimes they will also provide the model numbers of the device. Write that information down for each driver. The reason for not downloading is 2 fold. One. Look at the date that the driver was released. They are usually not up to date. The second is the drivers on HPs site are not original in most cases. HP has added "fluff" to them. This crap is not needed. Even some of the actual hardware manufacturers will add fluff. It is a more complex process to go and extract and msi or an executive to remove the raw driver and install it, that can be a lesson for another day. So for the time being we will simply install the driver from the manufacturer. Once you have the manufacturer and possibly model numbers. You will go into the device manager and get all of the rest of the manufacturers and models from there. HP is only going to supply drivers for devices that windows does not have a generic driver for (in most cases). Then one at a time find the manufacturers website and locate the drivers for your device model and download/install it.

Be careful not to download drivers or visit websites that are not the manufacturer. Only go to sites that are the manufacturer so hover over a link in a Google search look at the bottom of the browser. It will tell you the website the link goes to. Make sure that it is something you want to click on. People that create spam/malware love using fake drivers and sites to install junk into your machine. They do this because they know every computer has to have e drivers to work. So be careful. What I did was I created a windows installation usb drive with all of the drivers for my computer slip streamed into the installation. You can read up on how to do this on google. It is nice when it's all set up that way I even have e all of the software and settings slip streamed into the install.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Seems to be the same Realtek installed driver to me:

https://support.hp.com/us-en/drivers/se ... pc/5037931

So where are we at with this please, what volume percentage should I try now that the Realtek driver is installed?
Post Reply