How to trigger some thing when we get the mic?

You can talk about VB programming here

How to trigger some thing when we get the mic?

Postby method » Thu Jun 22, 2006 5:43 am


Hi all. is there a way to detect when we get the mic ,like by button status change or by looking at our name position and then baced on that for example send a perticuler text to the room. I be happy if some one show me how i can detect getting mic.Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby locohacker » Thu Jun 22, 2006 6:49 am

man those listview questions are hard, I dont think we know that one yet :(
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4363
Joined: Fri Dec 31, 2004 6:59 pm

Postby method » Thu Jun 22, 2006 6:58 am

locohacker wrote:man those listview questions are hard, I dont think we know that one yet :(



There should be good programs around that build u codes so u can talk to external applications ,since many sofware comapanies they do not share their source code and u want create adds on and u get in to problem .

Also Not many tutorials about this topic !!! There should be standreds to achive these tasks and i think IT world is still a sleep and only focousing on updating windows and releasing .net , .shit .this , .that ,.... loll
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby locohacker » Thu Jun 22, 2006 8:13 am

I think Dody mention once about it can be done with c# but I havent gone into that yet. this summer I gonna try again to learn it :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4363
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Thu Jun 22, 2006 12:12 pm

You can try to do the capture mic status, U know in paltalk room when U take mic, the icon status is red and when you lose mic the icon is green. U have just compare pixel if red that mean u have mic else you dont

I have done it and yep it work i can detect if I lose mic.

but that solution is not standar :lol:

loco if you want to learn c#, i think U have cho check MFC because MFC is GUI application similar c# or vb or delphi, you have toolbar to add button,textbox to your form ect..., plus it's c programming, U can access all api and very powerful and you can mix managed code with native code. I have learn many programming language and mfc is the language I will chose to make my future app 8)
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Thu Jun 22, 2006 1:48 pm

Nano that is what i had in mind to detect the changes of button but do not know how. what u mean it is not standred ? does it work corectly all the time? could u show us the working code ? the icon is image button it changes when we have the mic and we loose the mic. If it was text over button i think it was easier but it is image swapping!Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby locohacker » Thu Jun 22, 2006 2:08 pm

I will try lol its sumer so its beaches girls drinking lol joke i got a wify but i give it ago :) and wha is the mfc thats like microsoft visual studio 2005 right?
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4363
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Thu Jun 22, 2006 3:07 pm

mfc=microsoft foundation class library

yep U can have it in vs2005
if you know mfc i think you can code every language 8) like after you can go with SDK(win32). there is not really different between mfc and win32, both u have access direct api. win32 u can do an application console.


method there a some code on net you can use to compare image pixel, and capture button maybe loco code about capit, I didn't check his code but i think you can learn from that how to capture a window.
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Thu Jun 22, 2006 3:50 pm

nanomachine007 thank u for u explantion but how often should i take snap shot of button(fiexed region) to do the comparason? i could have 2 pics one for when holding the mic and one when not having the mic and doing the comparasion every seconds?

could u tell me how to do the compare and how often?

loco code does have option of fixed region snap so it is hard to take snap shot of exact location all the time!!
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby BattleStar-Galactica » Thu Jun 22, 2006 5:13 pm

yep you must have two pictures and u must use get window rectangle something like that to get the region of mic status and do the capture.
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Thu Jun 22, 2006 5:15 pm

nanomachine007 wrote:yep you must have two pictures and u must use get window rectangle something like that to get the region of mic status and do the capture.


Man how often to capture and how to do the compare ?
the actual 2 icons are have the same size!! How u do the compare and identify each one when u see all the properties are the same !!
Attachments
pixcel.JPG
pixcel.JPG (53.81 KiB) Viewed 397 times
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby BattleStar-Galactica » Thu Jun 22, 2006 5:30 pm

man you have to get color of your picture, red and green is not the same. look around google, u will find how to get a pixel color 8)
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Thu Jun 22, 2006 5:43 pm

nanomachine007 wrote:man you have to get color of your picture, red and green is not the same. look around google, u will find how to get a pixel color 8)


thank u for u reply . but pixel color of what part of each image ? each part is diffrent with in the same image!!
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby BattleStar-Galactica » Thu Jun 22, 2006 5:51 pm

region 0,0 is ok :lol: btw if you care u must delete your pic in other post cuz i can identify your nick what it is 8)
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests