Search found 28 matches

by ShambleS1980
11 Aug 2020, 18:35
Forum: Gaming
Topic: Script for toggling LButton to spam (~100 clicks per second) Topic is solved
Replies: 3
Views: 2155

Re: Script for toggling LButton to spam (~100 clicks per second) Topic is solved

it if !toggle is a reload.. so that will reload the script.
shouldnt be an issue. but there are better ways to stop the process.
by ShambleS1980
10 Aug 2020, 16:27
Forum: Gaming
Topic: Script for toggling LButton to spam (~100 clicks per second) Topic is solved
Replies: 3
Views: 2155

Re: Script for toggling LButton to spam (~100 clicks per second) Topic is solved

!x:: Toggle := !Toggle return #if (toggle) lbutton:: While (GetKeyState("LButton", "P")) { click sleep 10 click if (!toggle) reload } #if return esc::exitapp you can change "sleep 10" to a higher number if its too fast. but 10ms x 100 should be 1000. which is 1second. you will probably want to chan...
by ShambleS1980
10 Aug 2020, 04:16
Forum: Gaming
Topic: Need some help
Replies: 5
Views: 2442

Re: Need some help

Code: Select all

f1::SetTimer, label, % (toggle := !toggle) ? 150 : "Off"
return

label:
send, x
sleep, 150
click 1193, 585
sleep 150
click 785, 642
return
change the "150" if it is too fast.
by ShambleS1980
09 Aug 2020, 06:32
Forum: Gaming
Topic: Need some help
Replies: 5
Views: 2442

Re: Need some help

you need to get me the coordinates of where you want your mouse to click.
"i went to sleep shortly after replying yesterday"

use window spy tool in ahk to get the co ordinates.
by ShambleS1980
08 Aug 2020, 20:19
Forum: Gaming
Topic: Need some help
Replies: 5
Views: 2442

Re: Need some help

if you tell me how you do it with a mouse and keyboard. i can easily make you a script to do that..
if you need it to work using the joystick input you are going to need to wait for me to sober up.
by ShambleS1980
29 Jul 2020, 23:51
Forum: General Discussion
Topic: Good coders gone wild!
Replies: 8
Views: 6409

Re: Good coders gone wild!

just a simple autoclicker. #MaxThreadsPerHotkey 2 setbatchlines, -1 while GetKeyState("xbutton1","T") xbutton1:: toggle := !toggle If (!Toggle) goto, stop If (Toggle) goto, canyou return omg: loop { click } return ffs: reload return canyou: goto, really return seriously: SoundBeep , 750, 500 goto, f...
by ShambleS1980
29 Jun 2020, 08:41
Forum: Gaming
Topic: About WinActive() and Window spy
Replies: 1
Views: 547

Re: About WinActive() and Window spy

its not if winnotactive now..
its
if WInActive and if !winActive (the ! is the key) the !mark replaces notactive
by ShambleS1980
29 Jun 2020, 08:32
Forum: Gaming
Topic: Need help with a simple script
Replies: 2
Views: 576

Re: Need help with a simple script

Code: Select all

Loop, 
{
if (BreakLoop = 1)
  break 
~{F1}::
send {v}
Sleep, 180000
return
}
~Esc::
BreakLoop = 1
return
possibly?
never tested it seems like it should work i guess
by ShambleS1980
26 Jun 2020, 20:37
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

o i noticed that the keybinds stoped working after the change..
So i just used joytokey to change a and b to x and z for that specific exe. and then just did
~z::x
That way i could remove the #if windowactive..
z now does zxzxzxzxzx regardless if F is pressed or not, but it works like that.
by ShambleS1980
25 Jun 2020, 00:00
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

i got it working..
it has to be like this:

Code: Select all

DetectHiddenWindows, On
SetTitleMatchMode, 3
WinWait, ahk_class RE_BHD
WinWaitClose
run, %rompath%end234
#If WinActive("ahk_class RE_BHD") && GetKeyState("f", "P")
~a::b
#If
ExitApp
by ShambleS1980
24 Jun 2020, 23:11
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

when any app closes the foremost active window will always be "ahk_class ThunderRT6FormDC" so i thought the following would work.. DetectHiddenWindows, On SetTitleMatchMode, 3 #If WinActive("ahk_class RE_BHD") && GetKeyState("f", "P") ~a::b #If WinActive("ahk_class ThunderRT6FormDC") run, %rompath%e...
by ShambleS1980
24 Jun 2020, 21:56
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

yeah its been doing my head in for a while now lol.
not sure why it wont work. but there is probably a way to make it work.
at the very least you have given me new variables to try which is more than i had before i asked.
by ShambleS1980
24 Jun 2020, 21:49
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

SetTitleMatchMode, 2 WinWaitClose, Resident Evil run, %rompath%end234 Return #If !WinExist Resident Evil && GetKeyState("f", "P") ~a::b #If Still runs the file instantly. ---- edit.. not sure how to explain this lol.. the script is used to start and close a lot of different pc apps.. this works as i...
by ShambleS1980
24 Jun 2020, 21:39
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

Resident Evil / biohazard HD REMASTER
ahk_class RE_BHD
ahk_exe bhd.exe
ahk_pid 4864


the very 1st line of the script runs the app i want to run.. This could be any app but for this post lets say that it runs BHD.exe because it does if thats what i select for it to run...
by ShambleS1980
24 Jun 2020, 21:26
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

WinWaitClose, ahk_exe bhd.exe
did not work either..
bhd.png
bhd.png (3.34 KiB) Viewed 1827 times
by ShambleS1980
24 Jun 2020, 21:17
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

Run, %rompath%%romname%%romextension% SetTitleMatchMode, 2 WinWaitClose, bhd sleep, 90000 run, %rompath%end234 Return #If !WinExist("bhd") && GetKeyState("f", "P") ~a::b #If ExitApp ;Required CloseProcess: WinKill, A run, %rompath%end234 return That is the exact script as i have it now.. i set the ...
by ShambleS1980
24 Jun 2020, 21:05
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

yeah i double checked that before i read your reply and the actual name is bhd lower case but it still does it. i also tried ("bhd") this is what i have now SetTitleMatchMode, 2 WinWaitClose, ("bhd") sleep, 4000 run, %rompath%end234 Return #If !WinExist("bhd") && GetKeyState("f", "P") ~a::b #If its ...
by ShambleS1980
24 Jun 2020, 20:57
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

Thats almost it, but it didn't wait for BHD to close before it ran the file. I will try to add a sleep delay to it.

edit..
No it just waited out the sleep delay and then ran the file without BHD getting closed 1st.
by ShambleS1980
24 Jun 2020, 20:51
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

Re: detect window closed and run file. Topic is solved

yest the hot key is as intended.. but i want to run the command IF bhd is closed.. I do not want it to run if BHD was never opened. Open bhd (keybinds are enabled) close bhd (run file) I do not wan to run the file just because BHD is not open i want it to run because BHD was closed... thats why i sl...
by ShambleS1980
24 Jun 2020, 20:30
Forum: Ask For Help
Topic: detect window closed and run file. Topic is solved
Replies: 24
Views: 4595

detect window closed and run file. Topic is solved

Can any one fix this for me? it wont detect the window closing and so it wont run the file. i only want it to run IF the window was previously opened... SetTitleMatchMode, 2 Return If !WinExist("Bhd") && GetKeyState("f", "P") {~a::b If !WinNotExist, ("Bhd") run, %rompath%end234 return } i think it n...

Go to advanced search