AHKathon! [AHK Hackathon] 12/17

Talk about anything
User avatar
jeeswg
Posts: 4605
Joined: 19 Dec 2016, 01:58
Location: UK

Re: AHKathon! [AHK Hackathon] 12/17

08 Dec 2017, 00:23

entry

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

User avatar
boiler
Posts: 2371
Joined: 21 Dec 2014, 02:44

Re: AHKathon! [AHK Hackathon] 12/17

08 Dec 2017, 00:31

It says my canvas size is too small even though it's larger than the recommended size.
User avatar
jeeswg
Posts: 4605
Joined: 19 Dec 2016, 01:58
Location: UK

Re: AHKathon! [AHK Hackathon] 12/17

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.
User avatar
waetherman
Posts: 112
Joined: 05 Feb 2016, 17:00

Re: AHKathon! [AHK Hackathon] 12/17

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
Image
User avatar
jeeswg
Posts: 4605
Joined: 19 Dec 2016, 01:58
Location: UK

Re: AHKathon! [AHK Hackathon] 12/17

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.
User avatar
waetherman
Posts: 112
Joined: 05 Feb 2016, 17:00

Re: AHKathon! [AHK Hackathon] 12/17

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] [Download] 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] [Download] GeSHi © Codebox Plus

Image
User avatar
Capn Odin
Posts: 1288
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: AHKathon! [AHK Hackathon] 12/17

08 Dec 2017, 15:58

This is not my entry.

Code: [Select all] [Expand] [Download] (AutoColourClicker.ahk)GeSHi © Codebox Plus


Code: [Select all] [Expand] [Download] (AutoColourClickerClass.ahk)GeSHi © Codebox Plus

Image
Last edited by Capn Odin on 08 Dec 2017, 19:13, edited 7 times in total.
Please excuse my spelling I am dyslexic.
User avatar
Capn Odin
Posts: 1288
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: AHKathon! [AHK Hackathon] 12/17

08 Dec 2017, 16:35

ImageImage
Please excuse my spelling I am dyslexic.
User avatar
Micromegas
Posts: 188
Joined: 28 Apr 2015, 23:02
Location: Germany

Re: AHKathon! [AHK Hackathon] 12/17

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] [Download] GeSHi © Codebox Plus

User avatar
Capn Odin
Posts: 1288
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: AHKathon! [AHK Hackathon] 12/17

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.
Please excuse my spelling I am dyslexic.
Helgef
Posts: 3033
Joined: 17 Jul 2016, 01:02
Contact:

Re: AHKathon! [AHK Hackathon] 12/17

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.
User avatar
Masonjar13
Posts: 1347
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

Re: AHKathon! [AHK Hackathon] 12/17

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:
User avatar
Micromegas
Posts: 188
Joined: 28 Apr 2015, 23:02
Location: Germany

Re: AHKathon! [AHK Hackathon] 12/17

09 Dec 2017, 12:02

How does one actually (Hi waetherman ;) ) pronounce the name "AHKathon"? "a hackathlon" or Ay-eitch-kay-athlon?
User avatar
Capn Odin
Posts: 1288
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: AHKathon! [AHK Hackathon] 12/17

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.
Please excuse my spelling I am dyslexic.
User avatar
waetherman
Posts: 112
Joined: 05 Feb 2016, 17:00

Re: AHKathon! [AHK Hackathon] 12/17

09 Dec 2017, 18:17

I pronounce it Ah-cat-on
Image
Helgef
Posts: 3033
Joined: 17 Jul 2016, 01:02
Contact:

Re: AHKathon! [AHK Hackathon] 12/17

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.
User avatar
Micromegas
Posts: 188
Joined: 28 Apr 2015, 23:02
Location: Germany

Re: AHKathon! [AHK Hackathon] 12/17

13 Dec 2017, 14:42

Thanks, Helgef!
Georgie Munteer

Re: AHKathon! [AHK Hackathon] 12/17

16 Dec 2017, 02:37

jeeswg wrote:entry

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

I like all entries but yours would be my number one pick, talk about outside the box thinking :thumbup:
User avatar
Masonjar13
Posts: 1347
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

Re: AHKathon! [AHK Hackathon] 12/17

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 :)
User avatar
Masonjar13
Posts: 1347
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

Re: AHKathon! [AHK Hackathon] 12/17

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!

Return to “Offtopic”

Who is online

Users browsing this forum: No registered users and 3 guests