Search found 2723 matches

by swagfag
Today, 03:50
Forum: Ask For Help
Topic: How do I find all variable names and function names and g-labels in the source code?
Replies: 1
Views: 39

Re: How do I find all variable names and function names and g-labels in the source code?

a plethora of editors have ahk syntax highlighters. notepad++, vscode, sublime, vim

u can dig through the docs source to extract symbols and other builtins

@jeeswg had a script to did through the ahk source iirc
by swagfag
Yesterday, 19:35
Forum: Ask For Help
Topic: Having hard time using specific variable in an IF condition
Replies: 5
Views: 104

Re: Having hard time using specific variable in an IF condition

u dont even need to do that(unless u want to display a hex value that is), just compare them straight up if (InputLocaleID = 0x4090409)
by swagfag
Yesterday, 18:39
Forum: Ask For Help
Topic: Calling label, Include file, Checking current version
Replies: 3
Views: 139

Re: Calling label, Include file, Checking current version

still not entirely sure about this label thing, sounds like u want to have a label run asynchronously. firing off a single use timer will offload the execution to another thread SetTimer theLabel, -1 re 2., well i just copied and ran it, too, and it did work, so some other factors must be influencin...
by swagfag
Yesterday, 18:03
Forum: AutoHotkey v2 Development
Topic: Map shorthand
Replies: 7
Views: 160

Re: Map shorthand

something visually distinguishing is needed to tie keys to values and separate pairs from one another, thats for sure myMap := [ "name" => "Tedd", "age" => 34 ] i dont think this could work myMap := [ name => "Tedd" ] did i define a Map with 1 key(the value of name ) paired to "Tedd" or did i define...
by swagfag
Yesterday, 17:51
Forum: Ask For Help
Topic: make a command repeat until i press a key Topic is solved
Replies: 4
Views: 147

Re: make a command repeat until i press a key Topic is solved

Code: Select all

~q::SetTimer ClickQ, % (qToggle := !qToggle) ? -500 : "Off"
ClickQ: 
	Click, 278, 335
	Sleep 500
	Click, 275, 231
	SetTimer, , -500
return
by swagfag
Yesterday, 17:44
Forum: Ask For Help
Topic: Mouse scroll button as a "hotkey" Topic is solved
Replies: 4
Views: 85

Re: Mouse scroll button as a "hotkey" Topic is solved

the #If WinActive("winTitle") context sensitive hotkey directive
or plain if WinActive("winTitle") somewhere inside the hotkey
by swagfag
Yesterday, 17:41
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 2
Views: 61

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

only the 32-bit ntdll exports a RtlUlonglongByteSwap. when u run the 64-bit ahk, 64-bit dlls will get loaded in.
use MsgBox % Format("0x{:X}", DllCall("ucrtbase\_byteswap_uint64", "UInt64", 0x00007FFF6B133B1B, "UInt64"))
by swagfag
Yesterday, 03:22
Forum: Ask For Help
Topic: make a command repeat until i press a key Topic is solved
Replies: 4
Views: 147

Re: make a command repeat until i press a key Topic is solved

using toggles and timers:

Code: Select all

~q::SetTimer ClickQ, % (qToggle := !qToggle) ? 500 : "Off"
ClickQ: 
	Click, 278, 335
return

~w::SetTimer ClickW, % (wToggle := !wToggle) ? 500 : "Off"
ClickW:
	Click, 275, 231
return
by swagfag
Yesterday, 03:14
Forum: Ask For Help
Topic: Can autohotkey repeatedly display a value taken from a pointer
Replies: 2
Views: 126

Re: Can autohotkey repeatedly display a value taken from a pointer

rhcp's classMemory provides facilities for fiddling with pointers(though it wont teach u what to do)

i dont know how big endian relates to anything. all windows programs should be little endian
by swagfag
Yesterday, 02:28
Forum: Gaming
Topic: 2 Key loop help
Replies: 4
Views: 72

Re: 2 Key loop help

yes
by swagfag
Yesterday, 02:27
Forum: Ask For Help
Topic: Trouble with checking if script got stuck using GetPixelColor
Replies: 2
Views: 85

Re: Trouble with checking if script got stuck using GetPixelColor

a timer doesnt have a caller to return to, so if (SetTimer, % Fn, -15000 == True) wouldnt have accomplished anything, even if the syntax rules allowed it(which they dont). the only way to emulate this would be to split the winning and losing branches of the caller, make them their own functions and ...
by swagfag
Yesterday, 02:03
Forum: Ask For Help
Topic: How is this an infinite loop?
Replies: 8
Views: 255

Re: How is this an infinite loop?

the convenience u gain by resorting to global (not out of necessity) today, u pay for n-fold tomorrow - when something goes awry; when u inevitably mutate a variable u shouldnt have; when uve lost hours debugging, chasing down dead ends; when u ask a stranger to follow ur code; when u urself come ba...
by swagfag
Yesterday, 01:50
Forum: Gaming
Topic: 2 Key loop help
Replies: 4
Views: 72

Re: 2 Key loop help

loops cannot be executed concurrently. replace them with timers
https://www.autohotkey.com/docs/commands/SetTimer.htm
by swagfag
Yesterday, 01:15
Forum: Ask For Help
Topic: Variables | Loop as a set?
Replies: 4
Views: 218

Re: Variables | Loop as a set?

too many things repeat too often in ur script. u have to refactor those into functions. example, u have 10 instances of: If (Line = "AAA" and Site = "FFF") { MouseMove, 1724, 330, 12 Sleep 100 MouseClick, left MouseMove, 1724, 450, 12 Sleep 100 MouseClick, left } and the only difference is the secon...
by swagfag
17 Aug 2019, 15:05
Forum: Ask For Help
Topic: Illegal characters error
Replies: 5
Views: 273

Re: Illegal characters error

the interesting thing that isnt outdated and is related to this project was: To include an actual quote character inside a quoted string, specify two consecutive quotes as shown twice in this example: "She said, " " An apple a day. " " " . perhaps i should have addressed ur problem directly, perhaps...
by swagfag
17 Aug 2019, 14:45
Forum: Ask For Help
Topic: simple script doesn't run no error
Replies: 6
Views: 188

Re: simple script doesn't run no error

u thought right, a while loop checks its condition and executes its body as long as the condition is true u cant use commands in expressions, but u can use functions. so make one while pixelIsBGR(0x9F9DFD, 247, 1008){ SoundBeep Sleep 100 } pixelIsBGR(color, x, y) { PixelGetColor OutputVar, X, Y retu...
by swagfag
15 Aug 2019, 12:21
Forum: Ask For Help
Topic: The script only works if it is written from the first line.
Replies: 35
Views: 1110

Re: The script only works if it is written from the first line.

then
gregster wrote:
15 Aug 2019, 02:17
...please show example code that demonstrates the problem.)
by swagfag
15 Aug 2019, 12:11
Forum: Ask For Help
Topic: Gdip_DrawImage does not work?
Replies: 5
Views: 142

Re: Gdip_DrawImage does not work?

instead of wondering how u can delete a thread, why not share what the problem was and how u solved it, so that on the off chance that someone in the future happens to have an issue similar to urs they wont have to remake the same thread?

Go to advanced search