Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Terabyte
128 discussion posts
As per title, is it possible to customize the text in the tooltip that appears on the DF icon when a function is used?

Currently I am using the application "Audio Switcher" to switch between my main speakers, a cabled headset and a wifi headset. The application has a nice feature that shows the audio playback device icon as tray icon so I know which device is currently active.

Now I have decided to clean up my traybar which contains way too many icons and using a custom DF function to switch audio device would help cut down this one I mentioned above. The problem is that when I run the function with the assigned shortcut the tooltip on the DF tray icon simply says the script being run. Is there any way we can manipulate the message that appears?

For example I would like it to say: "Switched to audio device: XXX" where XXX is the chosen audio device. I have had a look around at all the functions but I haven't seen any that would help me. Did I miss something or there is no way to do that right now?
Feb 3, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There isn't, unfortunately. You could use BFS.Dialog.ShowMessageInfo to show a dialog box with the name of the audio device as a workaround though.
Feb 4, 2016  • #2
User Image
Terabyte
128 discussion posts
I already gave that a try but I don't really want to press the OK button each time I switch audio device. I switch frequently and it would start getting annoying very soon unfortunately ::)

Maybe you can add it to your todo list for the future? 8)

I guess I can create 3 different macros as a work-around and name each with the audio device name, that will do for now. Having the same shortcut cycle through them would be better but I can live with 3 for now :)
Feb 4, 2016 (modified Feb 4, 2016)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Oh! That gave me an idea. If you create three separate functions, then create a fourth script to load the audio device using one of those functions, you should get a notification for the "loader" script, as well as the specific script that switches to the specified audio device.
Feb 5, 2016  • #4
User Image
Terabyte
128 discussion posts
Hmm, I have not looked much at all the functions available and the audio one I'm using is downloaded from the user submitted list.

Which function should I use to run another saved function from within a function?
Feb 5, 2016  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The scripting function to do that would be:

Code

BFS.DisplayFusion.RunFunction("Function Name");
Feb 8, 2016  • #6
User Image
Terabyte
128 discussion posts
Thanks, I'll look into it :)
Feb 8, 2016  • #7
User Image
Terabyte
128 discussion posts
I ended up forgetting and never tested the function mentioned above, but checking the changelog for 9.0 Beta 4 I see that it lists this change:
  • Change: Added a new scripting function to show tray/toast messages

I just tested it and it indeed allows to show a custom message :)
Sep 21, 2017  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad it worked for you!
Sep 22, 2017  • #9
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)