Search found 16 matches

by Gedrean
30 Sep 2020, 19:18
Forum: AHK Studio
Topic: XML Class
Replies: 22
Views: 15564

Re: XML Class

I found the problem with the formatting on the pages of Joe Glines website. If you view the source the content is there in proper formatting. HTML fucks formatting. using a pre tag or other similar code tag would fix it. Anyhow, here's the contents: (Edited a few times to fix spacing converting from...
by Gedrean
25 Aug 2020, 10:09
Forum: Ask For Help
Topic: Sorting Objects in an Array by a property Topic is solved
Replies: 8
Views: 2188

Re: Arrays of Arrays complex issue Topic is solved

So, it turns out I was making this more complicated than it needed to be... With my original code, I was trying to push the object I pulled from the original array, into the sorting array. Then complaining I lost the index. What I forgot was two things: 1. In the loop, I have access to the index num...
by Gedrean
24 Aug 2020, 15:28
Forum: Wish List
Topic: Better Window "exclude" functionality
Replies: 0
Views: 276

Better Window "exclude" functionality

Either of the two scenarios right now would be amazing: 1. In appropriate commands and functions which make use of "ExcludeTitle", expand ExcludeTitle to take WinTitle syntax. This way, the following would be valid. Say I have 2 windows open, where the title text of the two might be similar enough t...
by Gedrean
23 Aug 2020, 22:49
Forum: Ask For Help
Topic: Sorting Objects in an Array by a property Topic is solved
Replies: 8
Views: 2188

Re: Arrays of Arrays complex issue Topic is solved

id sooner switch to using a rdbms rather than attempting to emulate one in code I'm starting to feel that way too, but I don't really have an ability to swap out what I'm doing. This is basically doing a really cruddy sort function, which... I mean, if I could build a sort function in AHK that was ...
by Gedrean
23 Aug 2020, 01:49
Forum: Ask For Help
Topic: Sorting Objects in an Array by a property Topic is solved
Replies: 8
Views: 2188

Re: Arrays of Arrays complex issue Topic is solved

Sounds like You have Array := [["Chair", 10, true], ["Hat", 5, false], ["Car", 10, true]] personally I would prefer Array := [{"name": "Chair", "cost": 10, "bool": true}, , {"name": "Hat", "cost": 5, "bool": false}, , {"name": "Car", "cost": 10, "bool": true}] Because you don't have to remember in ...
by Gedrean
22 Aug 2020, 13:20
Forum: Ask For Help
Topic: Sorting Objects in an Array by a property Topic is solved
Replies: 8
Views: 2188

Sorting Objects in an Array by a property Topic is solved

EDIT: named the title something more descriptive. ** WARNING: this post is probably long, but maybe I need this much detail to explain it all ** Okay, I'm going to try to explain this as best as I can, because at this point my project has become confused and wrapped around itself. First, I have an o...
by Gedrean
18 Aug 2020, 22:43
Forum: AHK Studio
Topic: AHK Studio
Replies: 1163
Views: 444375

Re: AHK Studio

I had a strange issue - I unzipped the zip file provided in the downloads, and it had two files that self-overwrote - there is a commands.xml, and a Commands.xml. W10, despite its development, is still not a case sensitive OS. How do we reconcile that? EDIT: I know that we can enable case sensitivit...
by Gedrean
26 Jul 2020, 18:26
Forum: Ask For Help
Topic: Send not working ? Topic is solved
Replies: 16
Views: 4288

Re: Send not working ? Topic is solved

Not sure i understand what you meant, but i tried without the click, no change. Looks like you figured out where he was going at least. So, it sounds like whatever app or game may be doing a keyboard hook of some type? There's this: https://www.autohotkey.com/docs/commands/_InstallKeybdHook.htm May...
by Gedrean
26 Jul 2020, 13:09
Forum: Ask For Help
Topic: Problems getting windows by ahk_pid... Topic is solved
Replies: 4
Views: 1391

Re: Problems getting windows by ahk_pid... Topic is solved

Rohwedder wrote:
26 Jul 2020, 12:51
I love this mishmash!
By the way, #Warn would have shown an error.
And now I've learned something new.
by Gedrean
26 Jul 2020, 12:26
Forum: Ask For Help
Topic: Problems getting windows by ahk_pid... Topic is solved
Replies: 4
Views: 1391

Re: Problems getting windows by ahk_pid... Topic is solved

Hallo, perhaps with: PageWindow := WinExist("ahk_pid " the_pid) Oh my god... I was using legacy syntax without thinking about expression syntax, and I thought I had to do that because i used to do IfWinActive / IfWinExist, and I still use WinActivate... Honestly, some days I TRULY wish that AHK wou...
by Gedrean
26 Jul 2020, 12:16
Forum: Ask For Help
Topic: Send not working ? Topic is solved
Replies: 16
Views: 4288

Re: Send not working ? Topic is solved

Very possibly. It could be that the application has keyboard hooks directly rather than accepting sendinput, which sometimes is broken with modern DirectInput stuff? Maybe look into SendPlay instead if it's a game? What happens if you create a hotkey (liek F7 or whatever that isn't already part of t...
by Gedrean
26 Jul 2020, 11:18
Forum: Ask For Help
Topic: Send not working ? Topic is solved
Replies: 16
Views: 4288

Re: Send not working ? Topic is solved

*RButton:: KeyWait RButton, T0.1 ; Wait until the button is released If ErrorLevel ; Why? { Click, down ; So you send a down click Send, {1} <-- This doesn't work, why ? ; And then send 1? } return ~RButton UP:: Click, up return TBH I'm not sure why you're checking error level at that point. So, wh...
by Gedrean
26 Jul 2020, 11:09
Forum: Ask For Help
Topic: Problems getting windows by ahk_pid... Topic is solved
Replies: 4
Views: 1391

Problems getting windows by ahk_pid... Topic is solved

Hey so I've been puzzling over this for a little while. I have a browser that opens a local static page (Trying to code this to work with any browser). I have no problem capturing the ID of that window because the title is known and is probably very unique to this project (a specific ID is included ...
by Gedrean
20 Jul 2020, 16:30
Forum: Editors
Topic: Setup Notepad++ for AutoHotkey
Replies: 138
Views: 339856

Re: Setup Notepad++ for AutoHotkey

jNizM Hey, I thought I'd suggest this: In your Github page, your readme.md suggests the following lines for making a .reg file (and the corresponding AHK script)... Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command] @="C:\\Program Files (x86)\\Notepad++\\no...
by Gedrean
02 Jun 2019, 09:43
Forum: Ask For Help
Topic: using FileCopy with expression
Replies: 5
Views: 1108

Re: using FileCopy with expression

The % appending is to force expression support in arguments that don't natively support Expressions. FileCopy supports %var% syntax as per https://autohotkey.com/docs/commands/FileCopy.htm I imagine: src := "C:\file.txt" dst := "C:\file2.txt" FileCopy, %src%, %dst% Should work? You may need to omit ...
by Gedrean
02 Jun 2019, 09:26
Forum: Ask For Help
Topic: Multi-Instance Hotkeys, Critical, and Sleep
Replies: 0
Views: 400

Multi-Instance Hotkeys, Critical, and Sleep

Hi! I have a script I've been building, it contains a couple of hotkeys. These hotkey functions perform actions on different active web-browser (typically firefox) windows. They work with loops, and I expect (and have programmed for) multiple instances of each hotkey to be running at once (thus, eac...

Go to advanced search