Search found 5934 matches

by jeeswg
10 Mar 2019, 07:08
Forum: Offtopic
Topic: Object-Oriented Programming Is Bad?
Replies: 11
Views: 874

Re: Object-Oriented Programming Is Bad?

- The Brian Will collection: 2011 tutorial video: Object-oriented programming (old version, watch new version instead) - YouTube https://www.youtube.com/watch?v=rDXuPBjVfSc 2011 tutorial video (rerecorded in 2012): Object-Oriented Programming - YouTube https://www.youtube.com/watch?v=lbXsrHGhBAU the...
by jeeswg
10 Mar 2019, 06:49
Forum: Ask For Help
Topic: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP
Replies: 18
Views: 488

Re: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP

- Sometimes the user will do something they shouldn't do. E.g. they thought that 0 would be treated as NULL rather than as a valid address. Some Winapi functions protect you (treat 0 as NULL), some don't (treat 0 as a valid address). - You shouldn't always protect the user from themselves, but AutoH...
by jeeswg
10 Mar 2019, 04:32
Forum: Ask For Help
Topic: Completing a function inside a loop
Replies: 2
Views: 79

Re: Completing a function inside a loop

Maybe you want something like WinWaitClose, ahk_class AutoHotkeyGUI after MakeIt(), otherwise the loop can simply continue/complete while the GUI is being displayed.
by jeeswg
10 Mar 2019, 04:31
Forum: Ask For Help
Topic: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP
Replies: 18
Views: 488

Re: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP

OK, but can't a process ordinarily protect parts of its address space from being written to, e.g. via VirtualProtect, or are some parts exempt from being protected like that?
by jeeswg
10 Mar 2019, 04:06
Forum: Ask For Help
Topic: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP
Replies: 18
Views: 488

Re: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP

- Thanks Helgef, you've reminded me of some of the possibilities I wasn't directly considering. Much appreciated. - It is pretty fiddly, here is a summary: - PtrP,myvar will pass &myvar (the address of myvar) - PtrP,myvalue will create a variable (behind-the-scenes, that we don't have direct access ...
by jeeswg
10 Mar 2019, 01:22
Forum: Ask For Help
Topic: Get size
Replies: 3
Views: 107

Re: Get size

- Both the AHK loop and my function return binary data as a hex string. - You can find hex to binary data functions on the forum. - You pass the address of the binary data when using DllCall. - Or, my code actually starts off with binary data, (which it then converts to hex,) so you could rearrange ...
by jeeswg
09 Mar 2019, 20:02
Forum: Ask For Help
Topic: Get size
Replies: 3
Views: 107

Re: Get size

- The binary data is returned as a hex string, which is 2 characters per 1 byte. So the size will be the number of characters (StrLen) in the hex string, divided by 2. - Btw I tried creating reg files via AutoHotkey, and comparing them with reg files from RegEdit, and sometimes AutoHotkey seemed to ...
by jeeswg
09 Mar 2019, 19:52
Forum: Ask For Help
Topic: Place alternative text under GUI buttons for use by screen readers
Replies: 6
Views: 140

Re: Place alternative text under GUI buttons for use by screen readers

- It can be interesting to investigate GUIs with AccViewer, in particular, to look at Name and Value. - I tried setting the accValue of a Button control, but it appeared to make no difference. - Button controls appear to have very few messages (e.g. BM_CLICK), i.e. they don't seem very customisable....
by jeeswg
09 Mar 2019, 19:36
Forum: Ask For Help
Topic: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP
Replies: 18
Views: 488

Re: DllCall: IntP/UIntP, Int64P/UInt64P, PtrP/UPtrP

- I mention the 'Ptr,0' and 'PtrP,0' issue, here: Suggestions on documentation improvements - Page 26 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=13&t=1434&p=262959#p262959 - I sum it up like this: - 'Ptr,0', is the memory at address 0 write-protected, or is a crash possible...
by jeeswg
09 Mar 2019, 18:53
Forum: Ask For Help
Topic: Place alternative text under GUI buttons for use by screen readers
Replies: 6
Views: 140

Re: Place alternative text under GUI buttons for use by screen readers

- You could left-align the text. Gui, New, +HwndhGui, MyWinTitle Gui, Add, Button, +HwndhBtn +Left, My Button GuiControl,, % hBtn, % " My Button `n Extra Text" Gui, Show, w300 h300 return - For Edit controls, it might be worth mentioning cue banners. Place alternative text under GUI buttons for use ...
by jeeswg
09 Mar 2019, 18:45
Forum: Ask For Help
Topic: Auto-start script in non-elevated mode?
Replies: 2
Views: 55

Re: Auto-start script in non-elevated mode?

Try this. Cheers.
Reloading: Admin to Non-Admin - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=7752
by jeeswg
09 Mar 2019, 06:04
Forum: Offtopic
Topic: Is AHK dead? (not developed any more)
Replies: 58
Views: 2195

Re: Is AHK dead? (not developed any more)

- @nnnik: What are your priorities for AHK features right now (that you could implement within 6 months)???????
- More generally, do you have anything practical/interesting/useful to say about the development of AutoHotkey????????????? I.e. some kind of fuller plan re. functionality.
by jeeswg
08 Mar 2019, 13:44
Forum: Ask For Help
Topic: TransColor doesn't work in Chrome
Replies: 7
Views: 263

Re: TransColor doesn't work in Chrome

Both of these worked for me on Chrome. One possibility is that the colour isn't FFFFFF, you can check with PixelGetColor. q:: ;active window - make colour transparent WinSet, TransColor, FFFFFF, A return w:: ;google chrome - make colour transparent ;WinSet, TransColor, FFFFFF, ahk_class Chrome_Widge...
by jeeswg
08 Mar 2019, 11:17
Forum: Ask For Help
Topic: Parented gui behaviors and inheritance tree (+Parent)
Replies: 10
Views: 491

Re: Parented gui behaviors and inheritance tree (+Parent)

- I tested, and each time I tabbed to a control, the WIN_EVENTHOOK function was triggered. - Note: it was triggered twice for the rightmost controls. - You can add code to the WIN_EVENTHOOK function: use GetScrollInfo to get the scrollbar position, and use ScrollWindow if necessary to scroll the con...
by jeeswg
08 Mar 2019, 03:56
Forum: Offtopic
Topic: Is AHK dead? (not developed any more)
Replies: 58
Views: 2195

Re: Is AHK dead? (not developed any more)

nnnik wrote: removal of technical debt
...
the current parser does not fit our needs
- Surely those are long-term goals.
- Those statements are also quite vague, can you be more specific?
- Do you have any suggestions for *right now*? Any smaller changes? Thanks.
by jeeswg
08 Mar 2019, 03:33
Forum: Offtopic
Topic: Is AHK dead? (not developed any more)
Replies: 58
Views: 2195

Re: Is AHK dead? (not developed any more)

@nnnik: What are your priorities for AHK features right now?
by jeeswg
07 Mar 2019, 13:50
Forum: Ask For Help
Topic: Debugging tutorials
Replies: 24
Views: 594

Re: Debugging tutorials

@DRocks: One thing maybe you're not aware of. If you have a function, and define one of the variables as local, all of the other variables in the function become global. replace text maintain case - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=37328&p=171840#p171840 Functio...
by jeeswg
07 Mar 2019, 13:45
Forum: Offtopic
Topic: Is AHK dead? (not developed any more)
Replies: 58
Views: 2195

Re: Is AHK dead? (not developed any more)

- @nnnik: Do find some examples, remember, 'basic' you said. - Btw you wrote a basic function, this year I think, and there were some pretty odd choices that you made. - The people working on C++ at the moment are me, you and Helgef. - Helgef wasn't too interested. I'm not sure how good you are at n...
by jeeswg
07 Mar 2019, 11:58
Forum: Wish List
Topic: DriveGet Detect SSD And Other Types
Replies: 7
Views: 204

Re: DriveGet Detect SSD And Other Types

- The original thread warned against these 2 approaches: •There's a way to do it in Windows Powershell - but it only works in Win 8 and up. •Some people suggest using WMIC to get the model of the disk and see if it has "SSD" in the model number but since not all SSDs have "SSD" in the model, that's ...

Go to advanced search