Search found 17045 matches
- Today, 15:38
- Forum: Ask for Help (v2)
- Topic: Script to add plugin to FF
- Replies: 3
- Views: 255
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...
- Today, 12:57
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 12
- Views: 732
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...
- Today, 12:54
- Forum: Gaming Help (v1)
- Topic: Hold key does not work
- Replies: 3
- Views: 237
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...
- Today, 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: 148
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
- Yesterday, 23:00
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 11
- Views: 1167
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...
- Yesterday, 22:51
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 456
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 ...
- Yesterday, 19:40
- Forum: Gaming Help (v1)
- Topic: Hold key does not work
- Replies: 3
- Views: 237
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.
- Yesterday, 19:33
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 456
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.
- Yesterday, 03:50
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 11
- Views: 1167
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...
- Yesterday, 02:38
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 11
- Views: 1167
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.
- Yesterday, 02:15
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 456
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 ...
- Yesterday, 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: 242
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...
- 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.
- 18 May 2024, 11:26
- Forum: Ask for Help (v1)
- Topic: Incorrect usage of NotifyTrayClick?
- Replies: 1
- Views: 306
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.
- 18 May 2024, 09:34
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 12
- Views: 732
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
}
- 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: 160
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 ...
- 18 May 2024, 02:45
- Forum: Ask for Help (v2)
- Topic: Manipulate PDF
- Replies: 13
- Views: 1046
Re: Manipulate PDF
The first one isn’t correct either unless you’re running it with v1. Do you see why?
- 17 May 2024, 21:55
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 12
- Views: 732
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.
- 17 May 2024, 21:50
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 12
- Views: 732
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...
- 17 May 2024, 18:57
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 12
- Views: 732
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?