Search found 370 matches

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: 1222

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: 1225

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: 2347

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: 1392

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: 1791

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: 573

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: 947

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: 733

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: 1054

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: 577

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: 899

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: 701

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: 1132

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: 1413

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: 1878

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: 1531

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: 889

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 ...
by Spawnova
14 Jun 2020, 10:02
Forum: Ask For Help
Topic: Remap a range of numbers Topic is solved
Replies: 2
Views: 1266

Re: Ramap a range of numbers Topic is solved

I'm not sure if a function exists, but this should do what you want EDIT; better yet here is the arduino function straight from the source code of map msgbox % map(511.5,0,1023,0,255) map(x,in_min,in_max,out_min,out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min }
by Spawnova
14 Jun 2020, 06:34
Forum: Gaming
Topic: Trying to get AHK to hit f7 while right and left mouse buttons are down.
Replies: 1
Views: 503

Re: Trying to get AHK to hit f7 while right and left mouse buttons are down.

this should work for you Insert:: Hotkey, *~$LButton, Toggle *~$LButton:: if GetKeyState("rbutton","p") { ;if holding right button send {f7} keywait,rbutton ;remove this line if you want it to press f7 only when lbutton is released keywait,lbutton send {f7} } Return This will press f7 only when you ...
by Spawnova
13 Jun 2020, 16:39
Forum: Ask For Help
Topic: Im stuck, can someone help me? GuiControl etc
Replies: 7
Views: 2612

Re: Im stuck, can someone help me? GuiControl etc

Hi, I'm trying to understand what you want, let me know if this is right... You want to enter 2 seperate codes on your keypad gui, both being 1 digit each, then use those two digits to identify a specific code and then read a file with that code into your edit control? If so this should work, I've m...

Go to advanced search