Search found 373 matches

by Spawnova
19 Jan 2021, 17:30
Forum: Gaming
Topic: Macro that click drag things
Replies: 1
Views: 52

Re: Macro that click drag things

You can simply use MouseClickDrag for that

For example

Code: Select all

F1::
MouseClickDrag,left,50,50,100,100
return
That would click at coordinates 50,50 and drag to 100,100 before unclicking.
by Spawnova
19 Jan 2021, 17:26
Forum: Gaming
Topic: what is this for?
Replies: 1
Views: 38

Re: what is this for?

Hmm, looks like when you press a key it loops while the key is held down and after 233 ms it starts to rapidly resend the key.
Not sure how useful it is, and the code looks really old lol
by Spawnova
19 Jan 2021, 17:21
Forum: Gaming
Topic: Faster imagesearch
Replies: 2
Views: 48

Re: Faster imagesearch

Using gdip you would be able to perform much faster image searches Gdip -> https://github.com/tariqporter/Gdip/blob/master/Gdip.ahk Good examples to get you started with gdip -> https://github.com/tariqporter/Gdip Image search for gdip -> https://github.com/MasterFocus/AutoHotkey/tree/master/Functio...
by Spawnova
22 Jun 2020, 03:48
Forum: Gaming
Topic: Create and copy a file in a datestamp folder Topic is solved
Replies: 2
Views: 1233

Re: Create and copy a file in a datestamp folder Topic is solved

This should do what you need KFileA := A_MyDocuments . "\1\AK.xlsx" KFileB := A_MyDocuments . "\2\BK.xlsx" if !Backup(KFileA) if !Backup(KFileB) MsgBox,4112,Error,Neither K file exists on your system Return Backup(file,runFile=1) { ;runFile is a default parameter, if not supplied defaults to 1 ifnot...
by Spawnova
22 Jun 2020, 03:27
Forum: Gaming
Topic: help with blairwitch (game)
Replies: 3
Views: 1251

Re: help with blairwitch (game)

try running blairwitch first, then run your ahk script separately but with admin privileges
by Spawnova
22 Jun 2020, 03:25
Forum: Gaming
Topic: Pixel search that waits for a pixel before moving on
Replies: 5
Views: 2374

Re: Pixel search that waits for a pixel before moving on

You can use a variable to determine which function should be called

Code: Select all

state := 1
return


^5::
loop {
	if (state = 1 and 1()) {
		state++
	}
	if (state = 2 and 2()) {
		state++
	}
	if (state = 3 and 3()) {
		state := 1
	}
	sleep 10
}
return
by Spawnova
22 Jun 2020, 03:16
Forum: Gaming
Topic: Toggling a Key On and Off
Replies: 2
Views: 1399

Re: Toggling a Key On and Off

Code: Select all

^1::send {j down}  ; ^ = control
^2::send {j up}
You could also combine these 2 hotkeys using getkeystate

Code: Select all

f1::
state := GetKeyState("j") ? "up" : "down"
send {j %state%}
return
by Spawnova
22 Jun 2020, 03:11
Forum: Gaming
Topic: need help making macro Topic is solved
Replies: 2
Views: 1808

Re: need help making macro Topic is solved

Code: Select all

lshift::
while(GetKeyState("lshift","P")) {  ;loop until left shift is released
	click
	sleep 100
}
return
by Spawnova
21 Jun 2020, 08:29
Forum: Gaming
Topic: I need help
Replies: 1
Views: 581

Re: I need help

You can use a_tickcount and some variables to do this doubleTapTime := 500 ;hotkey must be pressed twice within 500ms to activate, lower = faster presses pressTimer := 0 ;this variable will hold the press timer return j:: if (pressTimer > a_tickcount) { msgbox you double tapped ;put your code here }...
by Spawnova
21 Jun 2020, 08:25
Forum: Ask For Help
Topic: Same shortcut in different running scripts?
Replies: 3
Views: 957

Re: Same shortcut in different running scripts?

Only 1 hotkey should be executed I believe, however if you hotkeys use the tilde symbol ~esc:: then both scripts will execute that hotkey
by Spawnova
16 Jun 2020, 12:51
Forum: Gaming
Topic: Is there a way to make an inconsistent Auto clicker?
Replies: 1
Views: 774

Re: Is there a way to make an inconsistent Auto clicker?

You can use the ahk command Random for this

Code: Select all

Del::ExitApp

~$RButton::
While GetKeyState("RButton", "P"){
	Click
	random,sleepTime,5,20   ;get a random value between 5 and 20
	Sleep % sleepTime
}
return
by Spawnova
15 Jun 2020, 08:49
Forum: Gaming
Topic: Problems on keyboard or OS
Replies: 1
Views: 1062

Re: Problems on keyboard or OS

If these problems are happening after you have restarted your computer and even uninstalled AutoHotKey, then it's not a problem with your script, which looks fine anyways. Something unrelated to AutoHotKey is causing your problem.
by Spawnova
15 Jun 2020, 08:46
Forum: Gaming
Topic: Hello I need to do a code that starts/stops by F6 and infinity clicks 1,2,3 thanks for annswer
Replies: 1
Views: 584

Re: Hello I need to do a code that starts/stops by F6 and infinity clicks 1,2,3 thanks for annswer

Code: Select all

toggle := 0
speed := 100
return

f8::exitapp
f9::reload

f6::
toggle := !toggle
soundbeep
if (toggle) {
	settimer,macro,-1
}
return


macro:
while(toggle) {
	send 1
	sleep % speed
	send 2
	sleep % speed
	send 3
	sleep % speed
}
return
by Spawnova
15 Jun 2020, 08:43
Forum: Gaming
Topic: GetPixColor + MouseClick
Replies: 1
Views: 909

Re: GetPixColor + MouseClick

hex values must be prefixed by 0x, for instance the color red in RGB format would be 0xFF0000 Color1 := 0x252526 Color2 := 0x07070B Color3 := 0x13034B toggle := 0 return ^j:: toggle := !toggle soundbeep if (toggle) { settimer,scan,-1 } return scan: sleep 1000 ;small delay before starting the loop wh...
by Spawnova
15 Jun 2020, 08:28
Forum: Gaming
Topic: Moving scripts from autosoft
Replies: 1
Views: 732

Re: Moving scripts from autosoft

Of course you can do all this and more with AutoHotKey, I've written a script for you that should be easy to migrate your AutoSofted scripts to AutoHotKey =P toggle := 0 ;toggle 0 = off return f8::exitapp ;close the program f9::reload ;restart the program f1:: toggle := !toggle ;toggle between 0 and...
by Spawnova
15 Jun 2020, 08:15
Forum: Gaming
Topic: AHK Script Mousewheel down Topic is solved
Replies: 2
Views: 1180

Re: AHK Script Mousewheel down Topic is solved

toggle := 0 ;0 = off speed := 50 ;lower = faster return f8::exitapp ;close the program f9::reload ;restart the program numpadadd:: ;numpad + key toggles wheeldown toggle := !toggle if (toggle) { soundbeep ;make a beep when turned on, this is optional delete if u dont want it settimer,mWheelDown,-1 ...
by Spawnova
14 Jun 2020, 18:49
Forum: Gaming
Topic: Click hold repeat script help
Replies: 3
Views: 1468

Re: Click hold repeat script help

If you already have a script and it's not working make sure to post it so we can identify problems for you and help you to understand why it's not working, with that said this script should work for you toggle := 0 ;0 = off return f1:: ;f1 key toggles clicking toggle := !toggle if (toggle) { ;if tog...
by Spawnova
14 Jun 2020, 17:53
Forum: Scripts and Functions
Topic: Rotary Knob - Potentiometer
Replies: 4
Views: 1927

Re: Rotary Knob - Potentiometer

Hey man this is really cool, I'd never though of making a control like this before, and this looks very nice! I hope you don't mind but I've make some alterations in attempt to condense the code a bit, hopefully that's okay with you and that you find it useful in some way =P SetBatchLines -1 ;#Inclu...
by Spawnova
14 Jun 2020, 12:40
Forum: Scripts and Functions
Topic: isHoliday() ; USA holidays
Replies: 3
Views: 1556

Re: isHoliday() ; USA holidays

This is pretty cool, I could definitely find some use for this, thanks for sharing!
by Spawnova
14 Jun 2020, 12:35
Forum: Gaming
Topic: Request for a rather simple Macro
Replies: 1
Views: 894

Re: Request for a rather simple Macro

This should work for you, I've added comments that hopefully make things more clear, if you have any questions let me know #UseHook ;use keyboard hook to insure instant toggle on and off sendmode,input ;input is faster and more stable toggle := 0 ;the macro is currently 0 = off speed := 100 ;100 ms ...

Go to advanced search