Search found 13 matches

by CerpinTaxt
28 Sep 2018, 23:52
Forum: Forum Issues
Topic: Code of conduct for staff
Replies: 15
Views: 2650

Re: Code of conduct for staff

I know this thread is old, but fwiw this dude in OP is clearly a troll. I've been hanging around the Discord starting about a week ago and while I can be snarky and outspoken at times, I haven't outright gotten into any other completely ridiculous nonsensical troll loops than with OP. I had a few, l...
by CerpinTaxt
26 Aug 2018, 03:31
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 2325

Re: Read / Write memory (beginner level) Topic is solved

Why do you need to allocate memory in the other process? You don't! Honestly I was a bit tired when I was making that and not thinking it through all the way. Also I've only ever used OpenProcess and ReadProcessMemory in situations where I did need to have the remote process fill that buffer. But t...
by CerpinTaxt
26 Aug 2018, 00:53
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 2325

Re: Read / Write memory (beginner level) Topic is solved

I doubt this'll work on the first run, but let's try it out. I tried to rewrite a lot of what you had and make it least a lot clearer because it does seem like you're trying to learn and seeing code approached differently always helped me. #NoEnv SetWorkingDir %A_ScriptDir% BaseAdress := 0x400000 of...
by CerpinTaxt
20 Aug 2018, 11:06
Forum: Scripts and Functions
Topic: Notepad++: get path
Replies: 7
Views: 1080

Re: Notepad++: get path

Turns out that the method I was using before to determine the PID and necessary hwnd of the Notepad++ class was less than reliable. I've updated the post with what I hope will be much less prone to failure. Changed how I did a few things and threw in a couple more failsafes as well as tried to inclu...
by CerpinTaxt
18 Aug 2018, 17:55
Forum: Scripts and Functions
Topic: Notepad++: get path
Replies: 7
Views: 1080

Re: Notepad++: get path

Clipboard and WinTitle are pretty unreliable. This is a much more stable method: NppGetCurrentDocPath() { Process, Wait, Notepad++.exe, 1 dwProcessId := ErrorLevel hNpp := DllCall("FindWindow", "Str", "Notepad++", "Int", 0, "Ptr") if !(WinExist("ahk_id " . hNpp) AND WinExist("ahk_PID " . dwProcessId...
by CerpinTaxt
27 Jul 2018, 19:12
Forum: Wish List
Topic: A_ListLines not compatible with ListLines.
Replies: 3
Views: 842

Re: A_ListLines not compatible with ListLines.

Boolean is generally more useful, so AutoHotkey v2-alpha accepts boolean in every case where On/Off is allowed. A_ListLines was added more recently than the other settings, so it uses boolean. However, there are some variables that haven't been changed yet, and I may remove On/Off entirely. Even if...
by CerpinTaxt
27 Jul 2018, 15:24
Forum: Wish List
Topic: A_ListLines not compatible with ListLines.
Replies: 3
Views: 842

A_ListLines not compatible with ListLines.

A_ListLines contains a boolean but ListLines doesn't accept a boolean. So that means when somebody wants to save and later restore the settings, they can't use something like this: O_ListLines := A_ListLines ; code ListLines, % O_ListLines But instead they have to do something like this: O_ListLines...
by CerpinTaxt
17 Jul 2018, 04:40
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 592
Views: 135247

Re: Suggestions on documentation improvements

Ambiguous phrasing in Library list on Functions page Reference: https://autohotkey.com/docs/Functions.htm#lib The list of libraries has: %A_ScriptDir%\Lib\ ; Local library - requires [v1.0.90+]. %A_MyDocuments%\AutoHotkey\Lib\ ; User library. path-to-the-currently-running-AutoHotkey.exe\Lib\ ; Stand...
by CerpinTaxt
06 Jun 2018, 20:14
Forum: Ask For Help
Topic: The function check fallback of SetTimer, Hotkey, etc doesn't check library?
Replies: 1
Views: 314

The function check fallback of SetTimer, Hotkey, etc doesn't check library?

[Moderator's note: Topic moved from Bug Reports.] I'm not sure if the devs will consider this a bug or working as intended honestly. A few of the commands like SetTimer check for a label and if one is not found they check for a function instead. However these commands don't check the libraries for ...
by CerpinTaxt
06 May 2018, 22:24
Forum: Ask For Help
Topic: Anyone know a Windows Msg to monitor for a battery device change? Also a way to query which battery is currently in use?
Replies: 0
Views: 270

Anyone know a Windows Msg to monitor for a battery device change? Also a way to query which battery is currently in use?

I'm building a little system monitoring program as a learning process and I'm not sure where to approach this particular problem from. This program monitors changes and logs them to a file. One of the things I want to log is when I switch between my two batteries. So I was wondering if anybody knew ...
by CerpinTaxt
30 Dec 2017, 17:14
Forum: Ask For Help
Topic: I can't get Notepad++ to work as my default .ahk editor.
Replies: 4
Views: 551

I can't get Notepad++ to work as my default .ahk editor.

I've followed the guide and edited the registry value.

Image

But whenever I click "Edit script" this is the screen that pops up:

Image

And it doesn't remember my choice. Double clicking to run the script works fine.

Ideas?
by CerpinTaxt
23 Dec 2017, 12:57
Forum: Ask For Help
Topic: Trying to get this script down. All the googling I did tells me it's impossible but I feel like there MUST be a way.
Replies: 3
Views: 431

Trying to get this script down. All the googling I did tells me it's impossible but I feel like there MUST be a way.

I've been trying to get a script written for an embarrasingly long time and I somehow can't manage to get it right. I feel like a big dummy, soooo I'm crawling to you guys for help. There's quite a few pretty specific detailed things that I wrote in my 'outline' that look like super simple things at...

Go to advanced search