taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

Skype.getContactList().getAllFriends() not working in linux #66

Closed nfacha closed 3 years ago

nfacha commented 8 years ago

Hello Skype.getContactList().getAllFriends() will be empty in linux(ubuntu 14.04) The same code/compiled jar works on windows

FFY00 commented 8 years ago

You can use this:

ContactList contatos = Skype.getContactList(); Friend amigos[] = contatos.getAllFriends(); for(int i=0; i < amigos.length; i++){ ClasseDasVariaveis.numeroContatos++; }

I've tested it in linux, works for me xD

nfacha commented 8 years ago

@FFY00 Not working here:

    public static int getTotal() throws SkypeException {
        int c = 0;
        //Implementacao de https://github.com/taksan/skype-java-api/issues/66
        ContactList contatos = Skype.getContactList();
        Friend amigos[] = contatos.getAllFriends();
        for (int i = 0; i < amigos.length; i++) {
            c++;
        }
        return c;
    }
Cuniq commented 8 years ago

since you guys trying to make something like i allready did you may want to use and even better continue my bot https://github.com/Cuniq/SkypeBot. Bot of the issues here are trying to make something like this.

nfacha commented 8 years ago

@Cuniq I already have my bot running in wondows, i kust need help to get it working on linux on that sepecify method

@taksan

FFY00 commented 8 years ago

@Cuniq me and @nfacha already have a bot running... you can add it if you want to: squirrel.bot

I've tested that code in my Kali Linux (using Debian 7 32bits) and it worked fine: http://pastebin.com/YyYAzs4L