yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] ramdroid77:
Ah! Ok! I see! I also had the old ugly volume controls appear on my Topaz when cooking some 6.5.x on it, but I had installed S2U and it replaces the Volume control so this was fine with me.

About your approach to launch the Volume Control, I'm still wondering why it didn't work on your device with the coordinates I told you. As a result it would only be 3 simple lines of code and that's it:

FindWindow(HHTaskbar)

SendMessage(WM_LBUTTONDOWN)

SendMessage(WM_LBUTTONUP)

Like suggested in another thread ("restart Manila") you maybe should also use PostMessage instead of SendMessage to make it more stable.
[Windows Mobile Software Development] JVH3:
I might change that.

I did try the way you had posted with the coordinates provided.

I am using the ArkSoft taskmanage.

I'm really tired right now, but I think I remember it activating the ArkSoft task manager.

I need to go get some sleep now.
[Windows Mobile Software Development] ramdroid77:
I see. So the guy seems to got the same problem I got. On devices on which the HTC Volume control is working (older builds?) it should have the effect, that when the user hits the Volume up/down it would launch ArkSoft instead of HTC Volume Control ;)

Goodnight! ;)

Tomorrow you can try to move ArkSoft activation area and try again. If happens what I wrote before then you can use the method I first told, ArkSoft has to fix his taskman, and finally you got a stable way to launch HTC Volume Control. if you then code the app in native C then you even got a responsive way to launch it ;) Otherwise I could also build a small EXE and upload if you're interested.
[Windows Mobile Software Development] Mikenif:
Very interesting thread. Definitely will make a donation for who fixes this for those devices not running htcvolume in combination with wm6.5.x.

Im on a blackstone and this is the only big flaw in the new builds
[Windows Mobile Software Development] JVH3:
I still need to do a little work.

I just noticed that it does not launch it if there are notifications, such as new email.

Instead it launches somethign else.

But, after dismissing the notification, then it works.

i noticed the slider that appears after closing the clock has an extra icon on it.

So, I probably need to send message left mouse down.

and then move mouse left maybe 100px, since it will stop.

this assumes notifications are always to the left of the volume (windows logo) icon.

I think this will work, but I am at work.
[Windows Mobile Software Development] ramdroid77:
I think you are going crazy this way. I still suggest: try the original commands I told you. If Arcsoft is launching instead, move the activation area somewhere else. I'm pretty sure you get HTC Volume Control launch properly (and simple).
[Windows Mobile Software Development] JVH3:
I will try when I get home. I am at work for a little while longer.

My activation area for ArkSwitch is the upper left and it's not that big.

When you did this, were you using a later build of Windows, such as 23529, 23518, etc.

It has been a problem with all 6.5.1, 6.5.3, and 6.5.5 ROMs where the volume buttons won't launch the HTC Volume control.

The TaskBar with these builds changed. It's not as tall.

Only recently were they able to get these to work, by using packages from a Leo. But they did not get it to work for anything other than Rhodium, Topaz, and Leo.

I will still try.

If I manually launch the Volume Control, I must click on the clock, and then click on the windows logo in the notification region that drops down, as described in the post with the pictures.

So, I would expect that I would need 2 sets of messages for each click.

Unless the specifc 1 pixel will trigger it. But since this task bar is not the same taskbar as with Windows Mobile 6.1 or 6.5, the behavior may be different.

It will be at least an hour before I get to this.
[Windows Mobile Software Development] JVH3:
Change to original suggestion did not work

staticvoid Main(string[] args)

{

IntPtr hWnd = FindWindow("HHTaskBar", null);

uint LParam = (uint)MakeLParam(367, 26);

SendMessage(hWnd, (uint)WMessages.WM_LBUTTONDOWN, 0, LParam);

SendMessage(hWnd, (uint)WMessages.WM_LBUTTONUP, 0, LParam);

}

It just makes it show the larger Notification region like I showed in the post with the picture.

I killed ArkSwitch, QuickMenu, and ChangeScreen before testing.

I am going to try several variants of the y coordinate, since the taskbar is shorter in 6.5.5 that 6.1 and 6.5.

I tried with all y coordinate betweed 0 to 36 with x fixed at 367.

This method does not appear to work for Windows Mobile 6.5.5

I will return to my original way and add the additional messages for a moues move to the left.
[Windows Mobile Software Development] JVH3:
I have been trying to send messages to make the notifications area scroll the way you do it with your finger with no luck.

Giving up for the night.

I've attached a zipped up exe with no UI, so it can be triggered from a key mapping app.

Current bug is that if there are notifications that are not dismissed, it will not launch the volume control.
[Windows Mobile Software Development] ramdroid77:
You can try my application (Taskbar Launcher) to disable the popup slidebar which appeared in new 6.5 builds. Then you can try to launch the HTC Volume control with the parameters I told you. Now this should finally work!
[Windows Mobile Software Development] JVH3:
I tried it with your app set to block.

That specific combinations of send message still does not launch the volume control.

Intead, it launches that notification slider region, which is what I was getting before.

I verified that your program is working, because tapping on the clock no longer launches it.

No amount of tapping anywhere on the TaskBar will get the notification region to appear.

Only using the my modifed app will make the notification region appear.

So, I am thinking that Microsoft left this piece in, but for some reason the notification region is wired to launch from it, instead of the volume control.

But, for now, I will just do it the way I was doing it.
[Windows Mobile Software Development] JVH3:
I have found that this picks the item on the notification bar

SendMessage(hWnd, (uint)0x498, 2, 0);

If I switch it to

SendMessage(hWnd, (uint)0x498, 3, 0);

then it selects 1 more to the right.

So, now I just need to know how to determine where it is in the items.

[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]static [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Main([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][] args)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af] IntPtr[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] hWnd = FindWindow([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"HHTaskBar"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] LParam = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])MakeLParam(367, 26);[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//Show the notification screen[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2] SendMessage(hWnd, ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WMessages[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].WM_LBUTTONDOWN, 0, LParam);[/SIZE]
[SIZE=2] SendMessage(hWnd, ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WMessages[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].WM_LBUTTONUP, 0, LParam);[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//Determine the zero based index of the speaker item[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] iZeroBasedIndex = 2;[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//Hit the Speaker[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2] SendMessage(hWnd, ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]uint[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])0x498, iZeroBasedIndex, 0);[/SIZE]
[SIZE=2]}[/SIZE]
[/COLOR][/SIZE][/COLOR][/SIZE]
[Windows Mobile Software Development] JVH3:
How do I determine how many items are in the notification region

How do I determine how many items are in the notification region

Or the 0 based index of a particular item?

In the ROM, I am using, I can calcululate that it is the total number of items - 3 because it seems that the volume icon is always the 3rd to the right.

Any help on this is appreciated.

Hoping there is a registry entry, cause a registry read is easy.
[Windows Mobile Software Development] JVH3:
Looks like I can look here:

HKLM\System\State\Shell\Notifications\Active

And

HKLM\System\State\Shell\Notifications

Wondering if I need to relate them to HKCU\ControlPanel\Notifications

Currently at HKLM\System\State\Shell\Notifications

A877d65a-239c-47a7-9304-0d347f580408

A877d660-239c-47a7-9304-0d347f580408

b3a81802-9095-4b4b-8713-7d65b6fb8bbC

And at HKCU\ControlPanel\Notifications

A877d65a-239c-47a7-9304-0d347f580408 Default = Messaging: New Email Message

A877d660-239c-47a7-9304-0d347f580408 Default = Phone: Missed Call

b3a81802-9095-4b4b-8713-7d65b6fb8bbC Does not exist

So, I think I can get all keys at

HKLM\System\State\Shell\Notifications

Verify they exist at

HKCU\ControlPanel\Notifications

to determine the number of non dismissed notifications.
[Windows Mobile Software Development] JVH3:
Finished - App works

I have implented the algorithm and done some limited testing.

Attached is a cab will install an exe that will launch the volume control.

It should work under all circumstances.

All it does is launch the volume control, so you still need a keymapper to launch it.

It also creates a shortcut on the start menu
[Windows Mobile Software Development] blast0id:
awesome... will try it out and let you know!
[Windows Mobile Software Development] Mikenif:
No luck here on my blackstone

But then again htcvolumecontrol doesnt pop up when i tap the windowsincon in the dropdownmenu so it might also be the version im using.

What htcvolume & sharedresources packages are you using?
[Windows Mobile Software Development] JVH3:
I don't know the specifics, because I use ROMs by NRGZ28.

But, I think he cooks in the Leo Volume Control, which works with out anything special on the Raph, Topaz, and Leo

And I am not sure what shared resources are used.

I think you are aware of this, but just so others also are aware.

The cab does put anything in place to handle the button presses. It is just an exe to launch the volume control and a shortcut to it. A keymapper program is needed to launch it.
[Windows Mobile Software Development] Mikenif:
Yeah the cab does its work perfectly. I can see the dropdown pop up but htcvolume seems dead. I remember having a volume package that did show up when tapping the win-icon in the dropdown. but the latest leo 2.07 doesnt anymore.

Ill ask NRGZ to see which ones hes using. thanks for this man. if it works for me ill definitely show some love through paypal:D
[Windows Mobile Software Development] Mikenif:
Eureka! Its working:D

Now all thats left is to find a button mapper that launches it nicely. Using AEBplus now but it doesnt launch it speedy enough.

Any tips?
[Windows Mobile Software Development] blast0id:
someone in the NRGROM thread reported that it isn't working with some btnotifier icon fix they are using... just thought I would mention it here... I have no need for a btnotifier icon fix, so it doesn't effect me.
[Windows Mobile Software Development] wmg316:
Tarkim's key remapper says to install SdkCerts before installing the key remapper...is SdkCerts already in Energy ROMs?

I don't suppose you will be making a cab to have this installed fully functional (i.e., SdkCerts, Tarkim's remapper, your LaunchVolumeControl?).

This sure would be nice cooked into Energy's ROMs!
[Windows Mobile Software Development] JVH3:
SdkCerts is already in cooked into Energy ROMs.

I am actually looking actually having my exe handle the vol up and vol down key presses.

The issues are:

The app has no UI, so no window.

Once the volume control is launched, then I need to not override the volume buttons, since the volume control is HTC's and not part of my program.

And apps that use the volume buttons need to continue to work.

And if I implement all those rules, It's almost like I implemted Tarkins key remapper.

So, I might just make a cab that puts the registry entries in so it works with Tarkin's.

Or just include them in the cab, since they should not cause a problem if Tarkin's is not installed.

But, since Tarkin's is Raph only, it might be better to have it as a seperate cab.

I
[Windows Mobile Software Development] JVH3:
I am using Tarkin's key remapper.

But, I still think it could be faster.

My app is an exe that runs and exits.

If I can figure out a good way to implement the handling of the button presses myself, it will be faster, because the exe will already be running.
[Windows Mobile Software Development] blast0id:
tarkim's remapper is available for rhodium and a couple other devices, but I think the other devices don't have the issue we have...
[Windows Mobile Software Development] JVH3:
Might have found something

http://www.codeproject.com/KB/cs/globalhook.aspx

Looks promissing for figuring out how to handle keyboard events, except it's not windows mobile.

Hopefully I can use some of it. After reading a little more, it sounded less promising. But, maybe.

Ok, that link was kind of a waste of time. Cool for desktop programming though.

This one might be better.

http://msdn.microsoft.com/en-us/magazine/cc188736.aspx

Maybe this is better: http://blog.opennetcf.com/ayakhnin/PermaLink,guid,84b95802-76d7-499c-b266-e2251ab15706.aspx

Possible without eMbedded C++
[Windows Mobile Software Development] ramdroid77:
please check out this one:

http://xdaforums.com/showpost.php?p=5706511&postcount=164
[Windows Mobile Software Development] JVH3:
Only thing that doesn't work with yours is that when launched, the volume hardware buttons don't work.

But it does launch faster.

What did you do to launch it?

[EDIT]

It sometimes disapears really quick too.

And I have seen a few graphical issues on the control itself.

It was launching consitently, until I launched it from the Taskbar.
[Windows Mobile Software Development] ramdroid77:
recently I flashed with a new ROM containing the HTC Volume control and then figured out it's rather simple. there's a window called VOLUMECONTROL which I'm just trying to show up. well it seems it's not that simple because I heard it doesn't really work with everyone. Seems there's some initial commands required to send to the window when activating, i.e. the timer to automatically close the volume control after few seconds isn't initialized. and some graphics errors on some devices, however it's looking fine on mine. currently I don't have anymore ideas. maybe someone else can go on from here and discover some more?
[Windows Mobile Software Development] JVH3:
I'll have to check that out at home.

I wonder why the Volume Buttons don't work when activated through your exe, but do with mine.

I would think if it is the same window, then it should process the button press messages the same.
[Windows Mobile Software Development] JVH3:
Probelm found

If blue tooth is enabled, and the blue tooth icon is displaying, it does not launch correctly.

99DE7411-772F-43D0-81F0-668336CA651B exist only at HKLM area and not in th HKCU area

must be for Blue Tooth

will disable Blooth and check

[EDIT]

Verifified that this does not exist when blue tooth is enabled.

I will need modify my code.

[/EDIT]
[Windows Mobile Software Development] mnet:
same problem also when headset is plugged and headphone icon is in taskbar.

also youtube playback is stopped when launching volume control.

btw, i think the newer version of volume_control does not use the volume icon so perhaps it would be better to reverse those and see how they launch the volume window?
[Windows Mobile Software Development] pckshd:
This will happen because the volume screen will steal focus from youtube app, making it pause. I had that issue resolved with this shareware app http://volumex.jdbp.mobi
[Windows Mobile Software Development] mnet:
i did some testing on my HD and it seems the incompatibility between newer volume control versions and older devices lies in the keypad.dll driver. if i replace my keypad.dll with the topaz 2.53 version, the down volume button works with htc volume control, but not the up volume button!

also newer htc volume control has RegisterKeyboard registry key that seems to activate the newer method of activating volume control via keypad.dll

i am using Volume_Control_2_2_20121229_00
[Windows Mobile Software Development] ramdroid77:
thanks for information. didn't know there's so many differences between the versions. explains why my solution isn't 100% working for everyone...
[Windows Mobile Software Development] mnet:
perhaps the best solution is to port keypad.dll from topaz/rhodium to older devices

using topaz 2.53 keypad.dll on blackstone, all buttons work except the vol up. vol down works but behaves erratically (with both native wm and htc volume control)
[Windows Mobile Software Development] JVH3:
I made an update and I am attaching a cab to the first post.

It is now expandable if later exclusions need to be added.

By default it will now exclude the bluetooth indicator.
[Windows Mobile Software Development] NRGZ28:
So... any assistance I can provide ? Maybe different hTC volume builds or something ?
[Windows Mobile Software Development] bp787:
so this may be a dumb question, but I just flashed to NRG's latest Feb 26 sense 2.5 rom. Previously, I was able to assign the vol buttons to the HTC volume program using the "Buttons" link under Start -> Settings -> buttons.

I don't see the vol button assignment anymore. What should I use instead?

I did install the cab. It launches fine and works well. :)
[Windows Mobile Software Development] JVH3:
You would have also needed to install Tarkin's key remapper.

I don't recall the Volume keys being mappable by default.
[Windows Mobile Software Development] admaximum:
I need help!

Hi!

I need help!

I have HTC Quartz (MAX 4G) with new custom ROM WM 6.5.3 (6.5 Professional OC CE 5.2.23548 (Build 23549.5.5.0)

Manila 2.5.20113626.0.

The problem with HTC volume is solved (new HTCVolumeControl.dll) but I have new problem wiht other programm - AlReader

Before, when AlReader was loaded, i could use volume's button to manage texts scrolling, but now i can't - only HTC Volume.

If i change HTCVolumeControl.dll to another version - in AlReader-OK, but HTC Volume don't work.

I think, my problem is in HTCVolumeControl.dll. Maybe it is possible to make some exception for this program (Alreader) with WindowClass

or something else...

Unfortunately, i don't know, how i can edit this dll.

I'll be much grateful for any advice or help.

If they need, i'll load here this dll. and AlReader`s files.

Thanks

PS Sorry for my English :)
[Windows Mobile Software Development] mnet:
can you upload the new HTCVolumeControl.dll
[Windows Mobile Software Development] admaximum:
Workng only like HTC Volume

cab. + launcher

View attachment HTC_VolumeCtl.cab

View attachment LaunchHTCVolumeControl.cab

Working only like WM Volume & in AlReader

View attachment HTCVolumeControl_working_In_Alreader.zip
[Windows Mobile Software Development] JVH3:
It looks like my exe is in the LaunchHTCVolumeControl.cab that you posted. Unless someone else wrote an app that looks in a registry section JVH3.

But that other cab rocks. HTC_VolumeCtl.cab

It launches the HTC Volume Control with the latest Energy ROM Raph 23554 April 8th GTX theme.

Must tap the clock in the upper right corner. Then tap the volume icon.

Then the volume control will start working from the buttons.

And will continue to do so.

Now I just need to make an exe to do this on startup.

Thank you for this post.
[Windows Mobile Software Development] mwalt2:
Looking forward to that :).
[Windows Mobile Software Development] blast0id:
maybe you can use a button mapping program like AEButton and set an exception to not remap the button when AIReader is loaded... or if that doesn't work, set it to scroll up/down when AIReader is open instead of controlling volume...
[Windows Mobile Software Development] mnet:
i can't test this right now because i'm not running 6.5.5

but try this regkey and see if perhaps it will work even without initial launching from the taskbar

[HKEY_LOCAL_MACHINE\Software\HTC\VolumeOverlay]
"RegisterKeyboard"=dword:00000001
[Windows Mobile Software Development] JVH3:
Just tried it. Didn't work. Thanks though.
[Windows Mobile Software Development] admaximum:
Sorry, but AEButton doesn't work quite with volume buttons in my ROM...
[Windows Mobile Software Development] blast0id:
maybe you could try "volumex" I think it has "exceptions" so you could add AIReader as an exception... I didn't have the best of luck with that program and ended up using tarkim's key remapper... but I don't think he has one for quartz...
[Windows Mobile Software Development] admaximum:
Sorry, i just have to try "volumex", it work, but not stabile and haven't "exceptions"...

Thanks a lot for trying to help me. But i think, i have to go back to WM 6.5

I found one more problem in WM6.5.3 Lingvo dictionary doesn't work correctly.

It`s important for me.

I'll try later.

thank you, people!
[Windows Mobile Software Development] JVH3:
Updated post #1 to include the HTC_VolumeCtl.cab posted by admaximum.

With that cab and the cab I created. The HTC Volume Control can be started by the Volume Keys on a Fuze.

Just run the shortcut to the exe that I created from the start menu once to launch the control.

From then on, you can just use the Volume Keys.

Or copy that shortcut to the Windows\Start Up folder.

Then after a soft reset it will launch and be ready right away, without needing to do anything.
[Windows Mobile Software Development] Kameirus:
awesome job Guys

just one question how do i copy that shortcut from the start menu

nevermind lol figured it out
[Windows Mobile Software Development] JVH3:
I used total commander.

With Energy ROMs it's right on the start menu.

Then the shortcut to the exe is at Windows\Start Menu\Programs

the name is

Shortcut to LaunchHTCVolumeControl.exe.lnk

Copy that to Windows\StartUp
[Windows Mobile Software Development] Kameirus:
cool thanks alot for the great work ..cause i hate the look of the wm volume control
[Windows Mobile Software Development] admaximum:
Cabs i had uploading are from 4pda.ru

Thanks f_pasha, e202,Ultraslonic
[Windows Mobile Software Development] nelsonw:
Buttons

Hi, I Lost "Back" Hardware button and directional arrows on my Fuze... this is supposed to happend? Thanks!
[Windows Mobile Software Development] JVH3:
I've been trying to handle these with Tarkin's keyremapper.

It works prettty well.

So, far the only issues I have not been able to handle are down presses where the app is expecting the message from the operating system.

But, if you send the message to the operating system it gets eaten by the volume control.

So, I send it to the active window, but then more of the message goes to the app than just the message that would normally get sent there.

So, those apps end up seeing characterss ( & % and ' when they were not pressed.

I've posted in Tarkin's thread. I am hoping there is a solution. Maybe he can modify the remapper to send the message to the active window that normally would make it to the active window if the message were processed first by the operating system.
[Windows Mobile Software Development] blast0id:
Tarkim with an M... lol... =P
[Windows Mobile Software Development] JVH3:
whoops.

I think I've posted Tarkin about 50 times.
[Windows Mobile Software Development] blast0id:
I know, that's why I couldn't take it anymore =P