๐ bridged from !ahk@programming.dev by Tidepool
Buy Steve Gray (Lexikos) a Coffee: AHK dev
Buy Steve Gray (Lexikos) a Coffee: AHK dev
He's digging deeper into maintenance and could use our help!
How do you delete the first character of a variable, even if it's `n?
How do you delete the first character of a variable, even if it's `n?
My current script successfully deletes the first character in a string, unless that character is a newline (`n). Even trying to put m in front of (?) to attempt to make it multiline changes nothing:
Contents := RegExReplace(Contents, '(?)^.{0,1}')
Suppose the variable Contents is:
123 456
It'll delete 1, then 2, then 3 (if you call it 3 times), but then it will never make it past the line break and get stuck and won't reach 456. Any help would be appreciated! I'm a Regex newb, but I'm not glued to Regex by any means and would be happy to use any other function to be able to do this. I'm just hopefully trying to do it all in one line, though I will use two lines if it comes down to it.
Can AHK apply a dynamic filename to a file it makes?
Can AHK apply a dynamic filename to a file it makes?
For example, can FileAppend() be set to create something like %COMPUTERNAME%test.txt? I have no idea of what the code for this would be like, if so.
Is there a way to make AHK perform actions when you click on the tray tip that TrayTip() pops out?
Is there a way to make AHK perform actions when you click on the tray tip that TrayTip() pops out?
I would like a TrayTip that one of my scripts puts out to open the same, specific file when clicked, but I see nothing about this in the documentation. While I'm at it, is there a way to change the height of the tray tip?
Script Showcase | AutoHotkey v2
Script Showcase | AutoHotkey v2
Q&A, script sharing, troubleshooting, etc.
Does anyone use AHK with Adobe Acrobat Pro?
Does anyone use AHK with Adobe Acrobat Pro?
Using Window Spy, Acrobat Pro doesn't appear to have button IDs to use with ControlClick. I can't find shortcut keys for almost any of the actions, and trying to navigate through the buttons with F6 and tab seems like a no-go too. The only ways I see to do this are to hardcode button positions or use or ImageSearch, both of which I find don't work well because coordinates change with window resizing or different resolution displays.
Does anyone have a different approach or know of a way to handle different displays and window sizes? In particular, I want to activate "Visually digitally sign".