Search found 273 matches

by oldbrother
23 Feb 2023, 23:23
Forum: Bug Reports
Topic: Rounding Bug
Replies: 45
Views: 5519

Re: Rounding Bug

guest3456 wrote:
05 Feb 2023, 22:42
could you multiply by 1000, and then round, and then divide back down to display?
It doesn't work.

Code: Select all

Num := 1.035
msgbox % SRound(Num) ; Returns 1.03

SRound(Num)
{
 Num := Round(Num*1000)/1000
 Return Round(Num,2)
}
by oldbrother
23 Feb 2023, 23:05
Forum: Bug Reports
Topic: Rounding Bug
Replies: 45
Views: 5519

Re: Rounding Bug

Just for Fun. :lol:

See how Chat-GPT answered my question:
2.png
2.png (127.87 KiB) Viewed 1884 times
1.png
1.png (82.49 KiB) Viewed 1884 times
by oldbrother
04 Feb 2023, 09:54
Forum: Bug Reports
Topic: Rounding Bug
Replies: 45
Views: 5519

Re: Rounding Bug

I'm using this walk-around function now. It works fine to me: SRound(num, N = 0) { Num := Trim(Num) Sign := SubStr(Num,1,1) if(Sign="+" or Sign ="-") Num:= SubStr(Num,2) Else Sign :="" num := num * 10 ** N RegExMatch(num, "\d*.\K\d", decimal) if(decimal >= 5) Result := Ceil(num) / (10 ** N) else Res...
by oldbrother
18 Jan 2023, 07:58
Forum: Skripte und Funktionen
Topic: Class_OD_Colors (für Holle)
Replies: 16
Views: 12881

Re: Class_OD_Colors (für Holle)

Nice Lib! Thank you just me!
by oldbrother
12 Jan 2023, 23:22
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 19880

Re: [Library] cJson.ahk (version 0.4.1 pre-release)

Thank you TheArkive. Personally I like geek's lib with M-Code, and no external dll file. I'm using geek's 0.41 load big files. It's very fast, and I didn't encounter any errors.
by oldbrother
07 Jan 2023, 08:59
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 19880

Re: [Library] cJson.ahk (version 0.4.1 pre-release)

Love this lib! Hi geek, are you going to develop one for V2?
by oldbrother
05 Jan 2023, 22:51
Forum: Ask for Help (v1)
Topic: Get GUI position
Replies: 3
Views: 329

Re: Get GUI position

Thank you all!
by oldbrother
05 Jan 2023, 19:08
Forum: Ask for Help (v1)
Topic: Get GUI position
Replies: 3
Views: 329

Get GUI position

How can I get the position of the GUI of a script when I have multiple screens and different DPI settings? For example I have 2 screens, the DPI of the prime screen is 144, and second is 96. The second screen can be on the right side or on the left side.
by oldbrother
02 Jan 2023, 15:14
Forum: Ask for Help (v1)
Topic: Virtual Listview
Replies: 2
Views: 318

Re: Virtual Listview

Hi just me, thank you so much!
by oldbrother
02 Jan 2023, 09:22
Forum: Ask for Help (v1)
Topic: Virtual Listview
Replies: 2
Views: 318

Virtual Listview

This is a V2 example code I copied from SKAN's post: https://www.autohotkey.com/boards/viewtopic.php?f=82&t=98902 It can load a sample 100000 row of data instantly. ; Adapted from just me's demo posted @ autohotkey.com/r?p=25486 ; Simplified demo of Virtual ListView (10000 rows). By SKAN #Requires A...
by oldbrother
01 Jan 2023, 18:56
Forum: Ask for Help (v2)
Topic: Virtual ListView 10000 rows, high CPU time Topic is solved
Replies: 11
Views: 2254

Re: Virtual ListView 10000 rows, high CPU time Topic is solved

Hi SKAN, Can you please make a V1 version of your virtual listview example code? Is it possible to use it to load a large CSV file?

Happy New Year to you all!
by oldbrother
30 Dec 2022, 09:19
Forum: Scripts and Functions (v1)
Topic: RegEx Tester
Replies: 9
Views: 6678

Re: RegEx Tester

Nice! Thanks! :thumbup:
by oldbrother
28 Dec 2022, 08:18
Forum: Bug Reports
Topic: Launcher error after installed 2.0 Topic is solved
Replies: 6
Views: 1401

Re: Launcher error after installed 2.0 Topic is solved

lexikos wrote:
27 Dec 2022, 22:41
To fix this you can update UX\inc\identify_regex.ahk or wait for the next release.
Thank you! I will wait for the new release.
Happy holidays!!!
by oldbrother
27 Dec 2022, 21:12
Forum: Bug Reports
Topic: Launcher error after installed 2.0 Topic is solved
Replies: 6
Views: 1401

Re: Launcher error after installed 2.0 Topic is solved

It seems the Base64 icon on the GUI caused the problem. The example code below works perfectly in V1.0 but gives the error with the launcher. ProgramTitle := "Test" B64 := "iVBORw0KGgoAAAANSUhEUgAAAIAAAAArCAYAAACw5YDmAAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1...
by oldbrother
27 Dec 2022, 18:22
Forum: Bug Reports
Topic: Launcher error after installed 2.0 Topic is solved
Replies: 6
Views: 1401

Launcher error after installed 2.0 Topic is solved

Some of my codes have this error.
error.png
error.png (36.51 KiB) Viewed 1401 times
by oldbrother
27 Dec 2022, 13:36
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 140
Views: 59594

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)

Thank you.

The 2.0 example of "HTML Generation" doesn't work properly.
by oldbrother
26 Dec 2022, 06:27
Forum: AutoHotkey Development
Topic: congrats
Replies: 13
Views: 3109

Re: congrats

✨🌟👍👍👍👑👏👏💪💪💪
by oldbrother
09 Dec 2022, 11:12
Forum: Scripts and Functions (v1)
Topic: OpenAhkXl - Automate Excel with native ahk. no excel need
Replies: 14
Views: 5008

Re: OpenAhkXl - Automate Excel with native ahk. no excel need

Nice lib! Thank you.

One question.

To create a new excel file, do I have to read an empty file first?

Code: Select all

xl := new OpenAhkXl()
; bbbbbbbb.xlsx > tatally empty file.
xl.open("bbbbbbbb.xlsx")

Go to advanced search