Search found 122 matches

by Scoox
28 Jan 2019, 19:05
Forum: Bug Reports
Topic: Buggy Help (chm) file of AHK 1.1.30
Replies: 22
Views: 6231

Re: Buggy Help (chm) file of AHK 1.1.30

I have also encountered a problem with the new help file: the Ctrl+F text search box misses characters when typing very fast, so for example if I type "hidden" only "hiddn" or "hidde" is registered. Has anyone else noticed this?
by Scoox
28 Jan 2019, 18:57
Forum: Ask For Help
Topic: GetKeyState("Insert", "T") returning wrong toggle state
Replies: 2
Views: 988

GetKeyState("Insert", "T") returning wrong toggle state

The following code doesn't always return the correct Insert key toggle state after switching between applications: ~Insert:: MsgBox % GetKeyState("Insert", "T") Return For instance, if I have two console windows, A & B, both initially with Insert mode turned off. Then I hit the Insert key while A is...
by Scoox
24 Sep 2018, 02:06
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

Been busy these past few days, thanks for the replies, I will take a detailed look asap.
by Scoox
19 Sep 2018, 18:38
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

class BaseGui { __New(title) { Gui, New, +AlwaysOnTop +HwndhGui, % title this.hGui := hGui Gui, Font, s16 Gui, Add, Edit, x10 y10 w200 +HwndhEdit, hello world this.hEdit := hEdit Gui, Add, Button, x10 y50 w200 h40 +HwndhBtn1, Button 1 this.hBtn1 := hBtn1 Gui, Add, Button, x10 y100 w200 h40 +HwndhBt...
by Scoox
19 Sep 2018, 18:31
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

Thanks @User, some of the mechanisms used in your implementation are similar to my initial idea, but now that I know about classes I think I much prefer classes, they seem much more flexible.
by Scoox
19 Sep 2018, 07:53
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

The code in your first post works but only because the functions don't need to read or write the control associated variable. The code also works because no part of the script has asked to read anything yet. Please patch as desired, example: Edit_onTyping(HWND) { GuiControlGet, outVar,, %HWND% Tool...
by Scoox
19 Sep 2018, 06:35
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

@swagfag thanks a lot! I manged to do what I'm trying to do using your code but it was by fluke. I'm going to have to do some reading before I can understand what's going on. Things are looking up :)
by Scoox
19 Sep 2018, 05:53
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

Using the object oriented GUI version doesn't work either. None of the class methods is able to change, say, the text in the edit control, because it's associated variable scope is limited to the constructor method. Unless I'm missing something. What I need, ideally, is a variable that's visible to ...
by Scoox
19 Sep 2018, 03:33
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Re: Static variables for GUI control associated variables?

@wolf_II I will try that in a bit, I'm also very much looking forward to AHK v2... I even gave AutoIT a go recently but AHK was more suited to what I'm trying to do because (AutoIT's mouse support is pretty bad). The code in your first post works but only because the functions don't need to read or ...
by Scoox
18 Sep 2018, 16:57
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 3815

Static variables for GUI control associated variables?

I''m working on a script which contains several GUIs each having many controls. I don't want to use global variables for control associated variables, instead I'd like to use static variables, but I can't fathom how I should go about it. I would like to have different functions to perform different ...
by Scoox
16 Sep 2018, 13:19
Forum: Ask For Help
Topic: Gui, Show first time bigger than screen size?
Replies: 6
Views: 1225

Re: Gui, Show first time bigger than screen size?

Thank you Lexikos for the detailed reply and everyone else for chiming in. That answers my question. By 'bigger' I meant 'more pixels' (e.g. 4K) so as to accommodate the entire UI without it spilling past the screen edges and without re-scaling. As you guessed, I am moving the window around to be ab...
by Scoox
15 Sep 2018, 05:21
Forum: Ask For Help
Topic: Gui, Show first time bigger than screen size?
Replies: 6
Views: 1225

Re: Gui, Show first time bigger than screen size?

@garry In my case the problem is that my GUI has to be physically big because it relies on small clickable areas on an image. If it's too small, it becomes too difficult to aim for these areas. I plan to run my script on a bigger screen but I'm currently on the road and only have my small laptop to ...
by Scoox
15 Sep 2018, 04:06
Forum: Ask For Help
Topic: Gui, Show first time bigger than screen size?
Replies: 6
Views: 1225

Gui, Show first time bigger than screen size?

Quick question: My display is 2376 pixels wide. I'm able to display a GUI that's wider than 2376 pixels if I explicitly define its width thus: Gui, Margin, 15, 15 Gui, Add, Edit, w3000 Gui, Show, w3200 ;<<< However, the following code shows a GUI that's 2376 pixels wide, which seems wrong because th...
by Scoox
18 Jul 2018, 20:26
Forum: Ask For Help
Topic: Edit box text flickers as I type (large fonts only)
Replies: 0
Views: 389

Edit box text flickers as I type (large fonts only)

Very quick one here, I have a GUI with two Edit boxes each using different font sizes. The one with the large font size flickers as I type, the other one doesn't. It seems it only happens with large font sizes: #NoEnv #SingleInstance Force Gui, Margin, 5, 5 Gui, Font, s40 Gui, Add, Edit, w700 r4 Gui...
by Scoox
09 Feb 2018, 19:48
Forum: Ask For Help
Topic: Why are Picture controls transparent by default?
Replies: 3
Views: 632

Re: Why are Picture controls transparent by default?

Thank Lexikos! I have to admit I'm slightly out of my depth here. I was reporting this in case it was a bug but, from what you say and speculate, it sounds like it's not something we can do much about, so I'll just stick with using 24-bit bitmaps. I've also just noticed that, if I remove the w50 h50...
by Scoox
08 Feb 2018, 22:25
Forum: Ask For Help
Topic: Why are Picture controls transparent by default?
Replies: 3
Views: 632

Re: Why are Picture controls transparent by default?

I've just done some findings: ● Saving the images as a 8-bit bitmap results in pure white being displayed in the first two cases, but still 253,253,253 in the AltSubmit case. ● Saving the images as a 24-bit bitmap (or above) results in pure white being displayed in all three cases. It seems as thoug...
by Scoox
08 Feb 2018, 21:41
Forum: Ask For Help
Topic: Why are Picture controls transparent by default?
Replies: 3
Views: 632

Why are Picture controls transparent by default?

I'm having trouble getting a 16-color (4-bit) BMP image to correctly display white colors, here's my test code: #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% Gui, Add, Picture, w50 h50, Res\KeyW.bmp ;White areas displayed as same color as GUI background (i.e. white areas are rendered as b...
by Scoox
14 Jun 2017, 04:26
Forum: Ask For Help
Topic: Progress bar bug or just me being silly?
Replies: 7
Views: 1217

Re: Progress bar bug or just me being silly?

Thanks a bunch Lexikos. Apologies, I read through and then went on to try the test Noname's scripts, and completely forgot about the signing out bit. I'll try and see if it makes a difference.
by Scoox
14 Jun 2017, 02:50
Forum: Ask For Help
Topic: Progress bar bug or just me being silly?
Replies: 7
Views: 1217

Re: Progress bar bug or just me being silly?

1,2,3) This is all consistent with your system DPI setting being 200%. Did you check A_ScreenDPI? Thanks Lexikos! I tested at different DPI settings though, all producing the same results. I would have expected things to work at 100% DPI setting, but I still get double size. Furthermore, SplashImag...
by Scoox
13 Jun 2017, 11:29
Forum: Ask For Help
Topic: Progress bar bug or just me being silly?
Replies: 7
Views: 1217

Re: Progress bar bug or just me being silly?

Sorry I took so long to get back, moving home and work have kept me really busy. Noname , I've just tested your code with the M option, but he size reported on the message box is still 600 x 200. Lexikos , the machine I'm testing this on is a Surface Pro 4 with no external displays attached. I've do...

Go to advanced search