Search found 83 matches
- 25 Jan 2024, 18:08
- Forum: Ask for Help (v2)
- Topic: How to open specific file with specific app, using Run command? Topic is solved
- Replies: 4
- Views: 650
Re: How to open specific file with specific app, using Run command? Topic is solved
Thanks! So, in my menu I put: MenuPopup.Add("• Edit Beijer.bot.ahk in VS Code", EditBeijerBot) And lower down in my script, I created this function: EditBeijerBot(*) { editor := EnvGet('PROGRAMFILES') '\Microsoft VS Code\Code.exe' edit := Run(editor ' "' A_ScriptFullPath '"') } I'm sure the code is ...
- 25 Jan 2024, 11:04
- Forum: Ask for Help (v2)
- Topic: How to open specific file with specific app, using Run command? Topic is solved
- Replies: 4
- Views: 650
How to open specific file with specific app, using Run command? Topic is solved
How can I open my AutoHotkey script for editing in VS Code, from a menu item in my script? I've be looking at this: https://www.autohotkey.com/docs/v2/lib/Run.htm However, I can't seem to figure out how to do it. Here's my menu item code: MenuPopup.Add("• Edit Beijer.bot.ahk in VS Code", (*) => Run(...
- 23 Jan 2024, 18:56
- Forum: Ask for Help (v2)
- Topic: How to always open a menu in the centre of my (main) screen? Topic is solved
- Replies: 4
- Views: 711
Re: How to always open a menu in the centre of my (main) screen? Topic is solved
Sorry, I found it (Active Window Position). It's late, think it's time for bed
- 23 Jan 2024, 18:46
- Forum: Ask for Help (v2)
- Topic: How to always open a menu in the centre of my (main) screen? Topic is solved
- Replies: 4
- Views: 711
Re: How to always open a menu in the centre of my (main) screen? Topic is solved
Great, thanks! Which bit should I be looking at to get the x and y coordinates in Window Spy?
I tried this, but it doesn't seem to work:
I tried this, but it doesn't seem to work:
Code: Select all
`::MenuPopup.Show(38, 56) ; Backtick (`) opens Beijer.bot
- 23 Jan 2024, 17:53
- Forum: Ask for Help (v2)
- Topic: How to always open a menu in the centre of my (main) screen? Topic is solved
- Replies: 4
- Views: 711
How to always open a menu in the centre of my (main) screen? Topic is solved
Hi guys, Does anyone know how to make it so my menu always opens in the centre of my main screen? Here is my script: /* ==================================================== Information: ; Original code borrowed from: https://github.com/kdalanon/ChatGPT-AutoHotkey-Utility (‘ChatGPT-AutoHotkey-Utility...
- 23 Jan 2024, 11:34
- Forum: Ask for Help (v1)
- Topic: AHK clipboard manager? (A reliable one that works!)
- Replies: 4
- Views: 2499
- 22 Jan 2024, 14:15
- Forum: Ask for Help (v2)
- Topic: Help with function to strip ‘soft hyphens’ (unicode character U+00AD) from selection Topic is solved
- Replies: 6
- Views: 1449
Re: Help with function to strip ‘soft hyphens’ (unicode character U+00AD) from selection Topic is solved
Wow, thanks a lot, it works perfectly. And I can pretty much understand all of it. Slowly learning.
is the same as
right?
Code: Select all
A_Clipboard := StrReplace(A_Clipboard, Chr(173))
Code: Select all
A_Clipboard := StrReplace(A_Clipboard, Chr(173), "")
- 22 Jan 2024, 11:41
- Forum: Ask for Help (v2)
- Topic: Help with function to strip ‘soft hyphens’ (unicode character U+00AD) from selection Topic is solved
- Replies: 6
- Views: 1449
Help with function to strip ‘soft hyphens’ (unicode character U+00AD) from selection Topic is solved
I am trying to figure out a way to strip any ‘soft hyphens’ (unicode character: U+00AD) from a selection. With a little help from ChatGPT (yes, I know), I came up with this (which doesn't work): RemoveSoftHyphens(*) { Clipboard := "" ; Clear the clipboard SendInput("^c") ; Copy the current selection...
- 21 Jan 2024, 17:54
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Re: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
Ha ha, I think I was confused because if the file (comments.docx) is already in the folder, it won't create a second one. This led me to believe the script wasn't always working. To confuse matters more, I was also trying to run it from inside my multi-script launching script*, which didn't work. (*...
- 21 Jan 2024, 15:27
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Re: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
Thanks so much @WKen! It works perfectly.
- 21 Jan 2024, 12:46
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Re: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
^+n:: flnm := "comments.docx" if !(path := getpath()) or (fileexist(path "\" flnm)) return oWord := ComObjCreate("word.application") oWord.Documents.Add oWord.Visible := True oword.activeDocument.SaveAs(path "\" flnm) return getpath() { WinGetClass class, % "ahk_id " hwnd := WinExist("A") if (class...
- 20 Jan 2024, 17:52
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Re: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
Thanks/bedankt!
inderdaad:
ahk_class ThunderRT6FormDC
ahk_exe XYplorer.exe
ahk_pid 14800
ahk_id 460124
inderdaad:
ahk_class ThunderRT6FormDC
ahk_exe XYplorer.exe
ahk_pid 14800
ahk_id 460124
- 20 Jan 2024, 16:45
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Re: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
Thanks burque505 ! I'll have a look! I also found this: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=101873&p=555936#p555936 … which sort of works, albeit not reliably, and also not in XYplorer (although I think I can fix that by getting the window class for XYplorer with Window Spy; not s...
- 20 Jan 2024, 16:17
- Forum: Ask for Help (v2)
- Topic: Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
- Replies: 10
- Views: 3500
Create new empty.docx (or copy empty.docx saved somewhere on my computer) in(to) current folder with shortcut? Topic is solved
Hi guys, Does anyone know how to achieve this: 1. I click in a folder, either in Windows Explorer or in XYplorer 2. press a keyboard shortcut 2a. a new .docx file is created in the current folder or 2b. a .docx somewhere on my computer is copied into the current folder Any pointers would be greatly ...
- 20 Jan 2024, 14:14
- Forum: Ask for Help (v1)
- Topic: How to create and name a new document file(.docs) in a selected folder?
- Replies: 6
- Views: 811
Re: How to create and name a new document file(.docs) in a selected folder?
What about this?: #\:: flnm := "comments.docx" if !(path := getpath()) or (fileexist(path "\" flnm)) return oWord := ComObjCreate("word.application") oWord.Documents.Add oWord.Visible := True oword.activeDocument.SaveAs(path "\" flnm) return getpath() { WinGetClass class, % "ahk_id " hwnd := WinExi...
- 11 Jan 2024, 09:12
- Forum: Ask for Help (v2)
- Topic: How to integrate a SendInput string into Menu code item? Topic is solved
- Replies: 2
- Views: 328
Re: How to integrate a SendInput string into Menu code item? Topic is solved
Thanks @Descolada! That works perfectly, and will allow me to simplify my code a bit. I'm still very new at trying to write AHK code myself (although I have been using it for years).
- 11 Jan 2024, 07:33
- Forum: Ask for Help (v2)
- Topic: How to integrate a SendInput string into Menu code item? Topic is solved
- Replies: 2
- Views: 328
How to integrate a SendInput string into Menu code item? Topic is solved
Newbie question here. I am wondering if it is possible to integrate the following function ( UniqueTaxpayerReference(*) ) into the menu code? Instead of having to have the menu code separate from the function code, particularly if it's just something simple like paste a string if a menu item is clic...
- 10 Jan 2024, 12:00
- Forum: Visual Studio Code
- Topic: Quick tutorial for setting up VSCode for AHK
- Replies: 16
- Views: 23116
Re: Quick tutorial for setting up VSCode for AHK
If you install AutoHotkey v2, it will ask you which editor to use the first time you attempt to edit a script. VS Code should be detected automatically, so you can select it from the list. This list can also be accessed from the Dash at any time, to change the default editor. Thanks, it was very ea...
- 07 Jan 2024, 12:25
- Forum: Ask for Help (v2)
- Topic: Create tooltips for menu items (in AHK v2)?
- Replies: 7
- Views: 874
Re: Create tooltips for menu items (in AHK v2)?
I am surprised to see you didn’t retain the part of your ClipboardPaste functions you were shown to restore the original contents of your clipboard, which I believe you asked for. You kept part of it (the Sleep(500) ), which is unneeded without the part that restores the contents. Ah, yes. I haven'...
- 07 Jan 2024, 11:53
- Forum: Ask for Help (v2)
- Topic: Create tooltips for menu items (in AHK v2)?
- Replies: 7
- Views: 874
Re: Create tooltips for menu items (in AHK v2)?
I don't suppose anyone reading this might be able to help me integrate this tooltip code into my own little app? Below is my complete code, which I have cobbled together from various sources, mainly this great little script for ChatGPT actions on selected text. I'm aware the code is most likely an u...