Scripting for Balloon Pop ups and Alerts

Greetings

I made a bar on the left of my screen with DesktopX with my systray icons and everyone once and a while when something that involves a balloon on my systray come on it comes from the bottom right and not the systray icon it belongs to on the left. Is there a why to fix that?

Also I have a bar for taskbar programs but when someo IMs me nothin happens to the icon to alert me. Is there a way to fix and or code a way for that as well?
3,856 views 3 replies
Reply #1 Top
The MSN one is a good question.. unfortunately I've been unable (as yet) to find a way to get the name of a Window that is asking for attention ("flashing")... But in answer to your first question.. You can either Just drag your Windows Taskbar (unload DesktopX) to the left edge of your screen or.. You can disable Balloon tips completely with a registry tweak (or so I'm led to believe..) You can do this with a DesktopX object too!

Sub Object_OnScriptEnter
On Error Resume Next

Dim WSHShell, n, p, itemtype, MyBox
Set WSHShell = WScript.CreateObject("WScript.Shell")

p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\EnableBalloonTips"

itemtype = "REG_DWORD"

n = WSHShell.RegRead (p)
errnum = Err.Number

if errnum <> 1 then

WSHShell.RegWrite p, 0, itemtype
End If

If n = 0 Then
WshShell.RegWrite p, 1, itemtype
MyBox = MsgBox("Balloon Tips are now ENABLED", 64, "Show or Hide Balloon Tips")
End If

If n = 1 Then
WshShell.Regwrite p, 0, itemtype
MyBox = MsgBox("Balloon Tips are now DISABLED", 64, "Show or Hide Balloon Tips")
End If
End Sub

Sub Object_OnScriptExit
Set WshShell = Nothing
End Sub
Reply #2 Top
The reason why the ballontip appear to point to the bottom right instead to the left where you have your DX systray is probably that the ballontips only recognize the windows system tray and can't tell that it's being called from a custom one. I don't think there's a remedy for that.

As for the taskbar flashing to alert you about IM messages: I'm not sure, I thought DX supported that feature. But I could be wrong. It's be odd if it didn't because ObjectBar is capable of that.
Reply #3 Top
In order to script, this would require you knowing the name of each particular window, then somehow hooking it on iniating then diverting it to the coords you want.

While theoretically possible this is just not practical.