Socket.ahk
Re: Socket.ahk
What Android app are you trying to connect to, and what firewall settings do you have on your PC?
-
- Posts: 6
- Joined: 20 Jun 2020, 16:13
- GitHub: PublicBenemy
Re: Socket.ahk
Thanks for your reply, I didn't expect the master himself to be on duty
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.

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 (35.72 KiB) Viewed 3371 times
Last edited by gregster on 21 Jun 2020, 09:04, edited 2 times in total.
Reason: Link fixed.
Reason: Link fixed.
-
- Posts: 6
- Joined: 20 Jun 2020, 16:13
- GitHub: PublicBenemy
Re: Socket.ahk
When I add the line
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
instead, same error.
Code: Select all
MsgBox, % Verbindung.RecvText()
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)]
- Attachments
-
- Anmerkung 2020-06-21 130202.jpg (44.01 KiB) Viewed 3125 times
Last edited by PublicBenemy on 21 Jun 2020, 08:36, edited 1 time in total.
Re: Socket.ahk
Sollten Forum-Moderatoren solche Links finden, fixen wir diese (sofern nicht zu beanstanden). Also einfach den besagten Post (nachträglich) mit Link versehen.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".
-
- Posts: 6
- Joined: 20 Jun 2020, 16:13
- GitHub: PublicBenemy
Re: Socket.ahk
Ah cool, danke, hab ich gemacht!BoBo wrote: ↑21 Jun 2020, 08:32Sollten Forum-Moderatoren solche Links finden, fixen wir diese (sofern nicht zu beanstanden). Also einfach den besagten Post (nachträglich) mit Link versehen.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".
Re: Socket.ahk
I think the problem may be partially because you have the[] and () reversed in your code.
should be
Please let me know if switching those around resolves your issue or if there are still problems
Code: Select all
Verbindung.Connect[("mail.gmx.net", 25)]
Code: Select all
Verbindung.Connect(["mail.gmx.net", 25])
-
- Posts: 6
- Joined: 20 Jun 2020, 16:13
- GitHub: PublicBenemy
Re: Socket.ahk
Erm. OMG. I sacrified my afternoon to my inability to put brackets in the right order.GeekDude wrote: ↑21 Jun 2020, 09:44I think the problem may be partially because you have the[] and () reversed in your code.
should beCode: Select all
Verbindung.Connect[("mail.gmx.net", 25)]
Please let me know if switching those around resolves your issue or if there are still problemsCode: Select all
Verbindung.Connect(["mail.gmx.net", 25])
I'm dying now for many reasons.
Thank you so so much.
It works.
Re: Socket.ahk
Happens to everyone on occasion
Glad you got it working!

Re: Socket.ahk
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.
Re: Socket.ahk
Edit: Removed post as I had sockets and websockets mixed up
Re: Socket.ahk
@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
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 ?

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

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
@BoBo, have a look at this MATRIC.ahk gist. Is that what you're looking for? Found it in a reddit link.
Regards,
burque505
Regards,
burque505
Last edited by BoBo on 10 Oct 2020, 10:18, edited 1 time in total.
Re: Socket.ahk
That's it! Thx a lot. You've made my day!!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


@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
@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
Regards,
burque505
Re: Socket.ahk
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.
« Portable AHK Installer » | « CallTipsForAll » | « All Scripts by TheArkive » | « TheArkive on GitHub »
Return to “Scripts and Functions”
Who is online
Users browsing this forum: No registered users and 23 guests