Results 1 to 24 of 24

Thread: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Resolved [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Hai,

    This is sending whatsapp group message through python in pyCharm. That works fine.

    However i need to add action button just below the message, just 3 button, like, dislike and info.

    Is there any possible way to do this, please.

    It will be grateful.

    Thank you!
    ebin

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    24,860

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Why ask a Python question in a VB.Net forum?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Sorry, Since it is coded through Visual Basic Code, i thought i would get help from this forum.

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,250

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    What is exactly coded using VB?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Quote Originally Posted by Arnoutdv View Post
    What is exactly coded using VB?
    The below is the simple code to send message in Python from Visual Basic code.

    However i need to add 2 or 3 button for "like".

    Code:
    import pywhatkit
    
    phone_number = input("Enter  phone number")
    pywhatkit.sendwhatmsg(phone_number, "Test", 12, 6)
    Regards,
    ebin

  6. #6
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,250

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Then “like” must be a method implemented in “pywhatkit”
    Check the documentation

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Yeah... it is not there in the documentation.

    I dont know what would be the module to have Button Facility in Whatsapp Message.

  8. #8
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,250

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    But I still don't see how this VB.Net related.
    The code you posted is Python code:
    Code:
    import pywhatkit
    
    phone_number = input("Enter  phone number")
    pywhatkit.sendwhatmsg(phone_number, "Test", 12, 6)
    https://www.geeksforgeeks.org/introd...hatkit-module/

  9. #9
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    799

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    the library doesn't have this feature but you can create one. some clue here how to send a emoticon. just send a up thumb
    whatsapp - Python pywhatkit emoticon - Stack Overflow
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  10. #10
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    799

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    By the way there are several Nuget Packages for using Whatsapp with .net
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Python extension will be installed in Visual Basic Code.

    And from there python coding like pywhatkit will be executed to send whatsapp messages.

    So in the message i would like to add Button.

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Could you please recommend some to me.

    Regards
    ebin

  13. #13
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,250

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Quote Originally Posted by ebincharles View Post
    Python extension will be installed in Visual Basic Code.

    And from there python coding like pywhatkit will be executed to send whatsapp messages.

    So in the message i would like to add Button.
    What do you mean with installing a Python extension in Visual Basic Code?
    Maybe you are confusing VB.Net with Visual Studio:
    https://docs.microsoft.com/en-us/vis...o?view=vs-2022

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    yeah... I do not see the forums for "Visual Basic Code", so i posted in .Net forum. sorry.

  15. #15
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Visual Studio Code has nothing to do with Visual Basic. Anyways if you want buttons and whatnot, you need a GUI library of some kind. Google should tell how you how to do it in Python. There are several UI libraries for Python and beyond that any additional questions you might have should be asked on forums dedicated to Python. Everyone around here is into VBA, VB6, VB.Net and C#.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  16. #16
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,250

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Visual Studio is an Integrated Development Environment for multiple programming languages.
    You question is not about the VSStudio, but about Python and the specific library you want to use.

    And VBForums is dedicated to Visual Basic (a range of programming languages), not Visual Studio or Python

  17. #17

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Thank you for your kind information. i will search for Python forums. regards, ebin

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    27

    Re: Sending Whatsapp Group Message with Button through Visual Basic Code

    Thank you Niya for your kind information. i will search for Python forums. regards, ebin

  19. #19
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,198

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    There is a dedicated forum here called "Other Programming Languages"
    You can post there and maybe you get lucky.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  20. #20
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Quote Originally Posted by sapator View Post
    There is a dedicated forum here called "Other Programming Languages"
    You can post there and maybe you get lucky.
    Lets be real, it's kinda dead over there. He'd be better of in a Python forum. 99% of the activity here is in the VB6 and VB.Net sections. 1% is in Chit Chat.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  21. #21
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,198

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Last question was May 11th about a python game .
    So it's kinda dead but possibly because no questions are written there. But it is there.
    With what you said about the percentage we probably should not post C# questions either. That is fine, I dislike C# and so do you I guess since you didn't even put it in the 1%
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  22. #22
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Quote Originally Posted by sapator View Post
    With what you said about the percentage we probably should not post C# questions either. That is fine, I dislike C# and so do you I guess since you didn't even put it in the 1%
    Actually you're right. I'd say 98% VB6/VB.Net, 1.5% Chit Chat and 0.5% C#.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  23. #23
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,198

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Post race may be getting more reply's in a good day than all the other threads combined, so I think the percentage is dead wrong (I'm looking for a fight for quite some time now and I don't get one... )
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  24. #24
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: [RESOLVED] Sending Whatsapp Group Message with Button through Visual Basic Code

    Quote Originally Posted by sapator View Post
    (I'm looking for a fight for quite some time now and I don't get one... )
    lmao.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width