Socket.ahk

Post your working scripts, libraries and tools
PublicBenemy
Posts: 6
Joined: 20 Jun 2020, 16:13
GitHub: PublicBenemy

Re: Socket.ahk

21 Jun 2020, 04:46

Thanks for your reply, I didn't expect the master himself to be on duty :-D

The app I use for testing is Simple Socket Tester. I also tried to connect to other devices, which I can just telnet in from my desktop computer and see the messages they're sending.

For the firewall, I allowed Autohotkey everything (I think), please see the screenhost attached. I also tried running the script as administrator many times.
Attachments
Anmerkung 2020-06-21 113723.jpg
Anmerkung 2020-06-21 113723.jpg (35.72 KiB) Viewed 3267 times
Last edited by gregster on 21 Jun 2020, 09:04, edited 2 times in total.
Reason: Link fixed.
PublicBenemy
Posts: 6
Joined: 20 Jun 2020, 16:13
GitHub: PublicBenemy

Re: Socket.ahk

21 Jun 2020, 06:02

When I add the line

Code: Select all

MsgBox, % Verbindung.RecvText()
from thise example
https://autohotkey.com/board/topic/94376-socket-class-%C3%BCberarbeitet/?p=603390

I receive this error message (see attached)

Is "10038" an error code according to this?
https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2

Just also tried

Code: Select all

Verbindung.Connect[("mail.gmx.net", 25)]
instead, same error.
Attachments
Anmerkung 2020-06-21 130202.jpg
Anmerkung 2020-06-21 130202.jpg (44.01 KiB) Viewed 3021 times
Last edited by PublicBenemy on 21 Jun 2020, 08:36, edited 1 time in total.
BoBo
Posts: 3821
Joined: 13 May 2014, 17:15

Re: Socket.ahk

21 Jun 2020, 08:32

PublicBenemy wrote:
21 Jun 2020, 04:46
... I cannot add a Link to Google Play Store here, as this forum breaks any link "for safety".
Sollten Forum-Moderatoren solche Links finden, fixen wir diese (sofern nicht zu beanstanden). Also einfach den besagten Post (nachträglich) mit Link versehen.
PublicBenemy
Posts: 6
Joined: 20 Jun 2020, 16:13
GitHub: PublicBenemy

Re: Socket.ahk

21 Jun 2020, 08:50

BoBo wrote:
21 Jun 2020, 08:32
PublicBenemy wrote:
21 Jun 2020, 04:46
... I cannot add a Link to Google Play Store here, as this forum breaks any link "for safety".
Sollten Forum-Moderatoren solche Links finden, fixen wir diese (sofern nicht zu beanstanden). Also einfach den besagten Post (nachträglich) mit Link versehen.
Ah cool, danke, hab ich gemacht!
GeekDude
Posts: 887
Joined: 02 Oct 2013, 22:13

Re: Socket.ahk

21 Jun 2020, 09:44

I think the problem may be partially because you have the[] and () reversed in your code.

Code: Select all

Verbindung.Connect[("mail.gmx.net", 25)]
should be

Code: Select all

Verbindung.Connect(["mail.gmx.net", 25])
Please let me know if switching those around resolves your issue or if there are still problems
PublicBenemy
Posts: 6
Joined: 20 Jun 2020, 16:13
GitHub: PublicBenemy

Re: Socket.ahk

21 Jun 2020, 14:26

GeekDude wrote:
21 Jun 2020, 09:44
I think the problem may be partially because you have the[] and () reversed in your code.

Code: Select all

Verbindung.Connect[("mail.gmx.net", 25)]
should be

Code: Select all

Verbindung.Connect(["mail.gmx.net", 25])
Please let me know if switching those around resolves your issue or if there are still problems
Erm. OMG. I sacrified my afternoon to my inability to put brackets in the right order.
I'm dying now for many reasons.
Thank you so so much.

It works.
Chiefkes
Posts: 25
Joined: 04 May 2020, 20:01

Re: Socket.ahk

20 Jul 2020, 11:59

Edit: Removed post as I had sockets and websockets mixed up
Last edited by Chiefkes on 23 Jul 2020, 06:12, edited 2 times in total.
Chiefkes
Posts: 25
Joined: 04 May 2020, 20:01

Re: Socket.ahk

20 Jul 2020, 17:11

Edit: Removed post as I had sockets and websockets mixed up
BoBo
Posts: 3821
Joined: 13 May 2014, 17:15

Re: Socket.ahk

10 Oct 2020, 07:20

@GeekDude - Hi Philip (that's, by the way, the name of my Grandpa *sigh*) :)
People/users at matricapp.com start using its API more often, so I've asked myself if you would mind providing/posting your matric.ahk script at this forum section (or on GitHub, where I haven't found it too). Well, I've lost the link where I've once downloaded it. So it's hard to refer to it if requested. That'll make even more sense as the developer(s) of Matric have confirmed to set up an AHK-channel at its Discord once people are keen to do trigger matric decks using AHK. Thx for listening. Rgds, Bo 8-)

PS. If it's more convenient for you, I could simply attach matric.ahk to this thread: https://www.autohotkey.com/boards/viewtopic.php?f=22&t=80794 ?
burque505
Posts: 1396
Joined: 22 Jan 2017, 19:37

Re: Socket.ahk

10 Oct 2020, 08:38

@BoBo, have a look at this MATRIC.ahk gist. Is that what you're looking for? Found it in a reddit link.
Regards,
burque505
Last edited by BoBo on 10 Oct 2020, 10:18, edited 1 time in total.
BoBo
Posts: 3821
Joined: 13 May 2014, 17:15

Re: Socket.ahk

10 Oct 2020, 10:07

burque505 wrote:
10 Oct 2020, 08:38
@BoBo, have a look at this MATRIC.ahk gist (link temporarily disabled, see below). Is that what you're looking for? Found it in a reddit link.
Regards,
burque505
That's it! Thx a lot. You've made my day!! :clap: :thumbup:
* Now we have to get GeekDude's confirmation (well, at least I'd like to get it) bc the linked page is tagged as "Secret" and therefore sh-/couldn't be found using GitHub's search.
@burque505 - I've been at that Reddit page before, but haven't seen a link?! Is it possible that links are only displayed if you're logged in (which I wasn't)?!
burque505
Posts: 1396
Joined: 22 Jan 2017, 19:37

Re: Socket.ahk

10 Oct 2020, 10:21

@BoBo, I can't see that link (or even the particular post it's in) if I log out and refresh, so you must be right.
Regards,
burque505
User avatar
TheArkive
Posts: 382
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: Socket.ahk

17 Oct 2020, 10:34

Thanks GeekDude, I am VERY interested in this. Tried the old examples a while ago and they seemed semi-clunky. I will definitely give this a spin.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: fredchf, mcl, robodesign, Sam_ and 25 guests