AHKathon! [AHK Hackathon] 12/17

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: AHKathon! [AHK Hackathon] 12/17

Re: AHKathon! [AHK Hackathon] 12/17

Post by joedf » 21 Jan 2018, 00:51

I would like to congratulate the winners and especially Masonjar13 for running the first Hackathon. :dance:
Thank you :+1:

Re: AHKathon! [AHK Hackathon] 12/17

Post by Masonjar13 » 20 Jan 2018, 16:47

Finally, we have scores! :dance: (Note: scale is 1-7, and "Performance" was nulled out.)

3rd: jeeswg - 4.5

2nd: Micromegas - 5.1

1st: Helgef - 6.1

Congratulations, and thanks to everyone who participated! I did make some notes regarding each entry (not very nit-picky since there were few entries); if you'd like to read them, as well as your score breakdown, please PM me! :) I will be PM'ing the 3 winners with confirmation of accepting and choosing of game keys, or lack thereof.

Concerning future AHKathons
I'd like to gather a small group of judges for future AHKathons. Note that judges may not participate, or at the very least, may not be considered for any prizes. Alternatively, we could have an open (community) vote. Or both! In which case the judges would narrow down the entries, then the community would decide winners.. or vice-versa. Please voice your opinions on this, either here in the thread or you may PM me, including if you'd like to be a judge, I'd really appreciate it!

Re: AHKathon! [AHK Hackathon] 12/17

Post by Masonjar13 » 29 Dec 2017, 11:19

Hey everyone, quick update for you: I ended up leaving sooner than later (by almost a month), so I won't be able to score them til after I get back home on the 8th. Thank you for your patience :)

Re: AHKathon! [AHK Hackathon] 12/17

Post by Georgie Munteer » 16 Dec 2017, 02:37

jeeswg wrote:entry

Code: [Select all] [Expand]GeSHi © Codebox Plus

I like all entries but yours would be my number one pick, talk about outside the box thinking :thumbup:

Re: AHKathon! [AHK Hackathon] 12/17

Post by Micromegas » 13 Dec 2017, 14:42

Thanks, Helgef!

Re: AHKathon! [AHK Hackathon] 12/17

Post by Helgef » 13 Dec 2017, 06:46

By popular demand (n=1), I will make a brief comment on what I mean with injected mouse events. It simply means mouse events not generated by actual use of a mouse, specifically mouse events generated by windows function such as sendInput or mouse_event. Typical use cases would be when you run code from the help forum, protecting you against scripts that starts making clicks here and there. But potentally also could protect against malicious software, I guess that is pretty rare though.

Cheers.

Re: AHKathon! [AHK Hackathon] 12/17

Post by waetherman » 09 Dec 2017, 18:17

I pronounce it Ah-cat-on

Re: AHKathon! [AHK Hackathon] 12/17

Post by Capn Odin » 09 Dec 2017, 12:08

I pronounce the AHK as the individual characters in danish and the rest as athon. The name of the char H in english feel unnatural to me, so I guess I unconsciously avoid it.

Re: AHKathon! [AHK Hackathon] 12/17

Post by Micromegas » 09 Dec 2017, 12:02

How does one actually (Hi waetherman ;) ) pronounce the name "AHKathon"? "a hackathlon" or Ay-eitch-kay-athlon?

Re: AHKathon! [AHK Hackathon] 12/17

Post by Masonjar13 » 08 Dec 2017, 21:06

And that's time! Bit late actually, but no problem, started late accidentally anyway. :P All entries have been taken and no more will be accepted. I'll score them and post the winners asap :thumbup:

Re: AHKathon! [AHK Hackathon] 12/17

Post by Helgef » 08 Dec 2017, 20:45

AntiClick
This program protects against injected mouse events.

How to
Select the events you want to block in the settings dialog, optionally, allow AHK generated events. Settings can be accessed via the tray menu. Script can be exited via esc or tray menu.

Limitations

  • Doesn't block messages sent directly to a window.
  • Nearly untested.

Download

This is my entry, I do not want any rewards.
AntiClick.rar
File contents:
AntiClick.ahk
includes\globalsAndConstants.ahk
includes\gui.ahk
includes\mouseHook.ahk
includes\settings.ahk
settings\settings.ini (created)
(5.1 KiB) Downloaded 21 times


Cheers.

Re: AHKathon! [AHK Hackathon] 12/17

Post by Capn Odin » 08 Dec 2017, 18:56

Micromegas wrote:For my entry, I took the liberty to deviate quite a bit from the task. Instead of auto-click, for which I have not felt a need so far, I wrote CheeseCrumbs, a recorder that looks around the place where you click, records the bitmap, and creates code to insert that into any script you're writing. By "cheese crumbs", I mean the little bitmaps, which lead to the execution of the script you're writing like breadcrumbs were supposed to lead Hansel and Gretel out of the forest.
This is pretty neat.

Re: AHKathon! [AHK Hackathon] 12/17

Post by Micromegas » 08 Dec 2017, 18:51

For my entry, I took the liberty to deviate quite a bit from the task. Instead of auto-click, for which I have not felt a need so far, I wrote CheeseCrumbs, a recorder that looks around the place where you click, records the bitmap, and creates code to insert that into any script you're writing. By "cheese crumbs", I mean the little bitmaps, which lead to the execution of the script you're writing like breadcrumbs were supposed to lead Hansel and Gretel out of the forest.

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: AHKathon! [AHK Hackathon] 12/17

Post by Capn Odin » 08 Dec 2017, 16:35

ImageImage

Re: AHKathon! [AHK Hackathon] 12/17

Post by Capn Odin » 08 Dec 2017, 15:58

This is not my entry.

Code: [Select all] [Expand]GeSHi © Codebox Plus


Code: [Select all] [Expand]GeSHi © Codebox Plus

Image

Re: AHKathon! [AHK Hackathon] 12/17

Post by waetherman » 08 Dec 2017, 05:47

jeeswg wrote:Do either of you use Windows 10? Windows 10 seems to have problems with everything, particularly standard MS apps like Calculator. Try commenting out the lines that check the canvas size and specifying values of vWinX and vWinY approximately where the canvas begins.

W10 indeed! Your script is pretty neat and pretty much outclassed other scripts in the competition for a 2nd place (1st goes to Cap of course). You can somewhat support W10 by replacing

Code: [Select all]GeSHi © Codebox Plus

WinGetPos, vWinX, vWinY, vWinW, vWinH, % "ahk_id " hCtl
if (vWinW < 925) || (vWinH < 180)
{
MsgBox, % "error: canvas size is too small, recommend at least: w925 h180"
return
}

with

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: AHKathon! [AHK Hackathon] 12/17

Post by jeeswg » 08 Dec 2017, 04:06

Do either of you use Windows 10? Windows 10 seems to have problems with everything, particularly standard MS apps like Calculator. Try commenting out the lines that check the canvas size and specifying values of vWinX and vWinY approximately where the canvas begins.

Re: AHKathon! [AHK Hackathon] 12/17

Post by waetherman » 08 Dec 2017, 03:42

jeeswg wrote:- Could you report what the XYWH values are. Thanks.
MsgBox, % Clipboard := Format("x{} y{} w{} h{}", vWinX, vWinY, vWinW, vWinH)
vWinW and vWinH don't really matter, but the script needs values for vWinX and vWinY.
- You could comment out the lines that check the canvas size and see if the script works. You could also increase the delay as a safety feature.
- Which OS do you use? I've already tried quite hard to make this work on Paint for Windows XP and 7, and to take into account a ClassNN that varies.


I have same problem.
x0 y139 w0 h880
https://i.imgur.com/7ogpfhn.png

Re: AHKathon! [AHK Hackathon] 12/17

Post by jeeswg » 08 Dec 2017, 01:15

- Could you report what the XYWH values are. Thanks.
MsgBox, % Clipboard := Format("x{} y{} w{} h{}", vWinX, vWinY, vWinW, vWinH)
vWinW and vWinH don't really matter, but the script needs values for vWinX and vWinY.
- You could comment out the lines that check the canvas size and see if the script works. You could also increase the delay as a safety feature.
- Which OS do you use? I've already tried quite hard to make this work on Paint for Windows XP and 7, and to take into account a ClassNN that varies.

Re: AHKathon! [AHK Hackathon] 12/17

Post by boiler » 08 Dec 2017, 00:31

It says my canvas size is too small even though it's larger than the recommended size.

Top