AutoHotkey

193 readers
1 users here now

founded 2 years ago
MODERATORS
1
 
 

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.

2
 
 

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.

3
 
 

That would be awesome, if so!

4
 
 

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?

5
 
 

It is the back end head for an HTPC that moslty just shows task manager and my plex dashboard just to show something. recently my partner showed me window-swap dot com and i have been putting that on instead. but with the monitor in portrait mode it doesnt look all that great with the video taking up the middle 1/3 of the screen with big bars on top and bottom. Not caring too much about video quality i wanted to see if there was a way to zoom the image so it would take up the full screen height and then pan back and forth slowly like the old and terrible pan & scan format. realizing i could do this manually with the built in Magnifier feature. I whipped out autohotkey and your gpt flavor of choice and threw this together. zoomed into 300% and moved the picture to a good spot and started the script. not the most intuitive thing but I'm still very in experienced and ti's been a minute since i was able to actually make a thing even remotely close to complete if not the most intuitive thing. AHK at link, would love feedback.

6
1
submitted 2 years ago* (last edited 2 years ago) by Kethal@lemmy.world to c/ahk@programming.dev
 
 

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".

7
1
submitted 2 years ago* (last edited 2 years ago) by biothoth@programming.dev to c/ahk@programming.dev
 
 

Q&A, script sharing, troubleshooting, etc.