Socket.ahk

Post your working scripts, libraries and tools
PublicBenemy
Posts: 5
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 2915 times
Last edited by gregster on 21 Jun 2020, 09:04, edited 2 times in total.
Reason: Link fixed.
PublicBenemy
Posts: 5
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 2669 times
Last edited by PublicBenemy on 21 Jun 2020, 08:36, edited 1 time in total.
BoBo
Posts: 3316
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: 5
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: 879
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: 5
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: 22
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: 22
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

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Bing [Bot] and 18 guests