- AHKBigglier.png (83.4 KiB) Viewed 1897 times

I presume you didn't read the rules?just me wrote:![]()
jeeswg wrote:I'd better watch that film Click, to give me some ideas. Is the film any good?
Talking about games when you have no idea about gamingjust me wrote:Auto-clicking! And the prize: "The top 3 winners will get Steam/UPlay game keys of incremental value."
Code: Select all
loop {
Click
}
I modified your code a lil bit:Capn Odin wrote:You will never again need to click manually, with this one simple script.Code: Select all
loop { Click }
Code: Select all
#NoEnv
SendMode Input
SetBatchLines -1
CoordMode Mouse, Client
send #r
WinWait Run ahk_class #32770 ahk_exe explorer.exe
send mspaint{Enter}
WinWait Untitled - Paint ahk_class MSPaintApp ahk_exe mspaint.exe
send ^w
WinWait Resize and Skew ahk_class #32770 ahk_exe mspaint.exe
send {right}{Tab}400{Tab}{Tab}{Space}+{Tab}400{Enter}
WinWaitActive Untitled - Paint ahk_class MSPaintApp ahk_exe mspaint.exe
start := A_TickCount
OFFSET_X := 5
OFFSET_Y := 152
DIAMETER := 250
CENTER_X := OFFSET_X + 200
CENTER_Y := OFFSET_Y + 200
STEPS := 1000
MouseMove, % CENTER_X, % CENTER_Y, 0
send ^{NumpadAdd}^{NumpadAdd}^
send {Lbutton down}
Loop 2 {
offset := A_Index - 1
Loop % STEPS {
if (offset == 0) {
baseval := A_Index
} else {
baseval := STEPS - A_Index + 1
}
angle := baseval * 0.1337
distance := DIAMETER/2 * (baseval/STEPS)
distance -= offset*8
x := CENTER_X + Sin( angle ) * distance
y := CENTER_Y + Cos( angle ) * distance
MouseMove, %x%, %y%, 0
if ( Mod(A_Index, 2) ) {
send {Lbutton up}
} else {
send {Lbutton down}
}
}
}
send {Lbutton up}
exitapp
esc::
pause::
exitapp
Exactly what I pray, day - after - day - after day : stop playing games !!nnnik wrote:Talking about games when you have no idea about gamingjust me wrote:Auto-clicking! And the prize: "The top 3 winners will get Steam/UPlay game keys of incremental value."
Spoiler
Entries will be judged on performance, UI, ease of use, and readability
Code: Select all
Loop {
A.(U,T,O,_,C,L,I,C.K,I,N,G)
A.(U,T,O,_,C,L,I,C.K,I,N,G)
sleep, 1000
}
return
f(arguments:="") {
local string, i, n
n := StrLen(arguments+(i:=!!(string:=""))) // 2
while (n--)
string .= %v%(SubStr(arguments, 2*i+1, 2)), i++, O := O + ((O - 2) ? -2 : 2)
return (string) ? (%w%(%v%(123) . %v%(58) . %v%(76) . %v%(125), string)) : 0
}
g() {
static dummy := g()
global a,u,t,o,_,c,l,i,k,n,g,v,w
v :="chr", w:="format"
o := (i := g := f() + 4)
_ := l := n := f(737884)
a := f(68767667657676)
u := f(7779858369) . f(956986697884)
(c:={}).k := t := f(85737884)
}
I am at a loss, I can't find the place where you do the DllCall("mouse_event"). (In my defense it is fairly late here, and I am not on my medication)A_AhkUser wrote:Can we say that it is at least more readable? No comments needed: the script speak for itself
Just a tadwaetherman wrote:I modified your code a lil bit
This is for AutoHotkey, not minimized JSA_AhkUser wrote:Can we say that it is at least more readable?
Such rules are actually great to demotivate people from putting too much effort in their participation. I mean, for example, I wanted to try and make as good enry as Captain's, but I'm not going to lose my time if I can get disqualified for some absurd reason like "entry too simple" or something like that.Micromegas wrote:Oh, don't worry about that, Capn Odin, there's always rule #5; that sounds like a good enough reason to invoke it.
OK, it seems it's time for a serious discussion. When you write "actually", do you actually have anything to back up your claim, such as a scientific study or some concrete real-life experience, or is it just your gut feel? Or do you mean that you yourself are feeling demotivated by this rule?waetherman wrote:Such rules are actually ...
Users browsing this forum: No registered users and 18 guests