News for hackers. Stuff that matters.
Re:Learning to code vs. learning to automate by kiddico on Monday December 09, 2019 @11:13AM (#21743790)
Your hex snippet produced my usual outcry when I read other's AHK scripts: "Wait, you can do THAT?!"

It's been added to my growing toolbox(which I lovingly call i3_emulator.exe), thanks!

Re:Learning to code vs. learning to automate by nickjj on Monday December 09, 2019 @12:05PM (#21744235)
The fun thing about it is I wouldn't classify myself as an AHK developer. I just picked apart a couple of scripts that I found on Google.

You can kind of understand what's going on with general programming experience and double checking their documentation.

In the hex code example it almost reads like pseudo code. Get the mouse position and store it into X / Y variables, grab the color under the mouse position, make it all lower case, copy it to the clipboard but trim out a few extra characters that was returned by a previous step.

How is your i3 emulator going? I tried that one tiling window manager AHK script (bug.n) but found it to be a little too buggy to use.