Search found 3615 matches

by swagfag
Yesterday, 17:26
Forum: Ask For Help
Topic: LONG STORY. Input/InputHook(), Hotstring(), AHK_H, ETC
Replies: 20
Views: 686

Re: LONG STORY. Input/InputHook(), Hotstring(), AHK_H, ETC

yeah it works now, it was from april
by swagfag
Yesterday, 16:58
Forum: Editors
Topic: Whoever added AutoHotkey to pastebin...
Replies: 1
Views: 136

Re: Whoever added AutoHotkey to pastebin...

the colors are ass but at least that u could fix with a styling addon
the highlighting is somewhat not very encompassing
by swagfag
Yesterday, 16:10
Forum: Ask For Help
Topic: Problems to correctly load json from API query Topic is solved
Replies: 11
Views: 370

Re: Problems to correctly load json from API query Topic is solved

parsed.apples[1][1] parsed.apples[1][2] parsed.apples[2][1] parsed.apples[2][2] parsed.apples[3][1] parsed.apples[3][2] and so on The JSON was fine but the problem was I didn't use the objects properly. :D Solution: fruitamount1 := parsed.food.fruits[1].amount somehow i very strongly doubt this had...
by swagfag
Yesterday, 14:02
Forum: Ask For Help
Topic: Help with timed loops
Replies: 2
Views: 31

Re: Help with timed loops

Code: Select all

Pause ON

Gosub Spot1

loop
{
	click, %x%, %y%, 2 
	sleep 5
}

Spot1:
	x := 480 
	y := 460
	SetTimer, Spot2, -2000
return

Spot2:
	x := 1305
	y := 620
	SetTimer, Spot1, -1000
return

F7::Pause
by swagfag
Yesterday, 13:48
Forum: Gaming
Topic: Old script for Skyrim Special edition
Replies: 5
Views: 89

Re: Old script for Skyrim Special edition

its not a v2 script, so its no use trying to run it with the v2 exe Question is why doesn't respond during the game? who knows. the game might be running elevated, it might be installing its own keyboard hook(overriding any of urs), u might be doing something wrong start ur tests with something simp...
by swagfag
Yesterday, 13:00
Forum: Gaming
Topic: Old script for Skyrim Special edition
Replies: 5
Views: 89

Re: Old script for Skyrim Special edition

commenting out #IfWinActive ahk_class Skyrim (ie "the first line") results in the used-to-be-hook-hotkey- x now being defined as a regular hotkey, which itself results in Send x now recursively triggering the hotkey infinitely turn x back into a hook hotkey $x:: Send x toggle := !toggle return cant ...
by swagfag
Yesterday, 12:46
Forum: Wish List
Topic: Global Case insensitive option for SetTitleMachMode RegEx
Replies: 3
Views: 117

Re: Global Case insensitive option for SetTitleMachMode RegEx

a regex need not be equivalent to a wintitle. #IfWinActive, ahk_exe explorer.exe is not equivalent to #IfWinActive, ahk_exe i)explorer.exe its equivalent is: #IfWinActive, ahk_exe i)^explorer\.exe$ with the anchors set based off of the original matchmode ur hotkeys could have just as easily broken d...
by swagfag
Yesterday, 12:28
Forum: Ask For Help
Topic: Run more than one thread, timer?
Replies: 3
Views: 81

Re: Run more than one thread, timer?

nothing in ahk can run simultaneously, everything runs sequentially(that includes hotkey threads, timer threads, gui thread and any other kind of ahk "thread" misnomer u can imagine) ure starting a timer, then the first thing u do is turn it off. if was meant to be a single use timer, start it with ...
by swagfag
Yesterday, 12:19
Forum: Gaming
Topic: OSRS help
Replies: 1
Views: 32

Re: OSRS help

if ure looking for the "OSRS woodcutting and thieving tutorials", there arent any... probably ure better off explaining what ure having a problem with, what uve tried, what works, what doesnt, how its supposed to work(dont assume people know, they probably dont) trying to get a script to move and cl...
by swagfag
Yesterday, 12:08
Forum: Ask For Help
Topic: AHK crashing my computer
Replies: 4
Views: 126

Re: AHK crashing my computer

so "not crashing" then. glad thats cleared up
I blame AHK because the symptoms don’t occur if It’s not open in the system tray.
it could be AHK thats to blame. or it could be the script that ure having AHK run. or it could be Windows itself.

which is why
also post the code that causes it
by swagfag
Yesterday, 11:40
Forum: Ich brauche Hilfe
Topic: LV_Add("",<continuation section>) Topic is solved
Replies: 7
Views: 190

Re: LV_Add("",<continuation section>) Topic is solved

if u already have an array it would be easier to just spread it

Code: Select all

LV_Add("", theArray*)
by swagfag
Yesterday, 11:05
Forum: Ask For Help
Topic: How To Auto Release Mouse Right Click In X Amount Of Time
Replies: 4
Views: 66

Re: How To Auto Release Mouse Right Click In X Amount Of Time

Code: Select all

SetMouseDelay,-1
~*Up::
~*Left::
~*Down::
~*Right::
SetTimer releaseMouseRight, Off
Send, {RButton Down}
keywait,% SubStr(A_ThisHotkey,3)
SetTimer releaseMouseRight, -XXX
Mousemove,% A_ScreenWidth / 2,% A_ScreenHeight / 2
Return

releaseMouseRight:
	Send, {RButton Up}
Return
by swagfag
Yesterday, 10:58
Forum: Ask For Help
Topic: LONG STORY. Input/InputHook(), Hotstring(), AHK_H, ETC
Replies: 20
Views: 686

Re: LONG STORY. Input/InputHook(), Hotstring(), AHK_H, ETC

if u explain what im supposed to see(precisely!!) when carrying out these actions open a notepad window and type "~date", then type "imho", then type "test" with Space, Enter or Tab as end key and the general purpose of the script, i might be able to come up with something HotKeyIt can u explain how...
by swagfag
Yesterday, 09:48
Forum: Ask For Help
Topic: How can I start Music playing at 0:30 of the mp3 and not start at beginning of mp3?
Replies: 5
Views: 140

Re: How can I start Music playing at 0:30 of the mp3 and not start at beginning of mp3?

u dont need a gui, just use the comobj directly

Code: Select all

wmp := ComObjCreate("WMPlayer.OCX")
wmp.currentMedia := wmp.newMedia("path\to\mp3")
wmp.controls.currentPosition := 30

MCI's seeking fails horribly with vbr encoded mp3s
by swagfag
Yesterday, 08:47
Forum: Ask For Help
Topic: Calculating Clicks per Second Topic is solved
Replies: 5
Views: 132

Re: Calculating Clicks per Second Topic is solved

Code: Select all

CPS := []

SetTimer showCPS, 10
showCPS:
	ToolTip % CPS.Count() " CPS"
return

~*LButton::
	CPS.Push(A_TickCount)
	fn := ObjBindMethod(CPS, "Pop")
	SetTimer % fn, -1000
return
lol
by swagfag
Yesterday, 08:30
Forum: Ask For Help
Topic: Problems to correctly load json from API query Topic is solved
Replies: 11
Views: 370

Re: Problems to correctly load json from API query Topic is solved

if thats the json ure receiving, its not json. its malformed json. test it here https://jsonlint.com/ to see whats wrong with it make sure the object's layout is what u expect it to be I am not sure if I get what you mean but the JSON is received as I described it above: i mean: step through ur code...
by swagfag
Yesterday, 08:18
Forum: Ich brauche Hilfe
Topic: LV_Add("",<continuation section>) Topic is solved
Replies: 7
Views: 190

Re: LV_Add("",<continuation section>) Topic is solved

granted im not exactly sure what ure asking for, maybe its this

Code: Select all

LV_Add(
(Join
	"",
	r1,
	r1,
	r1,
	r1)
)
although in this case id just prepend commas and not bother with the continuation section

Code: Select all

LV_Add(""
	, r1
	, r1
	, r1
	, r1)
by swagfag
Yesterday, 08:01
Forum: Ask For Help
Topic: Split String by RegEx Topic is solved
Replies: 11
Views: 289

Re: Split String by RegEx Topic is solved

actually i dont remember why i put an extra set of parens in there RegExSplit(ByRef String, Delimiter := "", OmitChars := "", MaxParts := -1) { static uFFFF := Chr(0xFFFF) ; early exit, split by chars if (Delimiter = "") return StrSplit(String, Delimiter, OmitChars, MaxParts) return StrSplit(RegExRe...
by swagfag
23 May 2020, 23:32
Forum: Ask For Help
Topic: Split String by RegEx Topic is solved
Replies: 11
Views: 289

Re: Split String by RegEx Topic is solved

yeah, no clean way of resolving that using this approach unfortunately
scratch that, see https://www.autohotkey.com/boards/viewtopic.php?p=331034#p331034
by swagfag
23 May 2020, 21:53
Forum: Ask For Help
Topic: Split String by RegEx Topic is solved
Replies: 11
Views: 289

Re: Split String by RegEx Topic is solved

for k, v in RegExSplit("ABCDEFGCVBCRTYECEFGH", "i)(?<=b)c|e(?=f)") s .= k " -> " v "`n" MsgBox % RTrim(s) RegExSplit(ByRef String, Delimiter := "", OmitChars := "", MaxParts := -1) { static uFFFF := Chr(0xFFFF) ; early exit, split by chars if (Delimiter = "") return StrSplit(String, Delimiter, Omit...

Go to advanced search