Search found 557 matches

by Spawnova
23 Feb 2016, 12:05
Forum: Gaming Help (v1)
Topic: TLPD click loop script
Replies: 4
Views: 1747

Re: TLPD click loop script

Here's a script that sends left clicks at current mouse position with a toggle f1:: ; test hotkey toggle := !toggle if toggle goto clickEvent return clickEvent: keywait,F1 loop { if (a_tickcount > nextPress) { click,down random,sleepTime,40,80 sleep % sleepTime ;custom sleep time between key up and ...
by Spawnova
23 Feb 2016, 11:45
Forum: Gaming Help (v1)
Topic: help setting LMB to "H" if held down for 200 milliseconds
Replies: 5
Views: 1980

Re: help setting LMB to "H" if held down for 200 milliseconds

Try this:

Code: Select all

~lbutton::
endTime := a_tickcount + 200 ;change 200 for longer/shorter wait
while(GetKeyState("lbutton","P")) { ;while lbutton is pressed wait
	if (a_tickcount > endTime) { ;if tickcount > endTime then send h
		send h
		break ;prevent spam
	}
}
return
by Spawnova
22 Feb 2016, 17:29
Forum: Ask for Help (v1)
Topic: [Solved] Need help converting autoit code, (Gdip Gif Animation)
Replies: 3
Views: 3860

[Solved] Need help converting autoit code, (Gdip Gif Animation)

There is a script on the Autoit forums for looping through the frames of a .gif file using Gdip and I can't understand how to convert it to ahk script - https://www.autoitscript.com/forum/topic/77179-animated-gif-using-gdi/ Here is what I've done so far but even the first dllcall doesn't seem to ret...
by Spawnova
18 Dec 2015, 10:22
Forum: Gaming Help (v1)
Topic: SA-MP AutoHotkey help!
Replies: 2
Views: 1800

Re: SA-MP AutoHotkey help!

You will need to be more descriptive about your problem, although right away I can see you are missing a lot of returns. Also you have a few duplicate hotkeys, they will need to be assigned a different hotkey. !1:: SendInput t/g Welcome to the Server @ Sleep 6000 SendInput t/g Don't forget to check ...
by Spawnova
17 Dec 2015, 08:44
Forum: Ask for Help (v1)
Topic: Gui, hide. I guess I'm doing something wrong..
Replies: 7
Views: 1896

Re: Gui, hide. I guess I'm doing something wrong..

You had some code inside of your function that shouldn't have been there. OSD(txt) { Gui, Hide Gui, OSD: New Gui, font, s16, Verdana Gui, Add, Text, cFFFFFF, %txt% Gui, Color, 000000 Gui +LastFound ;WinSet, TransColor, 000000 WinSet, Transparent, 100 Gui -Caption Gui, Show, xCenter Y800 setTimer, OS...
by Spawnova
16 Dec 2015, 18:37
Forum: Gaming Help (v1)
Topic: fallout 3 trying to make numpad equal numberline keys
Replies: 11
Views: 4944

Re: fallout 3 trying to make numpad equal numberline keys

I can confirm they script I proved does indeed work, however things can get a little tricky with games where they block some form of virtual key strokes, try some of the other send events listed here https://autohotkey.com/docs/commands/Send.htm
by Spawnova
16 Dec 2015, 16:11
Forum: Gaming Help (v1)
Topic: fallout 3 trying to make numpad equal numberline keys
Replies: 11
Views: 4944

Re: fallout 3 trying to make numpad equal numberline keys

SetKeyDelay simply adds delay between key presses, it's not needed here.

Just

Code: Select all

numpadhome::Send 1
Should suffice

Also because numpad hotkeys depend on numlock you will want to do something like this to ensure it works with numlock on or off:

Code: Select all

numpad7::
numpadhome::
Send 1
return
by Spawnova
16 Dec 2015, 09:52
Forum: Ask for Help (v1)
Topic: Loop, expression
Replies: 9
Views: 2450

Re: Loop, expression

We aren't exactly sure what you are asking for, what exactly are you trying to do with a loop? Here are some examples of loops, possibly this will help. Loop 20 { a++ b++ c-- } ;result is a+20, b+20, c-20 while (a < 20) { a++ b++ c-- } ;this loop continues until the variable is is >= 20 You can also...
by Spawnova
16 Dec 2015, 08:28
Forum: Ask for Help (v1)
Topic: [Solved] GUI Radio Buttons Without Labels
Replies: 2
Views: 1181

Re: GUI Radio Buttons Without Labels

I've used radio controls next to other controls before as well and simply specifying an appropriate width always works for me, you have to keep in mind there is a limit to how small the width can be before it has to shrink the radio itself. Gui, Add, Radio, x12 y10 w14 h20 Gui, Add, Edit, x28 y10 w1...
by Spawnova
16 Dec 2015, 08:13
Forum: Ask for Help (v1)
Topic: Percent routine
Replies: 3
Views: 903

Re: Percent routine

I'm not sure I understand entirely, are you asking how to display the contents of a variable in a message box?

Here's some code that might help.

Code: Select all

a := 1, b := 2, c := 3
d := 4, e := 5, f := 6
msgbox % a b c d e f
If that's not what you're looking for, try to be more descriptive. =)
by Spawnova
16 Dec 2015, 07:16
Forum: Gaming Help (v1)
Topic: Help with simple F4 script
Replies: 6
Views: 2338

Re: Help with simple F4 script

Your hotkeys are incorrect, you can find a list of keys here: https://autohotkey.com/docs/KeyList.htm =P

You are looking for
NumpadDiv ;/
NumpadMult ;*
NumpadAdd ;+
NumpadSub ;-
by Spawnova
16 Dec 2015, 06:09
Forum: Ask for Help (v1)
Topic: [Solved] Dynamic variable from class
Replies: 3
Views: 1566

Re: Dynamic variable from class/array possible?

lexikos wrote:(theClass[varContainingTheVarName]).
Doh! I was pretty tired last night and completely forgot the brackets, I had essentially tried what you suggested but in the wrong way, ie %varClass%.%varName%.

This is solved my issue, thanks lexikos. =)
by Spawnova
15 Dec 2015, 22:34
Forum: Ask for Help (v1)
Topic: trying to get {enter} to reload ALL scripts at once
Replies: 3
Views: 1388

Re: trying to get {enter} to reload ALL scripts at once

No problem, you might also like to check out this page on hotkeys and modifiers https://autohotkey.com/docs/Hotkeys.htm =)
by Spawnova
15 Dec 2015, 22:04
Forum: Ask for Help (v1)
Topic: trying to get {enter} to reload ALL scripts at once
Replies: 3
Views: 1388

Re: trying to get {enter} to reload ALL scripts at once

Hey there!

You can use the tilde key to stop the hotkey from blocking it's normal functions.

Code: Select all

~enter::reload
by Spawnova
15 Dec 2015, 21:15
Forum: Ask for Help (v1)
Topic: Randomly click a set of Pre-defined coordinates Topic is solved
Replies: 4
Views: 1673

Re: Randomly click a set of Pre-defined coordinates Topic is solved

I have tested the code before posting and can confirm it is working, if you changed anything try posting it to see if there was any errors. =)
by Spawnova
15 Dec 2015, 20:31
Forum: Ask for Help (v1)
Topic: Randomly click a set of Pre-defined coordinates Topic is solved
Replies: 4
Views: 1673

Re: Randomly click a set of Pre-defined coordinates Topic is solved

This is one way of doing it using arrays. spots := [] ;create en empty array spots.insert([100,200]) ;x=100 y=200 spots.insert([400,600]) spots.insert([50,200]) spots.insert([350,95]) return f1:: total := spots.MaxIndex() random,value,1,%total% xPos := spots[value][1] ;array[index][index] yPos := sp...
by Spawnova
15 Dec 2015, 19:17
Forum: Ask for Help (v1)
Topic: [Solved] Dynamic variable from class
Replies: 3
Views: 1566

[Solved] Dynamic variable from class

I've looked around a bit but didn't see anything, I have been wondering this for a while as well, is there anyway to access a array/class variable dynamically? Example of what I mean: varName := "ClassExample.value1" msgbox % %varName% Of course this doesn't work, which is why I'm asking if it's pos...

Go to advanced search