Search found 23 matches

by uname
23 Nov 2020, 00:55
Forum: Ask for Help (v1)
Topic: AHKSock/Socket.ahk (Winsock), getting IP address/name of the client
Replies: 1
Views: 639

Re: AHKSock/Socket.ahk (Winsock), getting IP address/name of the client

Since the thread is properly named and it's on top of the google search results, here's the brief answer:

AHKsock_Listen() sends all the data required to the registered even handler function, 4th argument is the client IP address.
by uname
01 Jul 2020, 16:36
Forum: Ask for Help (v1)
Topic: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved
Replies: 10
Views: 5777

Re: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved

Thank you!

So all this time my script was missing the lines

Code: Select all

VA_IAudioSessionEnumerator_GetSession(enm, 0, IAudioSessionControl)
ssn := ComObjQuery(IAudioSessionControl, "{BFB7FF88-7239-4FC9-8FA2-07C950BE9C6D}")
ObjRelease(IAudioSessionControl)
By the way, the source was posted here
by uname
01 Jul 2020, 01:50
Forum: Bug Reports
Topic: 1.1.33.00 tray icon no longer pick 16x16 icon automatically Topic is solved
Replies: 4
Views: 2475

1.1.33.00 tray icon no longer pick 16x16 icon automatically Topic is solved

Code: Select all

Menu, Tray, Icon, % executable_path, 1
Prior to 1.1.33.00 the lowest resolution icon from file was used, but since the update the script automatically pick the largest one.
Is that intentional? High resolution icon isn't the most suitable as a tray icon, it's way too detailed.
by uname
21 Jun 2020, 22:02
Forum: Ask for Help (v1)
Topic: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved
Replies: 10
Views: 5777

Re: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved

Can somebody test the code on Windows 10 2004 please.
by uname
15 Jun 2020, 07:49
Forum: Ask for Help (v1)
Topic: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved
Replies: 10
Views: 5777

VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved

Recently I've noticed my main persistent script hangs sometimes, I've traced the issue to the VA_IAudioSessionControl2_GetProcessId call, the script below never show the Msgbox and can be closed by process termination only. IID_IAudioSessionManager2 := "{77AA99A0-1BD6-484F-8BC7-2C654C9A9B6F}" dev :=...
by uname
05 Apr 2019, 13:36
Forum: Off-topic Discussion
Topic: This forum securiity rules ruin forum&program usage experince
Replies: 17
Views: 5136

Re: This forum securiity rules ruin forum&program usage experince

many (if not most users) don't see captchas
So this was just a "discrimination by IP subnet".
Back in 2015 they completely banned my ISP /19 subnet by /16 (if not /9) global ban rule.

Well, what can I say…

Whitelist power!
by uname
05 Apr 2019, 12:45
Forum: Off-topic Discussion
Topic: This forum securiity rules ruin forum&program usage experince
Replies: 17
Views: 5136

Re: This forum securiity rules ruin forum&program usage experince

tank wrote:
05 Apr 2019, 11:43
I have whitelisted your last used IP try now
Now it works (obviously)
But 99.99% AHK users still unable to use default installer properly.
by uname
05 Apr 2019, 11:19
Forum: Off-topic Discussion
Topic: This forum securiity rules ruin forum&program usage experince
Replies: 17
Views: 5136

Re: This forum securiity rules ruin forum&program usage experince

hmmm maybe you're on win 10 i just tried that isolated code and got a secure channel error when i edited and tried the following it works whr := ComObjCreate("MSXML2.XMLHTTP.6.0") whr.Open("GET", "https://www.autohotkey.com/download/1.1/version.txt", false) whr.Send() ;;whr.WaitForResponse() latest...
by uname
05 Apr 2019, 09:00
Forum: Off-topic Discussion
Topic: This forum securiity rules ruin forum&program usage experince
Replies: 17
Views: 5136

Re: This forum securiity rules ruin forum&program usage experince

you may need to clear your cache Installer.ahk used for the program updates using try { whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "https://autohotkey.com/download/1.1/version.txt", true) whr.Send() whr.WaitForResponse() latestVersion := whr.responseText } And there is always...
by uname
02 Apr 2019, 07:05
Forum: Off-topic Discussion
Topic: This forum securiity rules ruin forum&program usage experince
Replies: 17
Views: 5136

This forum securiity rules ruin forum&program usage experince

Yea, I know you're affected by some botnet attack. I think the way you've trying to counteract this is at least annoying an prehaps even wrong. I'm using static IP and Firefox 66.0.2 with default security settings yet I have to bypass cloudflare captcha each time I open the forum despite having the ...
by uname
01 Apr 2019, 06:07
Forum: Ask for Help (v1)
Topic: GUI: input to text file?
Replies: 8
Views: 1594

Re: GUI: input to text file?

Assuming the Gui is created by your script - Just use:

Code: Select all

Gui, Show, NoActivate
by uname
06 Nov 2018, 20:28
Forum: Bug Reports
Topic: dynamic property call
Replies: 3
Views: 1867

dynamic property call

Code: Select all

class c {
    p {
        get {
            return 42
        }
    }
}

MsgBox % {base: c}.p()
For some reason calling a property as a method leads to get execution.

It's been a while since 1.1.16.01, I assume this is intended behavior, but why?
by uname
20 Sep 2017, 03:54
Forum: Bug Reports
Topic: A_ScripDir yields script full path instead
Replies: 3
Views: 1458

A_ScripDir yields script full path instead

A_WorkingDir by default set to scrip full path as well.
Is this intended?
by uname
17 May 2015, 00:48
Forum: About This Community
Topic: Site access
Replies: 3
Views: 4256

Re: Site access

-
by uname
17 May 2015, 00:35
Forum: About This Community
Topic: Site access
Replies: 3
Views: 4256

Site access

Since my ISP subnet was banned I can't even check for binaries updates. Is any workaround exist? Should I join #AHKScript channel and beg for unban each time I want to check for updates? 403 Error 403 - Forbidden Oh noes! Looks like you're on the naughty list. The page you are trying to view is forb...
by uname
28 Apr 2014, 06:30
Forum: Ask for Help (v1)
Topic: [solved] SetTimer to call a Method
Replies: 4
Views: 3875

Re: SetTimer to call a Method

Counter1 := new CounterClass() Counter2 := new CounterClass() return F1::Counter1.Start() F2::Counter1.Stop() F3::Counter2.Start() F4::Counter2.Stop() Class CounterClass { static counter := 0 __New() { static threadIndex := 0 static maxThreads := 2 static labelPrefix := "counter_class" if (++thread...
by uname
23 Apr 2014, 08:38
Forum: Ask for Help (v1)
Topic: Displayig different-level elements of an object
Replies: 6
Views: 2753

Re: Displayig different-level elements of an object

collection := {} collection[1, 0] := "hththt" collection[1, 1] := "dfg" collection[1, 2] := "fgh" collection[1, 3] := "rhtht" collection[2, 0] := "ert" collection[2, 1, 0] := "erty" collection[2, 1, 1] := "ujujuju" collection[2, 1, 2] := "Sandy" collection[6] := "Merry" collection[7, 1, 9, 5, 4, 3,...
by uname
15 Apr 2014, 13:11
Forum: Scripts and Functions (v1)
Topic: GetWeekday
Replies: 6
Views: 3973

Re: GetWeekday

Code: Select all

GetWeekday(month, day, year, locale := 0) {
    FormatTime wday, % ""
       . {StrLen(year)  : "20"} [2] . year
       . {StrLen(month) : "0"}  [1] . month
       . {StrLen(day)   : "0"}  [1] . day
       . " L" locale
    , dddd
    return wday
}

MsgBox % GetWeekday(4,15,14,1035)
;)
by uname
08 Apr 2014, 14:21
Forum: Ask for Help (v1)
Topic: Function/Return is not returning a value Topic is solved
Replies: 1
Views: 1399

Re: Function/Return is not returning a value Topic is solved

ButttonChoice := FirstGui() msgbox %ButttonChoice% ExitApp FirstGui() { static firsGuiButton Gui New, -SysMenu +Owner Gui Add, Button, w90 y10 gButtonEventHandler Default, One Gui Add, Button, w90 y+10 gButtonEventHandler, Two Gui Add, Button, w90 y+10 gButtonEventHandler, Three Gui Add, Button, w9...

Go to advanced search