3 ms·
I used to love writing stuff like this back in highschool, when I "knew" c++. Now, if you were one of my customers I'd just write you an autohotkey script to s
by MrLeap 8y ago
I used to love writing stuff like this back in highschool, when I "knew" c++.
Now, if you were one of my customers I'd just write you an autohotkey script to solve your problem. Monetizing 20 line AHK scripts seems sketchy, so I'll just try to help.
Here's handy documentation that'll help you achieve what you're after.
https://autohotkey.com/docs/commands/WinMove.htm https://autohotkey.com/docs/commands/WinMove.htm <- the main function that you'll use for window adjustment. Can bind it to a hotkey or whatever you want. Look at events if you want it to be automatic.
https://autohotkey.com/board/topic/54443-box-ie-draw-simple-gui-based-boxes-on-screen/ https://autohotkey.com/board/topic/54443-box-ie-draw-simple-... <- would help visualize your snap box
https://www.autohotkey.com/docs/commands/Gui.htm https://www.autohotkey.com/docs/commands/Gui.htm <- So you can configure your snap area.
Should be an hour or two job if you're reasonably familiar with AHK.
- kilian 8y agoThe fact that something is a 20 line AHK script that takes you two hours should never keep you (or anyone doing this) from monetizing the result.
- MrLeap 8y agoI mean, I'd happily charge 100$ an hour to write this for someone, but to set up a web page / stripe or whatever / splash webpage, bleh. Something in me wants the a solution I sell to take more effort to create than the checkout aisle. I get what you're saying though. My attitude definitely stymies my earnings potential. Maybe someday I'll meet a partner to aggressively monetize things that I do that would normally be helpful freebies on the internet ;)
- nickjj 8y agoI'd be down for paying you $100 to do this if you can get it to work flawlessly as per the specifications of the explanation video. I'd also be cool with hopping on a Hangouts to go over a more formal spec list and expectations. The only stipulation I have is it needs to be released under an MIT license. I wouldn't monetize it, but I would like to openly share and distribute the script with others (giving you credit of course). If you're interested email me at nick.janetakis@gmail.com.
- geoah 8y agoThat was 100 per hour, not 100 for the whole thing.
- crawfordcomeaux 8y agoOf course not. It's the desire to freely help and contribute to others' lives that would keep me from monetizing it.
- nickjj 8y agoThanks. I already have an AHK script that launches windows and moves them to exact positions. That's only half the problem. The problem is when recording a screencast things aren't static. I would like be able to move things around on a whim. I only hacked around with AHK for a little bit but I don't see anything in those GUI docs that show how to set a size constraint and snap windows to a specific zone of a monitor and still respect Winwdows' maximize and splitting. Where do you see that?
- MrLeap 8y agoWell, I threw together a solution really fast that looks like this. https://postimg.cc/image/5ejd5qmzh/ https://postimg.cc/image/5ejd5qmzh/ It doesn't override your windows snap behaviors. To do that specifically I'd have to hook into window move events and try to duplicate the functionality as it is in windows. What this does, is build and draw a box with the sliders on the left.. Then when you press alt+S it'll move and resize whatever your active window is into the box. Not exactly what you want, but it does a thing ;)