Search found 2979 matches

by swagfag
18 May 2018, 10:48
Forum: General Discussion
Topic: An idea for improving the learning curve
Replies: 10
Views: 1682

Re: An idea for improving the learning curve

I'd argue the point that a total beginner unfamiliar with programming in general shouldn't start off learning by parsing scripts token by token. That's what the tutorials are there for, but that's just me. I could accommodate it to an extent in the script (lacking a full fledged parser, it will be a...
by swagfag
18 May 2018, 10:27
Forum: Ask For Help
Topic: How to triggerbot with multiple pixel images under certain condition syntax...
Replies: 2
Views: 643

Re: How to triggerbot with multiple pixel images under certain condition syntax...

Are these reddish pixels scattered all over the screen or are they as they appear on the image you provided, ie 3x3 matrix? If the latter is the case, why not make a single .png consisting of those 3x3 pixels, make a single call to ImageSearch and use the image as the haystack? Unless there's someth...
by swagfag
17 May 2018, 16:54
Forum: Ask For Help
Topic: Stop a loop with A_TimeIdlePhysical
Replies: 4
Views: 268

Re: Stop a loop with A_TimeIdlePhysical

yeah, i noticed now too that theres the issue that when the script is sleeping, naturally, no checks are being done, so moving the mouse or pressing a key wont break it
by swagfag
17 May 2018, 15:39
Forum: Ask For Help
Topic: Stop a loop with A_TimeIdlePhysical
Replies: 4
Views: 268

Re: Stop a loop with A_TimeIdlePhysical

dont use deprecated commands(IfLess, etc) in new scripts

Code: Select all

Esc::ExitApp
^k::
{
	Loop
	{
		Send your_text_here{Enter}
		Sleep rand(1000, 2000)

		if (A_TimeIdlePhysical < 100)
			break
	}
return
}

rand(a, b) {
	Random, rand, a, b
	return rand
}

by swagfag
17 May 2018, 15:31
Forum: Ask For Help
Topic: Create Hotkey to use a previous Hotkey again
Replies: 2
Views: 311

Re: Create Hotkey to use a previous Hotkey again

ehhh, wouldnt recommend it but:

Code: Select all

1::MsgBox Hotkey-1
2::MsgBox Hotkey-2
3::Gosub % A_PriorHotkey
by swagfag
17 May 2018, 15:28
Forum: Other Utilities & Resources
Topic: [HTML] Graphical keyboard state
Replies: 1
Views: 925

Re: [HTML] Graphical keyboard state

cool

alternatively, u could use EK SwitchHitter: https://elitekeyboards.com/switchhitter.php
it accurately tracks left/right modifiers, caps/num/scroll states and captures the keys 100%
by swagfag
17 May 2018, 15:14
Forum: General Discussion
Topic: An idea for improving the learning curve
Replies: 10
Views: 1682

Re: An idea for improving the learning curve

It does open the AutoHotkey Help (as administrator? why? I get the UAC each time), but it doesn't open the desired keyword. It always opens the default "HomePage". remove *RunAs from Run, % Format("*RunAs hh.exe {}\..\AutoHotkey.chm", A_AhkPath) and adjust the delay accordingly, UAC messes up the t...
by swagfag
17 May 2018, 13:31
Forum: Offtopic
Topic: programming languages summarised
Replies: 2
Views: 739

Re: programming languages summarised

jeeswg wrote:[many 'Learn XXX In One Video' videos]
Learn syntax in one video...
by swagfag
17 May 2018, 13:28
Forum: Ask For Help
Topic: -topic moved-
Replies: 2
Views: 305

Re: remove a special sign

<.*?>|#\w*?\b

Untested
by swagfag
17 May 2018, 12:32
Forum: Scripts and Functions
Topic: [Script] Offline Docs: Go To Definition
Replies: 1
Views: 401

[Script] Offline Docs: Go To Definition

a dumb way of implementing definition lookup without ruining your clipboard. rebind hotkeys as you see fit. adjust the delays accordingly ; AHK_L 1.1.28.02+ #NoEnv #WinActivateForce #SingleInstance Force #MaxThreadsPerHotkey 2 #Warn ClassOverwrite SendMode Input SetBatchLines -1 SetTitleMatchMode 2 ...
by swagfag
17 May 2018, 12:27
Forum: General Discussion
Topic: An idea for improving the learning curve
Replies: 10
Views: 1682

Re: An idea for improving the learning curve

https://github.com/ahkscript/SublimeAutoHotkey#goto-documentation-integration hell, u could even do it from within ahk itself ; AHK_L 1.1.28.02+ #NoEnv #WinActivateForce #SingleInstance Force #MaxThreadsPerHotkey 2 #Warn ClassOverwrite SendMode Input SetBatchLines -1 SetTitleMatchMode 2 SetWorkingDi...
by swagfag
17 May 2018, 11:20
Forum: Gaming
Topic: Cycling keystrokes?
Replies: 8
Views: 1017

Re: Cycling keystrokes?

this isnt practice, this is abuse lol
by swagfag
17 May 2018, 11:19
Forum: Gaming
Topic: Pixel level precision mouse aiming with kb Topic is solved
Replies: 3
Views: 585

Re: Pixel level precision mouse aiming with kb Topic is solved

MouseMove with the 'R' flag

or look on msdn for mouse_event or SendInput()
by swagfag
17 May 2018, 11:13
Forum: Ask For Help
Topic: Script to execute in DBeaver only
Replies: 2
Views: 259

Re: Script to execute in DBeaver only

i wouldnt rely on having ñ as a hotkey trigger, does this even work at all?, disregarding context-sensitivity

use the key's VK or SC codes instead
by swagfag
17 May 2018, 09:47
Forum: Ask For Help
Topic: processing limitations or reasons not to use ahk for larger programs? Topic is solved
Replies: 6
Views: 833

Re: processing limitations or reasons not to use ahk for larger programs? Topic is solved

having read through your entire post, i still have no idea what the actual question really is, you go off on so many tangents can you use ahk to develop large projects? yes. should you? it depends. its a tradeoff between whipping up something quick and going for something else that is more robust, a...
by swagfag
17 May 2018, 09:37
Forum: Ask For Help
Topic: Clipboard loop
Replies: 7
Views: 894

Re: Clipboard loop

#NoEnv #WinActivateForce #SingleInstance Force #MaxThreadsPerHotkey 2 SendMode Input SetBatchLines -1 SetTitleMatchMode 2 z::ExitApp x::copySelection() ; copy key c::pasteFromArray() ; send key copySelection() { Send ^c Sleep 100 global SendArray := [] for each, item in StrSplit(Clipboard, ["`r`n",...
by swagfag
17 May 2018, 05:21
Forum: Ask For Help
Topic: Discord
Replies: 2
Views: 2622

Re: Discord

An AHK discord server already exists?
by swagfag
16 May 2018, 18:08
Forum: Ask For Help
Topic: Help with a simple script idea :D
Replies: 1
Views: 206

Re: Help with a simple script idea :D

You wanna write a quine that sends itself?
by swagfag
16 May 2018, 18:03
Forum: Gaming
Topic: AHK FPS picture aimbot?
Replies: 4
Views: 1081

Re: AHK FPS picture aimbot?

Doubt it. Detection based solely on a single pixel alone is hard enough as it is, imagine doing it for 400 pixels (20x20 img). All it takes is a single pixel to be slightly off, slight variation in the shade, for the match to fail. To have a somewhat reliable color aimbot, you'd have to hack the gam...
by swagfag
16 May 2018, 17:06
Forum: Ask For Help
Topic: Window dimensions inconsistent (winmove question)
Replies: 3
Views: 342

Re: Window dimensions inconsistent (winmove question)

thats par for the course with how client areas work. winmove is reporting consistent results and you are indeed seeing an invisible margin around the windows, thats the part you grab onto to resize it. how big it is entirely depends on the application. if u want to align windows that way, youd need ...

Go to advanced search