Search found 273 matches

by Benny-D
11 Aug 2020, 20:54
Forum: Ask For Help
Topic: [solved] How to tell if the string is a valid timestamp? Topic is solved
Replies: 2
Views: 1332

[solved] How to tell if the string is a valid timestamp? Topic is solved

Is there a simple way in AHK to determine whether a string of 8 numbers is a valid timestamp or not? For example, the string "20200328" is a valid timestamp, but the "20201328" and "20200332" are not. I've been trying this way: StringToCheck := "20201712" AnyValidDate := "20201110" TwinOfStringToChe...
by Benny-D
11 Feb 2020, 09:42
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: [solved] How to make my simple GUI window scrollable? Topic is solved

@ kczx3 , What should I do there? I clicked on "Sources" and then on "Class_ScrollGUI.ahk", so eventually I landed here: https://github.com/AHK-just-me/Class_ScrollGUI/blob/master/Sources/Class_ScrollGUI.ahk Is it the script I am supposed to be after? It is almost 6 times bigger than the script that...
by Benny-D
11 Feb 2020, 08:05
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: [solved] How to make my simple GUI window scrollable? Topic is solved

@just me:
Just googled it. Found this thread: https://autohotkey.com/board/topic/84333-class-class-scrollguiahk-simply-scroll-your-guis/
And that one is created by you. Still struggling to understand what I should do that in order to make use of that.
by Benny-D
11 Feb 2020, 07:51
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: [solved] How to make my simple GUI window scrollable? Topic is solved

@just me

Can you, please, tell me where I could find that document? I typed "Class_ScrollGUI.ahk" into the search field of the AHK Help file that I downloaded (Version 1.1.30.01), but it didn't return any results.
by Benny-D
11 Feb 2020, 05:59
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@Odlanir,
Thank you very much for the detailed answer and for the script you've provided.
by Benny-D
10 Feb 2020, 21:35
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@ Odlanir , I just tried to run your code without that part at the top and the scrollbars began to jump back after scrolling. So it will only run this particular script in 32 and my all other scripts will still be run in 64, right? But what if I want to put something of Unicode on the GUI window of ...
by Benny-D
10 Feb 2020, 12:00
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@ Odlanir , Thank you! This script works really well and the scroll bars are scrolled very smoothly without jumping back after being dragged for a while. You said "It must be run in 32 bit mode", but I've just run it on my 64-bit version. What kind of pitfalls am I running into if I continue using t...
by Benny-D
10 Feb 2020, 08:16
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@ just me : "If you think you'd have to call the ScrollWindow and/or SetScrollInfo functions, why don't you search the forums for this terms?" -- I did, but there were so many different scripts that I got overwhelmed by them. So I decided to ask a question for a simple way - in case such one existed...
by Benny-D
10 Feb 2020, 07:29
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@ kczx3 "I’m just saying that because the user specifically said the code provided was for v2" - Gosh! How did I miss that! Thank you. Is there any source here saying briefly and in general terms about why V2 is better than V1? Is it like V2 is inevitable in the future and sooner or later everyone w...
by Benny-D
10 Feb 2020, 05:05
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

@kczx3
I've downloaded by clicking on "Current Version" from the main website. There was also "V2 Alfa Version" button there, but I was afraid to download that one because I had never been running my scripts with V2 Alfa. Should I try it? What risks am I running then? Will all my scripts still work?
by Benny-D
09 Feb 2020, 11:19
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

Hi, xroot ! Thank you for this script, but I am afraid I don't know what to do with it. I've created the "winapi.ahk" file with your second script inside and then a second .ahk file with your first script inside. But when I tried to run the second file, I only got an error message saying: Error at l...
by Benny-D
08 Feb 2020, 00:25
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

Re: How to make my simple GUI window scrollable? Topic is solved

Thank you for the link. But can you give me a clue as to which script from that thread I could use? Lexikos's script seems to be good, but the scroll bars don't seem to get dragged smoothly and often just jump back to the initial position.
by Benny-D
07 Feb 2020, 03:58
Forum: Ask For Help
Topic: [solved] How to make my simple GUI window scrollable? Topic is solved
Replies: 22
Views: 2218

[solved] How to make my simple GUI window scrollable? Topic is solved

Here I have a simple code of a GUI window: FWC := "55a0ff" ; first window window's color FWFS := "16" ; first window window's font size FWFT := "Verdana" ; first window window's font gosub, CreateFirstWindow gosub, Go return CreateFirstWindow: Gui New, hwndFW Gui +LabelFW Gui, % FW . ":color", % FWC...
by Benny-D
05 Nov 2019, 21:27
Forum: Offtopic
Topic: How is the "weight" of a code measured? Topic is solved
Replies: 3
Views: 1896

Re: How is the "weight" of a code measured? Topic is solved

I see. Thank you for your reply!
by Benny-D
05 Nov 2019, 03:54
Forum: Offtopic
Topic: How is the "weight" of a code measured? Topic is solved
Replies: 3
Views: 1896

How is the "weight" of a code measured? Topic is solved

Is there any convention in the programming community on how the weight of a piece of code must be measured? I keep seeing in various places such phrases like "This code is 3000 lines!", "That game is already over 5000 lines!", etc. What kind of lines are those precisely? Does that normally include e...
by Benny-D
12 Aug 2019, 22:46
Forum: Ask For Help
Topic: [solved] How to find out if file is empty without opening it? Topic is solved
Replies: 4
Views: 936

Re: How to find out if file is empty without opening it? Topic is solved

i think u would have to be a bit more precise with ur definitions of "empty", "reading" and "opening it" an "empty" file saved as UTF8 with BOM still contains the 3 byte BOM, for instance FileGetSize "opens" the file. as does, ultimately, any function, needing to perform operations on a file - I se...
by Benny-D
12 Aug 2019, 20:16
Forum: Ask For Help
Topic: [solved] How to find out if file is empty without opening it? Topic is solved
Replies: 4
Views: 936

[solved] How to find out if file is empty without opening it? Topic is solved

Is there any way in AHK to establish if the file is empty without reading or even opening it? EDIT: By "empty" I mean "containing no text". By "text" I mean "any combination of non-white-space and white-space characters that is easily seen by a user with his own eyes (for example, by looking at the ...
by Benny-D
10 Aug 2019, 18:36
Forum: Ask For Help
Topic: [solved] (simple) Default encoding in FileOpen vs. that of FileRead Topic is solved
Replies: 10
Views: 1434

Re: (simple) Default encoding in FileOpen vs. that of FileRead Topic is solved

jeeswg wrote:
10 Aug 2019, 18:32
- (Maybe you need to press q.)
- Yes, I didn't realize that right away.

Thank you for all your explanations.
by Benny-D
10 Aug 2019, 18:32
Forum: Ask For Help
Topic: [solved] (simple) Default encoding in FileOpen vs. that of FileRead Topic is solved
Replies: 10
Views: 1434

Re: (simple) Default encoding in FileOpen vs. that of FileRead Topic is solved

- Oops. Sorry! I didn't realize that I had to press "q" button.
Thanks again.

Go to advanced search