Page 2 of 2

Re: Socket.ahk

Posted: 20 Jun 2020, 17:19
by GeekDude
What Android app are you trying to connect to, and what firewall settings do you have on your PC?

Re: Socket.ahk

Posted: 21 Jun 2020, 04:46
by PublicBenemy
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.

Re: Socket.ahk

Posted: 21 Jun 2020, 06:02
by PublicBenemy
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.

Re: Socket.ahk

Posted: 21 Jun 2020, 08:32
by BoBo
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.

Re: Socket.ahk

Posted: 21 Jun 2020, 08:50
by PublicBenemy
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!

Re: Socket.ahk

Posted: 21 Jun 2020, 09:44
by GeekDude
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

Re: Socket.ahk

Posted: 21 Jun 2020, 14:26
by PublicBenemy
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.

Re: Socket.ahk

Posted: 21 Jun 2020, 18:27
by GeekDude
Happens to everyone on occasion :) Glad you got it working!

Re: Socket.ahk

Posted: 20 Jul 2020, 11:59
by Chiefkes
Edit: Removed post as I had sockets and websockets mixed up

Re: Socket.ahk

Posted: 20 Jul 2020, 17:11
by Chiefkes
Edit: Removed post as I had sockets and websockets mixed up

Re: Socket.ahk

Posted: 10 Oct 2020, 07:20
by BoBo
@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 ?

Re: Socket.ahk

Posted: 10 Oct 2020, 08:38
by burque505
@BoBo, have a look at this MATRIC.ahk gist. Is that what you're looking for? Found it in a reddit link.
Regards,
burque505

Re: Socket.ahk

Posted: 10 Oct 2020, 10:07
by BoBo
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)?!

Re: Socket.ahk

Posted: 10 Oct 2020, 10:21
by burque505
@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

Re: Socket.ahk

Posted: 17 Oct 2020, 10:34
by TheArkive
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.