Search found 17045 matches

by boiler
Yesterday, 15:38
Forum: Ask for Help (v2)
Topic: Script to add plugin to FF
Replies: 3
Views: 259

Re: Script to add plugin to FF

MileHiDave - Please don't make any more posts that contain code without adding [code][/code] tags! Here is how you do it: add code tags.png The code, I think, should work now but I am still having issues: You keep saying this as if you feel confident in your grasp of AHK syntax, but the various thi...
by boiler
Yesterday, 12:57
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 770

Re: Why does this script sometimes does nothing?

You can try that. If you’re going to do that, then there’s no reason for the loop because the Reload will start it over before it has a chance to loop, so it’s like a built in loop: Menu, Tray, Icon, Icons\shell32_184.ico WinWait, ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe Win...
by boiler
Yesterday, 12:54
Forum: Gaming Help (v1)
Topic: Hold key does not work
Replies: 3
Views: 248

Re: Hold key does not work

It only presses it down once, and it holds it down. That’s what you have the hotkey coded to do. You don’t have it set up to press the key over and over. Before the correction, it was releasing it immediately. Now it holds it down until you press Numpad1 again. Perhaps holding it down doesn’t have t...
by boiler
Yesterday, 07:43
Forum: Ask for Help (v2)
Topic: Unable to execute code that waits for one process to exit before exiting another process. Topic is solved
Replies: 2
Views: 152

Re: Unable to execute code that waits for one process to exit before exiting another process. Topic is solved

For one thing, aren't you finding that your script immediately ends as soon as you run it? You would have to add Persistent at the top for it to continue running so the timer could keep going. And then, what are you trying to accomplish with the line below and why?

Code: Select all

SetTimer , 0
by boiler
19 May 2024, 23:00
Forum: Scripts and Functions (v2)
Topic: CSVtoDict v2
Replies: 11
Views: 1188

Re: CSVtoDict v2

…none of the solutions worked in all cases for me because the tool that I'm working on has some special requirements for CSV parsing: Users could save data from Excel with multi-line quoted values, so the file can have \n and \r\n line endings. Users could edit the CSV file from a text editor, so t...
by boiler
19 May 2024, 22:51
Forum: Bug Reports
Topic: loop parse "CSV" doesn't work for some CSV
Replies: 9
Views: 461

Re: loop parse "CSV" doesn't work for some CSV

Your example of malformed CSV is not appearing in OP’s example. This is one row: Test 1,"1 1 1" The breaks within it keep it within the same row because they are inside quote (making them all within the second cell of that row. Then there is a line break separating that row from the next one, which ...
by boiler
19 May 2024, 19:40
Forum: Gaming Help (v1)
Topic: Hold key does not work
Replies: 3
Views: 248

Re: Hold key does not work

You have it triggering the w hotkey when you send it from the Numpad1 hotkey’s routine, which causes it to release right after you send it. You say it used to work, but I don’t see how it could have. Change the ~w:: to ~$w:: to prevent it from getting triggered when sending the w down.
by boiler
19 May 2024, 19:33
Forum: Bug Reports
Topic: loop parse "CSV" doesn't work for some CSV
Replies: 9
Views: 461

Re: loop parse "CSV" doesn't work for some CSV

I don’t believe your example is malformed. They are just line breaks inside of a quoted field, so it should be handled with a well-written library.
by boiler
19 May 2024, 03:50
Forum: Scripts and Functions (v2)
Topic: CSVtoDict v2
Replies: 11
Views: 1188

Re: CSVtoDict v2

This is a first cut at something that splits the lines appropriately and produces the desired output when quoted fields contain line breaks. Caveats are that it doesn't handle cases where the CSV file contains escaped quote characters (although that would be an easy modification), and it wouldn't be...
by boiler
19 May 2024, 02:38
Forum: Scripts and Functions (v2)
Topic: CSVtoDict v2
Replies: 11
Views: 1188

Re: CSVtoDict v2

That is more complicated because you can't simply split strings on line breaks. You would have to write a function that doesn't split on line breaks if they are between a pair of quotation marks.
by boiler
19 May 2024, 02:15
Forum: Bug Reports
Topic: loop parse "CSV" doesn't work for some CSV
Replies: 9
Views: 461

Re: loop parse "CSV" doesn't work for some CSV

That’s not an AHK bug. Or at least that’s not a valid test of whether there is what might be considered an AHK bug. That’s a case that you used which the example script does not handle. That script is not a proper test of whether parsing using the CSV delimiter option works with line breaks because ...
by boiler
19 May 2024, 01:56
Forum: Ask for Help (v1)
Topic: How to close an app window only when the mouse cursor over it? Topic is solved
Replies: 2
Views: 252

Re: How to close an app window only when the mouse cursor over it? Topic is solved

The parameters in a function call are expressions, and you must use quotes around literal strings in expressions, so this line is incorrect: If WinExist(ScreenClippingWindow ahk_class AutoHotkeyGUI) Should be: If WinExist("ScreenClippingWindow ahk_class AutoHotkeyGUI") What you’ve done is concatenat...
by boiler
18 May 2024, 12:05
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 8
Views: 450

Re: COM change font of highlighted text

I suppose that could help address the issue, but I don’t have experience with changing the language.
by boiler
18 May 2024, 11:26
Forum: Ask for Help (v1)
Topic: Incorrect usage of NotifyTrayClick?
Replies: 1
Views: 314

Re: Incorrect usage of NotifyTrayClick?

Do you realize that it's for clicks on the script's tray icon, not clicks in general? There's no reason for it to be so complex if it was just doing what simple hotkeys can do.
by boiler
18 May 2024, 09:34
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 770

Re: Why does this script sometimes does nothing?

For that, you would use WinWait and WinWaitClose:

Code: Select all

Menu, Tray, Icon, Icons\shell32_184.ico

loop {
	WinWait, ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe
	WinMove,,, 2821, 153, 1476, 1044
	WinWaitClose
}
by boiler
18 May 2024, 09:22
Forum: Ask for Help (v2)
Topic: i got a problem by using PixelGetColor function, please help me
Replies: 2
Views: 161

Re: i got a problem by using PixelGetColor function, please help me

RGB is not a valid parameter for v2 because it already returns RGB format, unlike in v1. I don’t see that it’s necessarily an issue or causing what you’re seeing, though. You are getting the coordinates from the active window’s client position (default coord mode in v2) using coordinates taken from ...
by boiler
18 May 2024, 02:45
Forum: Ask for Help (v2)
Topic: Manipulate PDF
Replies: 13
Views: 1048

Re: Manipulate PDF

The first one isn’t correct either unless you’re running it with v1. Do you see why?
by boiler
17 May 2024, 21:55
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 770

Re: Why does this script sometimes does nothing?

Note that I edited it above to remove the WinTitle parameters from the WinMove and WinWaitNotActive. They're not needed because they use the LastFoundWindow which was found in the WinWaitActive command.
by boiler
17 May 2024, 21:50
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 770

Re: Why does this script sometimes does nothing?

The hasMoved variable is only set to false when the window is not active. The window is not active all the time. But, on the times it is active, hasMoved stays as true after being moved. No, that is not correct. You used WinExist , not WinActive , so it will keep moving it as long as the window exi...
by boiler
17 May 2024, 18:57
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 770

Re: Why does this script sometimes does nothing?

But it doesn’t move it only once. It moves it every other time because the variable keeps flipping from true to false and vice versa every time through the loop. What about the logic you set up makes you think it only does it once?

Go to advanced search