Jump to content

CFire

Members
  • Posts

    19
  • Joined

  • Last visited

Profile Information

  • Location
    NY

CFire's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. This is pretty cool. I haven't tried it yet but, does it work only for Local Area Networks or for Wide Area or the internet as well?
  2. Does this Chat program work just over Local networks or can it be used over the internet too?
  3. I Updated the File. See Top for Changes. I hope this will fix the Memory issues.
  4. How do you monitor the private bytes of a program?? Is it the Mem Usage in the Task Manager under the processes tab? Also, when you play a new song, are you setting the $pObj = 0 Then setting it to $pObj = ObjCreate("WMPlayer.ocx")? This is something you dont need to do. You actually never have to set any of the objects used in this udf to zero, especially the $pObj. I did some tests and found that if you set the $pObj = 0 and reset it to $pObj = ObjCreate("WMPlayer.ocx") at every song change, the Mem Usage keeps goin up and up by about 600 KB for every song. If you dont do this and just keep the link to WMPlayer.ocx open and just change the song being played, then the Mem Usage Levels off after about 3 songs. I'm going to update my Functions and Example to use a WMStartPlayer() and WMClosePlayer() Functions and make it so you won't have to even deal with the Player Object, $pObj. All you will have to deal with is the Song Object, $sObj, which would be like the Track ID in Sound.au3.
  5. I looked into this a bit further than i had before. I looked to see if there was a way to even close or delete the object but all i found was that the Object variable assigned by the ObjCreate() function is just a pointer to an object not the object itself. And i also found this in the Autoit help file about objects So my guess is that setting $pObj = 0 is the way to go. I also having seen this and trying to test it futher, tried running this on my own and I saw no recurring increase in memory usage from my system. I have no clue what could have caused this for you, but I'm pretty sure it wasn't my UDF.
  6. it sounds like its a problem with your default sound device. both the sound.au3 and wmmedia.au3 use what ever default sound device windows has registered. if you have a sound card and also have an onboard sound device on your motherboard then disable the one you are not using. the onboard one can be disabled in your computer's bios settings. other than that .... i don't know what could be going wrong.
  7. I made a UDF full of functions that replace the Sound.au3 functions. it also has capability of an 'internal' volume comtrol. WMMedia UDF
  8. I have made this UDF with the help of lod3n because i wanted a way to change the volume of output from my program without affecting the rest of the comuter's volume settings. when i found this it gave a ton more than just volume control. Hope you find it useful. It TOTALLY replaces any use of Sound.au3 that is needed in ur scripts. It uses a Windows Media Player Com Object to run everything. I gave an Example script along with it, but these functions are rather simple to use. Edit: (4.12) Made The example script use a fileopendialog Edit: (4.14) Corrected a bug due to the indexing of the StringSplit() function. I just add a '+ 1' at the end of line 203. Thanks birdofprey Edit: (4.24) Changed the way the functions are called. You no longer need to call the Objcreate() function instead that is taken care of in a new function, WMStartPlayer(). The Object Variable is kept track of by WMMedia.au3. You still need to pass a Song Object when needed for certain Functions. When your script is Exiting, Run WMClosePlayer(). Only Opening and Closing the Player once seems to reduce the Constant increase in Memory used by the script. All the functions are the same minus the need to Pass the $pObj to it. Downloads : (4.24) - 124 WMMedia.au3 WMMedia_Example.au3
  9. That script deactivates the parent while being able to work on the child. I was looking for something that makes both the parent and child able to be used but when you drag the parent window over the child it actually goes over it not under it. This Script is an example of what im talking about where the child gui is always above the parent gui. I dont know how to fix it. #include <GUIConstants.au3> Dim $msg $Parent=GUICreate("Parent", 200, 100) GUISetState(@SW_SHOW) $Child = GUICreate("Child", 200, 100, -1, @DesktopHeight/2, 0, 0, $Parent) GUISetState(@SW_SHOW) While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() WEnd
  10. yea that is the same thing i am looking for as well. kind of like when you change the volume on Winamp or Musicmatch or any program like that, they only change the volume for what that program is playing not for the rest of the computer. I havent found anything that does this yet.
  11. I tried something but i'm not quite sure i did it right. do u have an example code that uses this function?
  12. I'm trying to use the setwindowpos api to make a parent gui be infront of its child gui. I tried this but i dont know if i am using it correctly. $Parent = GUICreate("Parent",200, 200) GUISetState (@SW_SHOW) $Child = GUICreate("Child", 200, 200, 100, 100, -1, -1, $Parent) GUISetState (@SW_SHOW) $iRet = DllCall("User32.dll", "int", "SetWindowPos", "Hwnd", $Child, "Hwnd", $Parent, _ "int", 100, "int", 100, "int", 100, "int", 100, "uint", $SWP_NOSIZE + $SWP_NOMOVE)
  13. yea i have tried this script b4 but the only one of the mixers that work is the waveout one and that is changing the system wave volume. it works great for that and im using it now ... but i wanted to see if there was a way around that
  14. This is a cool function. i'm definately incorperating this into all of my scripts
×
×
  • Create New...