Search found 214 matches

by alesyt0h
16 Nov 2021, 06:32
Forum: Ask for Help (v1)
Topic: Security risks of keeping a port open for Socket.ahk
Replies: 4
Views: 745

Re: Security risks of keeping a port open for Socket.ahk

swagfag wrote:
13 Nov 2021, 09:36
who knows...

setup per-port MAC filtering on ur router if ure paranoid about someone else accessing to the endpoint
Good advice! Thank you

But It be possible for someone to "brute-force" that open port to acces my machine or other unwanted things??
by alesyt0h
11 Nov 2021, 11:09
Forum: Ask for Help (v1)
Topic: Security risks of keeping a port open for Socket.ahk
Replies: 4
Views: 745

Re: Security risks of keeping a port open for Socket.ahk

Anyone can bring some light on this?

Thanks!
by alesyt0h
08 Nov 2021, 07:35
Forum: Ask for Help (v1)
Topic: Security risks of keeping a port open for Socket.ahk
Replies: 4
Views: 745

Security risks of keeping a port open for Socket.ahk

Hello all! I have an script that performs several operations on my computer based on the url & parameters sended to my ip. Like http://65.120.20.30:3234/someQuery¶ms=etcetc I can do this using localhost. But I want to open the port so I can do the same while I’m not at home. I’m using the Socket...
by alesyt0h
20 Jul 2021, 05:18
Forum: Ask for Help (v1)
Topic: GetKeyState not working properly
Replies: 4
Views: 407

Re: GetKeyState not working properly

Thank you boiler for this information. I imagined that something like this would be happening. Fixed it remapping WheelRight on logitech software for F20 :D


Thanks all for help
by alesyt0h
19 Jul 2021, 11:56
Forum: Ask for Help (v1)
Topic: GetKeyState not working properly
Replies: 4
Views: 407

Re: GetKeyState not working properly

You're right, I was missing the double quotes around p still the code does not work. Now is executing the while always, even if is just a key press fro 100ms the msgbox pressed for more than 2seconds will fire. I dont know if its something wrong with the key WheelRight for this??? changing the hotke...
by alesyt0h
19 Jul 2021, 09:26
Forum: Ask for Help (v1)
Topic: GetKeyState not working properly
Replies: 4
Views: 407

GetKeyState not working properly

This is my code *WheelRight:: if GetKeyState("LCtrl",P) { pressed := A_TickCount while (GetKeyState("WheelRight",P)) { if (A_TickCount - pressed > 2000){ msgbox pressed for more than 2 seconds return } } msgbox released instantly } Return I'm trying to bind 2 actions to the same key "WheelRight", on...
by alesyt0h
16 Jul 2021, 00:46
Forum: Ask for Help (v1)
Topic: Run unprivileged programs from an admin instance script Topic is solved
Replies: 2
Views: 444

Run unprivileged programs from an admin instance script Topic is solved

Hello. Im trying to run a unprivileged program using Run from inside a ahk which is running in admin mode, the program openned its being opened with admin rights, because its being launched from an admin instance, but I want to open it with no rights even inside an admin script. How can I accomplish...
by alesyt0h
08 May 2021, 06:40
Forum: Ask for Help (v1)
Topic: OnMessage(WM_MouseMove) to work only if gui window is active?
Replies: 16
Views: 1152

Re: OnMessage(WM_MouseMove) to work only if gui window is active?

Without a cycle: OnMessage(0x6, "WM_ACTIVATE") Gui, Show, w300 h300 WM_ACTIVATE(wp, lp) { OnMessage(0x200, wp ? "WM_MOUSEMOVE" : "") } WM_MOUSEMOVE(wp, lp) { ToolTip WM_MOUSEMOVE } I’m not understanding the wp and lp variables, what are they for? And how is wp will be true of I want it only on the ...
by alesyt0h
08 May 2021, 02:15
Forum: Ask for Help (v1)
Topic: OnMessage(WM_MouseMove) to work only if gui window is active?
Replies: 16
Views: 1152

Re: OnMessage(WM_MouseMove) to work only if gui window is active?

Thank you both!

as the boiler post, that is best solution for what I want, inside the loop the winwait will be waiting for that window and not executing any function call to check if the window is active or not and it will not cause an useless cpu usage which that was the main reason.
by alesyt0h
07 May 2021, 19:24
Forum: Ask for Help (v1)
Topic: OnMessage(WM_MouseMove) to work only if gui window is active?
Replies: 16
Views: 1152

Re: OnMessage(WM_MouseMove) to work only if gui window is active?

mikeyww wrote:
07 May 2021, 16:42
You can unregister the function following WinWaitNotActive.
it will be the same as I said with if winactive {

I need to work it when the window is active, and idle when is minimized or non existent.
by alesyt0h
07 May 2021, 15:13
Forum: Ask for Help (v1)
Topic: OnMessage(WM_MouseMove) to work only if gui window is active?
Replies: 16
Views: 1152

OnMessage(WM_MouseMove) to work only if gui window is active?

Hello all I'm using this example on my gui script: https://www.autohotkey.com/docs/commands/Gui.htm#ExToolTip My problem is the OnMessage function is being executed on every mouse movement, even if the gui window is not active, minimized or even destroyed. Yes I know this is how is supposed to work,...
by alesyt0h
19 Apr 2021, 17:54
Forum: Ask for Help (v1)
Topic: If inside expression? Topic is solved
Replies: 2
Views: 283

Re: If inside expression? Topic is solved

Probably the curly quotes is because i wrote this post on the iphone :lol:

Thank you so much !! This is what I was looking for! Didn’t know about the existence of this ternary operator, it looks like a problem solving for many of my scripts where I have lots of lines.
by alesyt0h
19 Apr 2021, 17:17
Forum: Ask for Help (v1)
Topic: If inside expression? Topic is solved
Replies: 2
Views: 283

If inside expression? Topic is solved

Hello.

Im trying to use something like

Output := email . “@” . domain . If(email == examplemail) isvalid = true . ”,” . isvalid

The expected result in output should be:

[email protected],true

But i cant make it to work, tried several ways and none worked.

Any helps? Thank you
by alesyt0h
11 Apr 2021, 04:08
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87919

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

RunCMD() is a rewrite and renamed version of my old StdOutToVar() which was adapted from Sean's StdoutToVar RunCMD( CmdLine, WorkingDir, Codepage, Fn ) RunCMD() runs a console utility in windowless mode and captures its output one line at a time, concatenates them and returns the complete text. The...
by alesyt0h
28 Mar 2021, 11:10
Forum: Ask for Help (v1)
Topic: How to read toast notifications sent by another application?
Replies: 7
Views: 736

Re: How to read toast notifications sent by another application?

mikeyww wrote:
28 Mar 2021, 11:02
Here is some info. I have not attempted it.

https://www.autohotkey.com/boards/viewtopic.php?f=76&t=414
Thank you!! I will try this asap
But I thought that traytip/traytext is old version pf windows notifications not like toast for win10 right?
by alesyt0h
26 Mar 2021, 15:24
Forum: Ask for Help (v1)
Topic: How to read toast notifications sent by another application?
Replies: 7
Views: 736

How to read toast notifications sent by another application?

Hello,

I'm trying to figure this out but I cannot find any thing related to how to read a toast notification.

is this even possible?

Go to advanced search