Search found 139 matches

by oldbrother
17 Feb 2018, 14:54
Forum: Ask For Help
Topic: Please help on RegExMatch
Replies: 3
Views: 73

Re: Please help on RegExMatch

Thank you very much!☀
by oldbrother
16 Feb 2018, 11:25
Forum: Ask For Help
Topic: Please help on RegExMatch
Replies: 3
Views: 73

Please help on RegExMatch

I have text files using "`r`n" for new lines. I need to use RegExMatch() to find some text, but my code is not working. Am I missing something? Here is my sample code: STR = Somestring`r`n<START>`r`nText1`r`nText2`r`nText3`r`n<END>`r`nTEST StartStr = ^<START> EndStr = <End>$ if (RegExMatch...
by oldbrother
20 Jan 2018, 06:50
Forum: 脚本函数
Topic: AHK源代码加密器 v1.5
Replies: 1
Views: 411

Re: AHK源代码加密器 v1.5

xiexie!!!!
by oldbrother
14 Jan 2018, 08:09
Forum: Announcements
Topic: Preview of v1.1.28.00
Replies: 8
Views: 1053

Re: Preview of v1.1.28.00

Thanks a lot! Where is the installer download link?
by oldbrother
26 Dec 2017, 06:33
Forum: Scripts and Functions
Topic: TreeList Control (Experimental)
Replies: 20
Views: 860

Re: TreeList Control (Experimental)

I'm using Surface book, the screen resolution is 3000:2000, I have to use screen scale 250%, otherwise the fonts will be too small to see. With -DPISCALE, the GUI shows like this:

Capture.JPG
Capture.JPG (74.59 KiB) Viewed 614 times


Capture1.JPG
Capture1.JPG (75.37 KiB) Viewed 611 times
by oldbrother
21 Aug 2017, 15:08
Forum: Announcements
Topic: [closed][POLL] Commissions sub-forum
Replies: 107
Views: 6424

Re: [POLL] Commissions sub-forum

wolf_II wrote:How can I change my vote from earlier?


+1. I changed my vote to "I don't want ..."
by oldbrother
22 Jul 2017, 09:44
Forum: Bug Reports
Topic: Bug with ACos and ASin
Replies: 8
Views: 423

Re: Bug with ACos and ASin

SetFormat seems cannot solve the problem. nnnik, with your modified code, the first msgbox still gets blank Ang1 and Ang2. My working around is C:= Round(C,10) The real reason is A-B = 8.5-8.26 = 0.240000000000000 21 00000 Oldbrother , the bug is in your code, you are calling the function with inval...
by oldbrother
22 Jul 2017, 08:33
Forum: Bug Reports
Topic: Bug with ACos and ASin
Replies: 8
Views: 423

Re: Bug with ACos and ASin

l know the reason, and I know the ways walking round, but I just think these kinds of bugs are better be fixed at the bases.
by oldbrother
22 Jul 2017, 05:40
Forum: Bug Reports
Topic: Bug with ACos and ASin
Replies: 8
Views: 423

Bug with ACos and ASin

Please see the test code below. C := A-B = 0.24 if C is calculated, both ACos and ASin are not working properly. If C is given 0.24, the results are ok. It looks like a serious bug for math functions. AHK.L 1.1.26.00 A:=8.5 B:=8.26 C:= A-B Ang1 :=ACos(C/0.240) Ang2 :=ASin(C/0.240) Msgbox % "c: ...
by oldbrother
19 Jul 2017, 13:34
Forum: Ask For Help
Topic: Please help. use loop to access class variables
Replies: 3
Views: 271

Re: Please help. use loop to access class variables

Thank you Kon!

Is there any reason that lexikos didn't make the syntax of my code working? should I add it to the wish list?
by oldbrother
19 Jul 2017, 12:07
Forum: Ask For Help
Topic: Please help. use loop to access class variables
Replies: 3
Views: 271

Please help. use loop to access class variables

Error message got from my code: Line Text : .X%A_Index% Error: Ambiguous or invalid use of "." How to make the loop work? The real class of my code has many variables. I need to use the loop. Test code: T := New TestClass(1,2,3,4,5) T.Test() Class TestClass { _New(X1,X2,X3,X4,X5) { This.X1...
by oldbrother
15 Jul 2017, 06:31
Forum: Ask For Help
Topic: Please help. a test class
Replies: 1
Views: 75

Please help. a test class

I was trying to run a method as soon as a class is created, but the value of the variables of the class will be lost. Is it normal? See the two test codes below: Regular code, everything is fine: A := New Test() A.DoSomeThing(22222) msgbox % A.V1 Class Test { V1:=1111 __new() { msgbox % This.V1 } Do...
by oldbrother
23 Jun 2017, 05:12
Forum: Ask For Help
Topic: GuiControl, ChooseString Error
Replies: 3
Views: 209

Re: GuiControl, ChooseString Error

Thank you very much! Have a nice weekend.
by oldbrother
22 Jun 2017, 21:56
Forum: Ask For Help
Topic: GuiControl, ChooseString Error
Replies: 3
Views: 209

GuiControl, ChooseString Error

Test Code:

Code: [Select all]GeSHi © Codebox Plus

Gui, Add, ListBox, x0 y0 w150 h200 vList,AAA1|AAA2|AAA3|BBB3|BBB2|BBB|CCC
GuiControl,ChooseString,List,BBB
Gui, Show, w150 h200, Test
return

GuiClose:
ExitApp


Instead of choosing "BBB", "BBB3" will be chosen. Why?
by oldbrother
27 Apr 2017, 08:41
Forum: Ask For Help
Topic: Is it a bug?
Replies: 2
Views: 149

Is it a bug?

IfInstring cannot take "||" or "`|`|" as a parameter.
But InStr() can use it.

Test code:

Code: [Select all]GeSHi © Codebox Plus

MyString=AAA,BBB,||,|CCC||,DDD

Loop Parse, MyString, `,
IfInString,%A_LoopField%,||
;if InStr(A_LoopField,"||")
Msgbox Found!


Thanks!
by oldbrother
05 Apr 2017, 14:37
Forum: About This Community
Topic: Can we have sub forums for AHK authors?
Replies: 8
Views: 937

Can we have sub forums for AHK authors?

Can we have sub forums for AHK authors? It will be easier for the author to maintain their threads, easier for visitors to find the best scripts. It can serve as recognition and prize from the community to the authors. We can vote who deserves this. I'll vote just me :thumbup: :thumbup: :thumbup: . ...
by oldbrother
03 Apr 2017, 13:34
Forum: AutoGUI
Topic: Left panel does not show properly on my Windows 10
Replies: 3
Views: 619

Re: Left panel does not show properly on my Windows 10

Thank you guest3456. You are right. my laptop is surface book 4. the resolution of the screen is 3000x2000. My scaling is 250%, otherwise the fonts and icons will be too small. Any solutions?
by oldbrother
02 Apr 2017, 06:40
Forum: AutoGUI
Topic: Left panel does not show properly on my Windows 10
Replies: 3
Views: 619

Left panel does not show properly on my Windows 10

I tried to change the resolution of the display, but the problem is still there.
Capture.JPG
Capture.JPG (96.33 KiB) Viewed 619 times


How to fix it?
by oldbrother
09 Dec 2016, 16:45
Forum: Ask For Help
Topic: Tell me why. Please
Replies: 3
Views: 297

Re: Tell me why. Please

Thank you very much just me and jNizM!
Have a nice weekend!

Go to advanced search