Search found 17050 matches
- Today, 04:03
- Forum: Editors
- Topic: What editors do you use for use with DLLs and COM?
- Replies: 2
- Views: 134
Re: What editors do you use for use with DLLs and COM?
I’m not sure what you’re asking. To connect to and interface with a COM object, there’s nothing to write in C or any other language. Just interface with the object per the Microsoft specs directly in AHK. Is that what you mean? Is below an example of what you were thinking might be written in C/C++/...
- Today, 03:30
- Forum: Ask for Help (v2)
- Topic: Why the text color doesn't change Topic is solved
- Replies: 2
- Views: 123
Re: Why the text color doesn't change Topic is solved
The option starts with a c. It’s the same reason it’s cRed and not Red. So you just need to add a c before the color value:
Code: Select all
ctl.Opt('c' cc)
- Yesterday, 22:18
- Forum: Ask for Help (v1)
- Topic: How to program a "hard space"
- Replies: 5
- Views: 229
Re: How to program a "hard space"
@NimRinon — The moderators have added code tags to each your posts so far and have added comments asking you to do the same. Please don’t post code again without putting [code]code[/code] tags around it. Thank you.
- Yesterday, 14:17
- Forum: Ask for Help (v1)
- Topic: Security warning for v 1.1
- Replies: 2
- Views: 266
Re: Security warning for v 1.1
You probably would have to override your protection. As far as feeling comfortable with it, if you download the zip file from the download page, you can compare the hash code that lexikos shows in the announcement to know it's the same file.
- Yesterday, 10:58
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 15
- Views: 979
Re: Why does this script sometimes does nothing?
I don't know why that would be happening. So you're saying that this Reload version also intermittently fails to move the window after the program closes and you run it again and the window appears again?
- 20 May 2024, 15:38
- Forum: Ask for Help (v2)
- Topic: Script to add plugin to FF
- Replies: 3
- Views: 286
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...
- 20 May 2024, 12:57
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 15
- Views: 979
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...
- 20 May 2024, 12:54
- Forum: Gaming Help (v1)
- Topic: Hold key does not work
- Replies: 3
- Views: 284
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...
- 20 May 2024, 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: 166
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
- 19 May 2024, 23:00
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1284
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...
- 19 May 2024, 22:51
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 482
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 ...
- 19 May 2024, 19:40
- Forum: Gaming Help (v1)
- Topic: Hold key does not work
- Replies: 3
- Views: 284
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.
- 19 May 2024, 19:33
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 482
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.
- 19 May 2024, 03:50
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1284
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...
- 19 May 2024, 02:38
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1284
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.
- 19 May 2024, 02:15
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 482
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 ...
- 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: 307
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: 468
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: 339
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: 15
- Views: 979
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
}