Search found 933 matches

by hasantr
17 Jul 2022, 02:22
Forum: Ask for Help (v1)
Topic: Can AHK detect when Action Center notifications occur?
Replies: 44
Views: 12217

Re: Can AHK detect when Action Center notifications occur?

Tried to do it but there is memory leaking, therefore I empty working set. Memory leaking may be because I not correct send enumerations https://docs.microsoft.com/en-us/uwp/api/windows.ui.notifications.notificationkinds?view=winrt-18362 But despite of that code is working. Code shows notification ...
by hasantr
08 Jul 2022, 09:16
Forum: Scripts and Functions (v1)
Topic: CPULoad() : CPU usage percentage ( Demos for XGraph )
Replies: 21
Views: 24048

Re: CPULoad() : CPU usage percentage ( Demos for XGraph )

jNizM wrote:
08 Jul 2022, 01:40
hasantr wrote:
06 Jul 2022, 14:27
I see that under Windows 11 it does not produce correct results. Is there an alternative function?
Sure. With PDH (viewtopic.php?f=83&t=104451)
Thank you. This looks very nice. But I won't be able to use it for my V1 Project for now.
by hasantr
07 Jul 2022, 07:16
Forum: Ask for Help (v1)
Topic: Getting Web Content After JavaScript Loaded Topic is solved
Replies: 2
Views: 590

Re: Getting Web Content After JavaScript Loaded Topic is solved

Try this, I learned this technique from @malcev so you can thank him and the jsontoahk function is by @teadrinker HTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") HTTP.Open("POST", "https://nodle.webapi.subscan.io/api/v2/scan/search", true) HTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Window...
by hasantr
06 Jul 2022, 16:30
Forum: Ask for Help (v1)
Topic: Getting Web Content After JavaScript Loaded Topic is solved
Replies: 2
Views: 590

Getting Web Content After JavaScript Loaded Topic is solved

https://nodle.subscan.io/account/4jbHZrRFMM7gUw2zVjh2S7RBbDeeNraFYsnEkTeCd8VL63h8 Loads the above web page content with java script. So I am not getting all the text on the page. I'm trying to get the "balance-text" data. In this example balance is "1.1163816". With ahk the existing methods are gett...
by hasantr
06 Jul 2022, 14:27
Forum: Scripts and Functions (v1)
Topic: CPULoad() : CPU usage percentage ( Demos for XGraph )
Replies: 21
Views: 24048

Re: CPULoad() : CPU usage percentage ( Demos for XGraph )

I see that under Windows 11 it does not produce correct results. Is there an alternative function?
by hasantr
03 Jul 2022, 07:50
Forum: Ask for Help (v1)
Topic: evilC's LogRead Class Getting Rows Read Topic is solved
Replies: 3
Views: 539

Re: evilC's LogRead Class Getting Rows Read Topic is solved

I finally figured out that it works asynchronously. I accidentally solved the problem when I put a 100ms wait every now and then. This was a problem because msgbox kicked in before the process in the class was finished.

I was wrong as I didn't expect autohotkey to execute an asynchronous operation.
by hasantr
03 Jul 2022, 07:33
Forum: Ask for Help (v1)
Topic: evilC's LogRead Class Getting Rows Read Topic is solved
Replies: 3
Views: 539

Re: EvilC LogRead Class Getting Rows Read Topic is solved

Can anyone explain what's going on here? I tried so hard but I really can't understand why. The line read from the log file can never be used outside the function. I even tried using a pointer. I failed. I wanted to assign it to a statement in the class and then retrieve it from there, again unsucce...
by hasantr
03 Jul 2022, 02:17
Forum: Ask for Help (v1)
Topic: evilC's LogRead Class Getting Rows Read Topic is solved
Replies: 3
Views: 539

evilC's LogRead Class Getting Rows Read Topic is solved

Why is this MSGbox blank? I want to be able to get the rows read with a global variable. Any ide? #SingleInstance force #Persistent OutputDebug DBGVIEWCLEAR global LogT lt := new LogTailer("C:\Test.txt", Func("OnNewLine")) MsgBox % Logt return ; This function gets called each time there is a new lin...
by hasantr
03 Jul 2022, 00:31
Forum: Scripts and Functions (v1)
Topic: LoadFile - Load script file as a separate process
Replies: 32
Views: 29029

Re: LoadFile - Load script file as a separate process

Is there a solution to do this kind of operation with AHKV2?
by hasantr
30 Jun 2022, 14:12
Forum: Scripts and Functions (v2)
Topic: Python and AutoHotkey V2 call each other
Replies: 2
Views: 1206

Re: Python and AutoHotkey V2 call each other

This looks really great. Thank you.
by hasantr
25 Jun 2022, 15:29
Forum: Ask for Help (v1)
Topic: Calculation with Mode Topic is solved
Replies: 8
Views: 825

Re: Calculation with Mode Topic is solved

Thank you. It was a very tired day, I was overlooking such a simple thing. I even missed your solution that day, then I figured it out and saw your message.
by hasantr
21 Jun 2022, 02:32
Forum: Scripts and Functions (v1)
Topic: [Class] LongHotkeys (a & b & c & ...)
Replies: 14
Views: 6271

Re: [Class] LongHotkeys (a & b & c & ...)

@Helgef This class looks great. I definitely have to do nice things for myself with it. Thank yo
by hasantr
19 Jun 2022, 07:46
Forum: AHK Studio
Topic: AHK Studio
Replies: 1179
Views: 627720

Re: AHK Studio

@maestrith I just upgraded to AHK Studio from SCITE. So far, it's amazing, but I have one issue. I'm using AHK version H, which works fine as long as there's no multithreading in the script. AHK Studio reads a new thread as an undefined function and throws an error. Is there a plugin I need or a wo...
by hasantr
15 Jun 2022, 13:10
Forum: Scripts and Functions (v1)
Topic: class OpenLocatorCode
Replies: 3
Views: 1210

Re: class OpenLocatorCode

I couldn't use it but it's great that everything needed for AHK is already done. Thank you.
by hasantr
12 Jun 2022, 06:53
Forum: Ask for Help (v1)
Topic: WinHttp.WinHttpRequest Hiding the Error Topic is solved
Replies: 2
Views: 453

Re: WinHttp.WinHttpRequest Hiding the Error Topic is solved

mikeyww wrote:
12 Jun 2022, 05:18

Code: Select all

Try whr.Send()
Explained: Try
I thought of using try. But in this case it won't work.

Edid:

It works fine when you give a separate try command to each line. Thank you.
by hasantr
12 Jun 2022, 04:41
Forum: Ask for Help (v1)
Topic: WinHttp.WinHttpRequest Hiding the Error Topic is solved
Replies: 2
Views: 453

WinHttp.WinHttpRequest Hiding the Error Topic is solved

whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "https://abcdefhslfslfjsfjsfsf.org/") whr.Send() The above code naturally throws an error. But this error stops the process. I want the process to continue. I don't want the error window. I couldn't find which parameter to use. Thank...
by hasantr
10 Jun 2022, 06:44
Forum: Ask for Help (v1)
Topic: Calculation with Mode Topic is solved
Replies: 8
Views: 825

Re: Calculation with Mode Topic is solved

RussF wrote:
10 Jun 2022, 06:37
What is not working? Exactly what do you expect to appear in your MsgBox?

Russ
I expect two increments per loop starting with 5554. 5556 when A_index is 2, 5558 when A_index is 3

I realize that my logic is wrong.
by hasantr
10 Jun 2022, 06:36
Forum: Ask for Help (v1)
Topic: Calculation with Mode Topic is solved
Replies: 8
Views: 825

Re: Calculation with Mode Topic is solved

Loop,16 MsgBox % 5553 + A_Index + !Mod(A_Index,2) In this process "5554,5556,5558,5560,5562,5564,5566,5568,5570" I'm waiting for a result. But why doesn't this happen? Your code works for me, however the sequence I get is not what you are apparently expecting. I get: 5554, 5556, 5556, 5558, 5558, 5...
by hasantr
10 Jun 2022, 06:33
Forum: Ask for Help (v1)
Topic: Calculation with Mode Topic is solved
Replies: 8
Views: 825

Re: Calculation with Mode Topic is solved

Thank you. But I wonder why it's not working. I prefer a one line solution.
by hasantr
10 Jun 2022, 06:02
Forum: Ask for Help (v1)
Topic: Calculation with Mode Topic is solved
Replies: 8
Views: 825

Calculation with Mode Topic is solved

Code: Select all

Loop,16
	MsgBox % 5553 + A_Index + !Mod(A_Index,2)
In this process
"5554,5556,5558,5560,5562,5564,5566,5568,5570"
I'm waiting for a result. But why doesn't this happen?

Go to advanced search