Memory issue

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
killmatt01
Posts: 20
Joined: 25 Mar 2021, 00:12
Contact:

Memory issue

21 Apr 2021, 21:11

Hello there: I am not sure if this is counted as an issue or is mentioned earlier, but when I was running my script, it only use 2~10 Mb of my memory. However, every time if I right-clicked the tray icon, the memory use would dramatically increase to over 100 Mb. I am using unicode 64 bits version. So is this a bug or something else?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Memory issue

27 Apr 2021, 18:40

no such thing is observed when testing with U64

Code: Select all

#Requires AutoHotkey v1.1.33.08
MsgBox
without knowing what script ure running its impossible to say anything. but its probably a problem in ur script
killmatt01
Posts: 20
Joined: 25 Mar 2021, 00:12
Contact:

Re: Memory issue

27 Apr 2021, 19:39

swagfag wrote:
27 Apr 2021, 18:40
no such thing is observed when testing with U64

Code: Select all

#Requires AutoHotkey v1.1.33.08
MsgBox
without knowing what script ure running its impossible to say anything. but its probably a problem in ur script
I didn't post script just because it literally happened to every scripts on my laptop
For example:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Gui, challen_mode: New, +LastFound +AlwaysOnTop -Caption +ToolWindow -DPIScale, Listening ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, challen_mode: Margin, 0, 0
Gui, challen_mode: Color, 333333 ;#333333
Gui, challen_mode: Font, S10 Q5, Microsoft YaHei
Gui, challen_mode: Add, Text, hwndGui_10 vModeChallen c00FF00, Good Bye World ;#00FF00
GuiControlGet, P10, Pos, %Gui_10%
;Gui, challen_mode: Add, Progress, w100 h1 c00FF00 Background333333, 100
Gui, challen_mode: Add, Progress, w%P10w% h5 c333333 Background00FF00 vMyProgress Range0-40, 0
;Gui, challen_mode: Add, Progress, w100 h1 c00FF00 Background333333, 100

WinSet, TransColor, 333333 255 ;#333333
WinSet, ExStyle, +0x20 +0x8; 
Gui, challen_mode: Show, NA

~*K::
    SetTimer, timerex, 500
Return

timerex()
{
    GuiControl, challen_mode: , MyProgress, +1
    ;GuiControl, challen_mode: , MyProgress, 50
    Gui, challen_mode: Show, NA
    GuiControl, challen_mode: +BackgroundcFF0000 +Redraw, MyProgress ;#FF0000
}
Following images show the difference (before and after right click tray icon)
I am testing with unicode 64 bit, both AHK_L UIA and AHK_H
Attachments
Snipaste_2021-04-27_20-36-53.png
Snipaste_2021-04-27_20-36-53.png (5.4 KiB) Viewed 587 times
Snipaste_2021-04-27_20-36-34.png
Snipaste_2021-04-27_20-36-34.png (5.34 KiB) Viewed 587 times
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Memory issue

27 Apr 2021, 19:58

i dont run UIA and ahk_h i wont comment on(could be bugged for all i know)
Attachments
ahk_memory.gif
ahk_memory.gif (277.78 KiB) Viewed 582 times
killmatt01
Posts: 20
Joined: 25 Mar 2021, 00:12
Contact:

Re: Memory issue

27 Apr 2021, 20:08

swagfag wrote:
27 Apr 2021, 19:58
i dont run UIA and ahk_h i wont comment on(could be bugged for all i know)
Thank you for testing!
May I ask how much memory it takes when you are running window spy (which is provided with ahk_l release)?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Memory issue

28 Apr 2021, 05:15

no difference, both scripts(winspy) consume about 3megs
killmatt01
Posts: 20
Joined: 25 Mar 2021, 00:12
Contact:

Re: Memory issue

30 Apr 2021, 23:50

swagfag wrote:
28 Apr 2021, 05:15
no difference, both scripts(winspy) consume about 3megs
thx for testing!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy, Rohwedder, ruespe and 371 guests