Forum Replies Created
-
AuthorPosts
-
May 11, 2013 at 2:48 am #191070StringMember
@Chike wrote:
You gotta be cruel to be kind, in the right measure.
Just wanted to pop in and say, cool song reference there Chike!
March 18, 2013 at 1:31 am #181165StringMemberI believe that is TWiZA’s program. If he doesn’t see this thread, send him a PM. You might also want to view this thread.
March 7, 2013 at 9:44 pm #175138StringMember@deeva2 wrote:
can we add more than one right answer?
I don’t believe the version you have has the ability to have two or more correct answers.
March 4, 2013 at 8:54 pm #175143StringMember@deeva2 wrote:
” us% currently has pt%”
“The winner is us% with pt%”
nor do these work. How do I use them?In this case, us% is the User or person who answered correctly. pt% would be the Points they have scored for the question or their total score.
In other places, the sn% means Screen Name.
As to why it wont post to the room..I’m not able to look at the code at the moment, but Loco or someone else will help you.February 25, 2013 at 8:55 pm #174876StringMemberNice clean layout.
I also agree with Chike on uploading it to the forum instead of using mediafire. Just remove old files as you update and upload new files.
February 23, 2013 at 4:40 am #186627StringMemberI’ll try to help here, but I’m not really sure where your at or what your question is exactly.
@ChiNa-Man wrote:And this is where I am stuck:
Code: Select all
if status is away:
if wasn’t away before: remember all openned PMIf I understand correctly, It’s easy to know when you are Away since you change your status to Away via your own program.
So, In your timer :
If Away = True Then
Code for logging open pm’s or “remembering” them.
End IfFebruary 19, 2013 at 10:41 pm #186642StringMember@ChiNa-Man wrote:
1) Do I still have to use the find “Window” class method? And maybe attach your code into it… Or should woek on your code and simply delete the find “Window” by class method?
2) If I use the little peace of code you provided, how can I make it send the PM TITLE (ONLY) to a TEXTBOX?
Your still using FindWindow, only its FindwindowEx.
I modified Chikes code a bit and made it into a Sub. It Adds all open pm windows Title and Handle to a listbox titled Listbox1.
Just call the GetPMWindows sub and it will populate the listbox with any open pms
Public Sub GetPMWindows() Dim sb As New StringBuilder(256) Dim hWnd As IntPtr = IntPtr.Zero While True ' find window on desktop after hwnd, sero mean first hWnd = FindWindowEx(IntPtr.Zero, hWnd, "DlgGroupChat Window Class", vbNullString) If hWnd = IntPtr.Zero Then Exit While ' no more windows sb.Length = GetWindowText(hWnd, sb, sb.Capacity) Dim str As String = sb.ToString() If str.Length = 0 Or str.EndsWith(" Room") Then Continue While ' continue to next window if error or room window If Not ListBox1.Items.Contains("WinTitle - " & str & " WinHandel - " & hWnd.ToString) Then ListBox1.Items.Add("WinTitle - " & str & " WinHandel - " & hWnd.ToString) End If End While End Sub
February 18, 2013 at 7:55 pm #186649StringMemberI’m interested in seeing your finished product. Keep us updated.
February 18, 2013 at 3:40 am #186652StringMemberHere is a function that will get the title of any DlgGroupChat Window Class ( pm or chatroom )
Public Function FindWindowsTitleText() As String Dim strbuilder As New StringBuilder(1024) Dim PalClass As String = "DlgGroupChat Window Class" Dim hWndMain As IntPtr = FindWindow(PalClass, vbNullString) GetWindowText(hWndMain, strbuilder, strbuilder.Capacity) Return strbuilder.ToString End Function
February 18, 2013 at 2:35 am #186654StringMemberI just noticed that Autopilots room selector dll gets the title of open pm windows. So within that source would be an example of how to do it.
February 17, 2013 at 11:03 pm #190261StringMemberIt shouldn’t be that different. Look at the code and at least try to adapt it to vb6. If you cant get it to work after trying… start a new thread and post the code you have so far.
February 17, 2013 at 10:08 pm #190668StringMemberThis is an update to my previous example. My example above is for versions of pal older than 10.2 485.
The example below is for 10.2 485 and, possibly, newer. I only tested this on 10.2 485.February 17, 2013 at 9:21 pm #190263StringMemberHere is an example on how to do it using vb2010. It may need updated, but it still shows how to add the room nic list to a listbox.
I found this using the forum search 😉
http://www.imfiles.com/topic/how-to-get-names-in-paltalk-room-to-a-listbox/
February 17, 2013 at 1:03 pm #190660StringMember@UnclePaeng wrote:
Im trying to work out with this code below which doesnt seem to work( it only returns this
Ä :WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll
followed by weird characters that i dont understand if i keep on clicking the button).
That is what is written to your Textbox1.Text??
February 17, 2013 at 12:55 pm #186658StringMember@Chike wrote:
Isn’t it more simple just to check the room title to tell if it’s IM window?
I don’t know if it is simpler, but yes that would certainly be another way to do it. The only problem I would foresee would be if there were other DlgGroupChat Window Class‘s that were present that had neither the “Voice Room” or “Private Room” in their title, but were not a PM window either.
-
AuthorPosts