Thread: detecting if touch screen.

  1. #16
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    Quote Originally Posted by elysia
    Stop treating users like idiots. If they give an answer, obviously you should treat that as truth. Who the heck (save for hackers maybe) enters wrong information on purpose?
    a luser that does not know the correct answer ? a luser that needs a third choice or more to meet their situation ? some miscreant looking to phuck up the system ? some cracker looking to steal the owners goodiez ?

    if you can poll the hardware to get the factual answer why poll the luser ? rolling on ground laughing and giggling back orpheus off . "poll the luser" i just realized how dirty alternate meanings that has. meow!! "poll the hardware" mechanicallitity like bestiality with machines. <wets fur>

    Quote Originally Posted by phantomotap
    Can you please tell us if you ever release a bit of software for "Android" telephones?
    yes i can tell you if i have ever released a bit of software for the "android" telephone . question answered fully and completely.

    I only ask because I want to make sure I don't accidentally install anything you code.
    installing software on purpose is much better . an should it have been coded by me is even better . at least for me monetarily meow. sure the programs i make have bugs at first and ester eggs and rats but when they are released the bugs have been worked out <most of them> .

    why would you choose an android ? it is not a real android ? it is not atonomouse . it is not self propelled or able to move on its own. you have to carry it everywhere . it does not have wheels or is a biped or quadraped . heck is not even quadrophonic or have a quadcore processor. it is no better than a quadriplegic . it is not amphibious or phibious or have tank tracks .

    are you afraid i might code your touch screen go "oh gawd oh gawd ohhhh ggaaaawwwwdddd more oh gawd ah ohhhh ggggaaaawwwwdddd!!!!" ? when you touch it ? cuz you know i just might! meow!

    pick on the way i code and i can pick on your choice of cellphone. even.

    thank you for your suggestions
    <whiteflags> You foolishly believe in people and this feeling must be crushed.

    i have gotta get me a bunch of monsantos gmos == genetically modified orgasms .

  2. #17
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    if you can poll the hardware to get the factual answer why poll the luser ? rolling on ground laughing and giggling back orpheus off . "poll the luser" i just realized how dirty alternate meanings that has. meow!! "poll the hardware" mechanicallitity like bestiality with machines. <wets fur>
    You need help.

  3. #18
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    std::cout << "are you telling the truth? (1/0) " << std::endl;
    std::cin >> telling_truth;
    std::cout << "are you sure you are telling the truth? (1/0) " << std::endl;
    std::cin >> sure_telling_truth;
    I think he's kidding...


    are you afraid i might code your touch screen go "oh gawd oh gawd ohhhh ggaaaawwwwdddd more oh gawd ah ohhhh ggggaaaawwwwdddd!!!!" ? when you touch it ? cuz you know i just might! meow!
    ...never mind? o__O What the ........ are you talking about?

  4. #19
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    are you afraid i might code your touch screen go "oh gawd oh gawd ohhhh ggaaaawwwwdddd more oh gawd ah ohhhh ggggaaaawwwwdddd!!!!" ? when you touch it ? cuz you know i just might! meow!
    ...never mind? o__O What the ........ are you talking about?

    touchscreen gag prank joke explained .

    step 1.
    acquire victims cell phone that has touch screen with out the victims knowledge
    step 2.
    install touchscreenscreamingorgasm.exe on victims touchscreen cell phone. again with out victims knowledge. victim will find out soon enough.
    step 3.
    execute touchscreenscreamingorgasm.exe . program will run silently in the back ground. for now. turn speaker volume all the way up.
    step 4.
    hand cell phone loaded with running joke back to victim.
    step 5.
    wait 5 minutes. during this time take victim to public crowded place. why should you be the only one to enjoy the victims surprise ?
    step 6.
    ask victim to look something up online. requires use of touchscreen.

    at this point victim take out phone and touches touchscreen . the program touchscreenscreamingorgasm.exe already running detects the touch. then the program plays over all speakers the screaming orgasm "oh gawd oh gawd ohhhh ggaaaawwwwdddd more oh gawd ah ohhhh ggggaaaawwwwdddd!!!!" ! or if it happen to be a .mp3 sound file or .wav sound file i made it would sound more like this "meeeeoowwww ggaaaawwwwddeessss oh meeeeoowwww ggaaaawwwwddeessss!!!!" for the personal touch.

    step 7.
    watch crowd laugh and enjoy. < remember you asked for it >

    how do you know that the os is running the correct part of the code designed for that os with out polling the hardware which os it is running ?
    <whiteflags> You foolishly believe in people and this feeling must be crushed.

    i have gotta get me a bunch of monsantos gmos == genetically modified orgasms .

  5. #20
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    I simply cannot express my feelings at seeing this thread pop up again. They seem to lie somewhere between awkward amusement and morbid curiosity.

    So to satisfy both extremes, I just have to ask:

    Was the "touchscreenscreamingorgasm.exe" just an incidental joke aimed at phantomotap, or is this the actual application which prompted this thread in the first place?

  6. #21
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    I hope not; that's already my ringtone.

    Soma

  7. #22
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    the program that prompted this thread was a graphics program not as good as turtle graphics. already your ring tone doh. should have known. but i would like to know how you got the "meeeeoowwww ggaaaawwwwddeessss oh meeeeoowwww ggaaaawwwwddeessss!!!!" ?
    Last edited by kryptkat; 06-30-2012 at 11:20 AM.
    <whiteflags> You foolishly believe in people and this feeling must be crushed.

    i have gotta get me a bunch of monsantos gmos == genetically modified orgasms .

  8. #23
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    feather duster...

    Soma

  9. #24
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    What would the C Board do without it's cacographic, gutter minded, cat crazed members?

  10. #25
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    meow!
    Attached Images Attached Images detecting if touch screen.-69827-2-jpg 
    <whiteflags> You foolishly believe in people and this feeling must be crushed.

    i have gotta get me a bunch of monsantos gmos == genetically modified orgasms .

  11. #26
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Meh ... that's an alright picture ... but check out my Donovan playing "Race Car."

    detecting if touch screen.-racecar-cat-jpg

  12. #27
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    detecting if touch screen.-cat-png

  13. #28
    Registered User
    Join Date
    Mar 2007
    Posts
    142
    Just in case one of those cats care if they can use C on the iPhone, here is how you obtain MAC address of the device.

    Code:
    #pragma mark -
    #pragma mark Private Methods
    
    // Return the local MAC addy
    // Courtesy of FreeBSD hackers email list
    // Accidentally munged during previous update. Fixed thanks to erica sadun & mlamb.
    - (NSString *) macaddress{
        
        int                 mib[6];
        size_t              len;
        char                *buf;
        unsigned char       *ptr;
        struct if_msghdr    *ifm;
        struct sockaddr_dl  *sdl;
        
        mib[0] = CTL_NET;
        mib[1] = AF_ROUTE;
        mib[2] = 0;
        mib[3] = AF_LINK;
        mib[4] = NET_RT_IFLIST;
        
        if ((mib[5] = if_nametoindex("en0")) == 0) {
            printf("Error: if_nametoindex error\n");
            return NULL;
        }
        
        if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) {
            printf("Error: sysctl, take 1\n");
            return NULL;
        }
        
        if ((buf = malloc(len)) == NULL) {
            printf("Could not allocate memory. error!\n");
            return NULL;
        }
        
        if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) {
            printf("Error: sysctl, take 2");
            return NULL;
        }
        
        ifm = (struct if_msghdr *)buf;
        sdl = (struct sockaddr_dl *)(ifm + 1);
        ptr = (unsigned char *)LLADDR(sdl);
        NSString *outstring = [NSString stringWithFormat:@"%02X:%02X:%02X:%02X:%02X:%02X", 
                               *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), *(ptr+5)];
        free(buf);
        
        return outstring;
    }
    Source: stackoverflow.com.

    The UI part of the code needs to be in ObjC as the UI frameworks are all in ObjC. The invisible parts of the application can use crypto, compression, image manipulation, networking, file/database manipulation libraries like ZLIB for example as they are, pure C, no problem. You can call C functions from ObjC methods and vice versa since ObjC is just a superset of C.

  14. #29
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    I'm all for bragging I suppose... but this is clearly about bragging about cats now!

    Soma

  15. #30
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Cat owners ... we're a strange bunch. You kind of have to be to rationalize loving a tiny dangerous (albeit cute) predator with a bad attitude.

    @phantomotap: That "feather duster" comment you made above cracks me up anew each time I see it!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sharp Color 24Bit LCD Touch Screen... coding question.
    By RobertD in forum C Programming
    Replies: 5
    Last Post: 05-15-2011, 06:09 PM
  2. Detecting Full Screen Mode
    By ldd7812 in forum Windows Programming
    Replies: 2
    Last Post: 05-29-2008, 10:36 PM
  3. Touch Screen Monitor Program
    By EWTexas in forum C++ Programming
    Replies: 12
    Last Post: 09-18-2006, 02:17 PM
  4. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM