- This topic has 13 replies, 5 voices, and was last updated 11 years ago by Chike.
-
AuthorPosts
-
November 9, 2012 at 4:29 pm #186717WinterMemberNovember 9, 2012 at 5:57 pm #186730ChikeMember
Huh? #1 and #2? Are you talking in code?
November 9, 2012 at 6:22 pm #186729StringMemberNovember 9, 2012 at 6:50 pm #186728WinterMemberBut, don’t they have a different index?
Using PAT or JK’s API SPY to know the Windows handle of the place i want to work.
Use API SendMessage to send a text to this Windows Handle, the text Complaint will be change.If my Index is wrong, the Window handle not same with PAT or JK’s API SPY or maybe the PAT or JK’s API SPY is not compatible with Win8.
April 28, 2013 at 2:48 pm #186727dj-psychoMemberHello, Yes the same remark and I’ve the same problem with Win7, I had try to find a solution but until now nothing, the iResult = SendMessageByString(iHnd, WM_SETTEXT, 0, sReason) not working. I thing the paltalk had changed the method for we can’t do the quick bounce. 🙁
April 28, 2013 at 11:29 pm #186726ChikeMemberPlease post the code. It may be you find the wrong window.
April 30, 2013 at 2:57 am #186725AdminAdministratorUmm if i recalled the bn.exe looks for the “Ready to bounce:” window 🙄
here the code anyways 🙂
April 30, 2013 at 8:01 pm #186724ChikeMemberThat’s one big mess of a code. Why use the EnumWindows when simple FindWindow will do? And when you enumerating windows and found what you want you should return false to stop enumeration.
Also you call GetClass twice.May 2, 2013 at 2:12 am #186723AdminAdministratorlol man that’s old I think round 2008 when i first made it but i should update it 🙂 with enum
May 2, 2013 at 11:18 am #186722ChikeMemberIt does use WnumWindows which in this case is over kill.
May 2, 2013 at 11:52 am #186721AdminAdministratorBut I mean using the index instead of title, that prob will fix the windows incompatible issue 🙄
May 2, 2013 at 1:24 pm #186720ChikeMemberWe’re talking about the “Ready To Bounce” window, what index?
May 3, 2013 at 2:29 am #186719AdminAdministratorman the textbox where u put that reason for bounce 🙂 I mean if it can be done by using index 🙄
May 3, 2013 at 2:45 pm #186718ChikeMemberCan? Yes, Should? No.
You only do one FindWindowEx why replace it with EnumChildWindows.
You can also get rid of the EnumWindows and use FindWindow, and replace the four WM_KEYDOWN/KEYUP with a single WM_COMMAND.
And finalyy, clean up the mess, to count use integer not text, instead of just counting search for the window, if it’s there bounce, if not you can still count to decide if to stop waiting wich shouldn’t normaly happen.on load:
enable timer
reset counteron timer:
find window,
if not found increase timer, if timer = x quit
else
bounce and quitno need for doevents and find the window again once its found
-
AuthorPosts
Related
- You must be logged in to reply to this topic.