Answer Questions
Zeldacat What is the best way to handle mouse in and out my gadget
Hi, Currently, I get stuck with this problem. What is the best way to detect mouse in and mouse out on live space gadget Inside the gadget, there are many children elements but I only need to know when mouse is out of my gadget and when mouse gets in. Thanks, Bao Nguyen Oh, thanks. Before I tried that but I didn't change the height of p_elSource. It was so unstable mouseover. Sometimes, when I move inside the p_elSource, there are some points it cause mouseout. After changing the height of p_elSource, is works very well! Try attaching onmouseover and onmouseout to your root div (p_elSource), with their respective handlers to do whatever you need done on enter and exit. ...Show All
zdrae using alert() and confirm()
FYI... I recently uploaded an article on LiveSide.net explaining how to use alert() and confirm() from withing your Sidebar gadget. You can view it here . THIS IS BRILLIANT! thank you very much for pointing this out, it would never have occurred to me to use VBScript for anything (and evidently never occurred to whomever blocked the alerts from the gadget API in the first place!). having said that, i agree with the philosophy behind disabling them, and i do not plan to put any alerts in production gadgets. i use it only for debugging (which is all i use alerts for on web pages either come to think of it, but is it ever convenient). milton. ...Show All
David Maynard Question: using activex controls on a gadget
Hi, i am leroy (spydaz) i have recently read the tutorial on windows sidebar gadgets. and the tutorial on sidebar gadgets... Firstly i use VB6 and Ms.Office.2003. i would like to begin building gadgets.. Is it possible to use activex controls on a sidebar gadget. As with regular WebDesign / HTML. ie design the control in VB6 Mycontrol.OCX and use it in a sidebar gadjet. ie: mini Database Form Project... as i saw with the templates available as samples the were all refferenceing then new architecture .net *ExpressEditions. Yes, I also think so.... the important code is in the com, the javascript is not so important, that it should be protected. But I'm new to JavaScript/COM.... I can call com functions i ...Show All
Phil Nicholas How to record from 'Wave' or 'Stereo Mix' in Vista?
Hi all, On Windows XP or earlier, I could capture the audio stream to the speacker not from the external device (maybe endpoint device in Vista) like the microphone. In other words, D irectSoundCapture was able to capture from the selected recording device/source line in the Windows record control utility or mixerXXX APIs. And if "Wave Out Mix" or "Stereo Mix" or something similar was selected as recording source line, D irectSoundCapture was able to record the audio stream to the speacker. However, I could not find the way to do that in Windows Vista. Windows record control utility in Vista is just showing only external devices (endpoint devices) like mic., line-in or S/PDIF in but I could not find "Wav ...Show All
GRK Question about saveTextFile
Dear All: I have a problem about the function FileIO.saveTextFile(stream, callbackFunction). I do not know how to use this function even after read through the HD DVD menu . I want to modify an file "test.txt" when doing action. But when call the function FileIO.saveTextFile(), the stream value is not so clear. I tried to use: var stream = FileIO.CreateTextFile("c:\testfile.txt", True) ; but cannot work. Anyone know how to call this function, kindly give an answer. Thanks a lot. I tried the openTextFile function, but still have some error: (always go to catch(e){} without doing anything ) try var openFileCB = function (stream, errorInfo) { // that function as called as soon as the file is ready for ...Show All
KeithFletcher still DXVA questions
In DXVA_1.01 specification, there are many structures that should be set, such as DXVA_ConnectMode, but I don't know where to set them and how to pass them to accelerator (overlay mixer). How can I know which accelerator type my graphic card supports, MC only or MC +IDCT or MC + IDCT + VLD Wu Hi Kaz: Thank you very much for your generous help. But I still have some other questions about DXVA. There are many structures for Windows Driver Kit: Display Devices in dxva.h, such as DXVA_BufferDescription, DXVA_ConfigPictureDecode, DXVA_MB_Control and so on. Even, no struture DXVA_MB_Control in DXVA1.01 specification, so I am confused. I don't know where to set these structures and where to pass th ...Show All
Dmitry Pavlov Using System.Gadget.Settings
Hi, In my gadget I save a value in my VBScript, how do I re-load this saved value I have: System.Gadget.Settings.Write "Record" , dtmSystemUptimeSecs s = System.Gadget.Settings.Read("Record") But this doesn't seem to work If my uptime is big interger should I use the writeString & readString methods That doesn't seem to work I must be missing something You've got a typo and a type conflict: System.Gadget.Settings.Write "Record", dtmSystemUptimeSecs time = System.Gadget.Settings.Read( "Record" ) Record.innerText = "Record: " & CStr(time) It looks okay to ...Show All
tkroll XMLHTTP help, please!
I have utilized xmlhttp on many occasions to power ajax enabled projects and have never had a problem with it until now. The following javascript code is debugged and runs flawlessly in IE7, but does not work when installed as a gadget. Is there something in here that gadgets do not support but IE7 does function GetXmlHttpObject(handler) { var objXmlHttp=null; var strName="Microsoft.XMLHTTP"; try { objXmlHttp=new ActiveXObject(strName); objXmlHttp.onreadystatechange=handler; return objXmlHttp; } catch(e) { alert("Error. Scripting for ActiveX might be disabled"); return; } } function showDisplay() { var url=" http://www.ourwebsite.com/phpscript.php variable=one"; xmlHttp=GetXmlH ...Show All
MarcoViY Sidebar and gadgets in XP
Hi Is it possible to create a sidebar and gadgets for previous versions of Windows ie XP and 2000 thanks It is possible to get the Vista sidebar to work in Xp but it is not supported by Microsoft. I have seen it working. I'm using microsoft virtual pc 2007 on my XP machine to run Vista and test my gadgets. Why don't I just upgrade my XP machine I have my reasons... bigbadbubba wrote: It would be nice if they would support gadgets on XP. If not, I'll end up having to use either Google or Yahoo. Personally, I'd prefer Microsoft to be cracking on with Sidebar v2 for Vista, there's so much they can do to improve it. XP SP2 may still be support ...Show All
Buddy Funny Will old site remain active?
Will the old microsoftgadgets.com site remain active There are still a lot of old messages that help me and other developers and it would be a great loss if these old posts disappeared. Donavon The previous site will remain for some time so that you can reference content there, and eventually the other SDK content will be updated to point to the forums and dev.live.com. Brian As Brian said, we will leave the existing MicrosoftGadgets.com in a “Read Only” mode for a while so that everyone can access the useful information contained in the forums and gadget posts. We are also looking for a way to migrate the content to a permanent location so that the information can be preserve ...Show All
Ben Paddick Looking for Example of Sliding Control Panel
I'm trying to get a working sample where the control panel (panel of menu buttons) slides up and down from the bottom at any time (on selection). Similar to what was shown in the demo at the CES. I'm trying to use some java script from the popular AJAX style libraries (like Scriptaculous), but so far have had no luck getting it to work. Does anyone have a sample of this type of behavior to share Thanks. I see that your example is driven all from the XML. In my development, the animation has been driven from the JScript. Is there any advantage or disadvantage of doing one or the other You inspired me to write such an example :-) http://blogs.msdn.com/ptorr/archive/2006/07/11/662730.aspx ...Show All
yazoox new XMLHttpRequest() - I'm at a loss
I have programmed a gadget and it works great. I uploaded it to the Live Gallery and then I tested it and it doesn't work anymore. var xml_request = new XMLHttpRequest(); xml_request.open("GET", url, true); <----- breaks here! the url variable is valid. It just stopped working all of a sudden with no code change. All the other gadgets in my sidebar can access the internet just fine. I have no idea why it just stopped working. If I replace it with: location.href = url; it opens the url in IE just fine. I couldn't find anything like that. I tested it in IE and It works in IE. I reverted back to the "working" file and it doesn't work anymore ...Show All
djmikke How to use a specific media source component
Hi All! I am looking for a way of using a specific media source component. When I try to play back a WAVE file on the BasicPlayBack sample, SourceResolver loads WavSource.dll in order to create a MediaSource component. 【Question 1】 In order to create a MediaSource component, how does SourceResolver choose which media source dll to be loaded 【Question 2】 Is there any way for our app to specify a media source dll to use Is there any way not to make other apps use such as MERIT_DO_NOT_USE of DShow filter My best regards. Thanks. A1. The appropriate DLL, at DllRegisterServer (regsvr32) time, will have put an entry in the registry to associate itself with the extension in question (".w ...Show All
volleynerd Bandwidth Monitor
Does anyone if it is possible to create a bandwith monitor sidebar gadget and if so has anyone got any examples I could look at. Regards Ian Hi I looed at the one from http://gallery.live.com/liveItemDetail.aspx li=06a12595-25f3-4a14-9725-0bc6cd5d9872&l=1 but it doesnt see my NIC card and looking at some of the reviews, I am not the only one. Looks as though this is not going to be as easy as I first thought. May have to re think the project through Ian Thanks for the invite, but I'm already on three sites - which is more that enough to keep track of! Hi Running the sidebar as Administrator does make the mo ...Show All
Karim Hemani WMP 11 [beta 2] Ignoring Registry
Can anyone tell me why: In WMP 10, When in the Library you could drop down the Library options menu and choose whether or not you wanted WMP to: -Add music to playlist on double click -Play track on double click -Play all on double click These options edit the registry value: HKEY_USERS\S-1-5-21-760369723-3109637620-2365065613-1007\Software\Microsoft\MediaPlayer\Preferences LibraryDoubleClickQueue = 1 These values are preserved when you upgrade to WMP 11 [beta 1] and are adhered to. For some reason when upgrading from WMP 11 [Beta 1] to WMP 11 [Beta 2] these values are ignored. No matter how you change them the player ignores them; why And why did Microsoft drop the option to access this function ...Show All
