Search found 327 matches

by KuroiLight
03 Dec 2017, 17:05
Forum: Gaming
Topic: send every x sec once if i hold down the button
Replies: 26
Views: 4273

Re: send every x sec once if i hold down the button

is my script what you wanted or no?
by KuroiLight
03 Dec 2017, 17:02
Forum: Gaming
Topic: send every x sec once if i hold down the button
Replies: 26
Views: 4273

Re: send every x sec once if i hold down the button

Here is your code cleaned up a bit #WinActivateForce #NoEnv SendMode Input return *$q:: sendinput {lbutton} sendinput q loop { if getkeystate("q", "p") { send {lbutton down} sleep 10 send {lbutton} sleep 10 send {q up} } else { send {lbutton up} send {q downtemp} send {q down} send {q up} break } } ...
by KuroiLight
03 Dec 2017, 16:52
Forum: Gaming
Topic: send every x sec once if i hold down the button
Replies: 26
Views: 4273

Re: send every x sec once if i hold down the button

same as before, just swapping the sleep and send; and disabling passthrough: #SingleInstance, force OnExit("Exiting", -1) global Repr := new KeyRepeater("w", "123", 5000, false) return Exiting() { Repr := Repr.Dispose() } Class KeyRepeater { __New(Key, RepeatingKeys := "", Delay := 50, PassThru := f...
by KuroiLight
03 Dec 2017, 16:28
Forum: Gaming
Topic: Is there a way to get windows to reboot on specific errors? Topic is solved
Replies: 1
Views: 317

Re: Is there a way to get windows to reboot on specific errors? Topic is solved

You should probably fix the source of the issue first, but heres a script: #SingleInstance, force #Persistent DetectHiddenWindows, On WinWait, % "Warning! Video Controller not operating correctly" WinActivate, ControlClick, Ok, A Shutdown, 6 ExitApp, 0 return may need to run as admin if the miner is...
by KuroiLight
03 Dec 2017, 16:21
Forum: Gaming
Topic: send every x sec once if i hold down the button
Replies: 26
Views: 4273

Re: send every x sec once if i hold down the button

post what you have and I will add it in.
by KuroiLight
03 Dec 2017, 16:10
Forum: Gaming
Topic: send every x sec once if i hold down the button
Replies: 26
Views: 4273

Re: send every x sec once if i hold down the button

Hard to understand what you want. You can try this: #SingleInstance, force OnExit("Exiting", -1) global Repr := new KeyRepeater("w", "123", 5000, true) return Exiting() { Repr := Repr.Dispose() } Class KeyRepeater { __New(Key, RepeatingKeys := "", Delay := 50, PassThru := false) { this.Key := Key th...
by KuroiLight
01 Dec 2017, 20:15
Forum: About This Community
Topic: Rule Poll
Replies: 59
Views: 59285

Re: Rule Poll

Illegal content What is illegal content? Note: as far as I've seen, writing and owning malicious code, as well as software cracks/bypasses, is not illegal. The use of them may be, however. Just some general information. I would [maybe] draw the line at crack tools, maybe malicious code... really de...
by KuroiLight
25 Nov 2017, 14:58
Forum: Ask For Help
Topic: FileExist: 'is file but not dir' one-liner Topic is solved
Replies: 3
Views: 587

Re: FileExist: 'is file but not dir' one-liner Topic is solved

regex is probably over kill for this task but your other examples are probably the smallest you can get it. You could do this: ((e := FileExist(PATH)) ? (InStr(e, "D") ? "Directory" : "File") : "Nothing") e.g. val1 := ((e := FileExist(A_ScriptFullPath)) ? (InStr(e, "D") ? "Directory" : "File") : "No...
by KuroiLight
25 Nov 2017, 13:55
Forum: Ask For Help
Topic: Idk why my script doesnt work it doesnt give errors
Replies: 3
Views: 3915

Re: Idk why my script doesnt work it doesnt give errors

Looks like you may have meant Wd == 0 instead of Wd = 0 on that if line. It might make your code easier to read to do something like this: CoordMode, Mouse, Screen box1 := new Rect(100, 100, 100, 100) box2 := new Rect(200, 200, 100, 100) return ~LButton:: MouseGetPos, mX, mY if(box1.IsInside(mX, mY)...
by KuroiLight
23 Nov 2017, 21:49
Forum: Ask For Help
Topic: Threads halting unknown reason
Replies: 11
Views: 1846

Re: Threads halting unknown reason

Well I went another route for this specific task which seems to have achieved my goal: global WM_WTSSESSION_CHANGE := 0x2b1, WTS_SESSION_LOCK := 0x7, WTS_SESSION_UNLOCK := 0x8, ScreenLocked := false thisPid := DllCall("GetCurrentProcessId") thisHwnd := WinExist("ahk_pid " . thisPid) DllCall("Wtsapi3...
by KuroiLight
23 Nov 2017, 21:03
Forum: Ask For Help
Topic: Threads halting unknown reason
Replies: 11
Views: 1846

Re: Threads halting unknown reason

On a side note: Is there any reason why Process, Exist would be able to see a process and WinExist wouldn't? even with DetectHiddenWindows, On.
by KuroiLight
23 Nov 2017, 19:36
Forum: Ask For Help
Topic: Threads halting unknown reason
Replies: 11
Views: 1846

Re: Threads halting unknown reason

ok so I added some logging code into the script and tested heres what I get: Script with logging global processes := {} global dbgLogger := new LogFile(,false,,"mm.ss") LogonUI_Func := Func("ProcessStatusUpdate").Bind("LogonUI") LockAppHost_Func := Func("ProcessStatusUpdate").Bind("LockAppHost") Loc...
by KuroiLight
23 Nov 2017, 19:21
Forum: About This Community
Topic: Rule Poll
Replies: 59
Views: 59285

Re: Rule Poll

+1 Nextron
by KuroiLight
23 Nov 2017, 19:18
Forum: Ask For Help
Topic: Threads halting unknown reason
Replies: 11
Views: 1846

Re: Threads halting unknown reason

I agree that this normally wouldn't be the type of thing to put in a class, but its actually supposed to go into a larger class and work with other code. anyways this doesn't seem to work either: global processes := {} LogonUI_Func := Func("ProcessStatusUpdate").Bind("LogonUI") LockAppHost_Func := F...
by KuroiLight
21 Nov 2017, 23:13
Forum: Ask For Help
Topic: Hotkey makes class objects un-freeable Topic is solved
Replies: 2
Views: 501

Re: Hotkey makes class objects un-freeable Topic is solved

That worked, it's unfortunate that hotkey doesn't have a Delete option to free up the reference... #SingleInstance, force t := new test() Sleep, 1000 t.Dispose() t := "" Sleep, 2000 ExitApp, 0 return Class test { __New() { f_func1 := ObjBindMethod(this, "func1") Hotkey, CapsLock, %f_func1%, On Hotke...
by KuroiLight
21 Nov 2017, 22:38
Forum: Ask For Help
Topic: RegDelete
Replies: 3
Views: 643

Re: RegDelete

check the value of A_LastError after regdelete, here is a the list of error codes: System Error Codes
by KuroiLight
21 Nov 2017, 22:19
Forum: Ask For Help
Topic: Send clicks relative to cursor position?
Replies: 20
Views: 3957

Re: Send clicks relative to cursor position?

Thank you Exaskryz, I'm not too good at explaining things so I skip this sometimes and point to the docs.
by KuroiLight
21 Nov 2017, 21:48
Forum: Ask For Help
Topic: Send clicks relative to cursor position?
Replies: 20
Views: 3957

Re: Send clicks relative to cursor position?

this might be what your looking for then:

Code: Select all

RelativeClick(rX := 0, rY := 0) {
    MouseGetPos, X, Y
    MouseMove, %rX%, %rY%,, R
    Click
    MouseMove, %X%, %Y%,
}

Numpad1::RelativeClick(0, -90)
Numpad2::RelativeClick(20, -90)
by KuroiLight
21 Nov 2017, 21:38
Forum: Ask For Help
Topic: Hotkey makes class objects un-freeable Topic is solved
Replies: 2
Views: 501

Hotkey makes class objects un-freeable Topic is solved

how do i remove the reference used by Hotkey ? It's preventing the object from freeing properly. example: t := new test() t := "" return Class test { __New() { f_func1 := ObjBindMethod(this, "func1") Hotkey, CapsLock, %f_func1%, On Hotkey, CapsLock, %f_func1%, Off } func1() { ToolTip, % "hello world...
by KuroiLight
21 Nov 2017, 21:34
Forum: Ask For Help
Topic: Send clicks relative to cursor position?
Replies: 20
Views: 3957

Re: Send clicks relative to cursor position?

What are you trying to do with Numpad1?
the code I posted was merely to get you started you'll want to put that in a hotkey or function.

Go to advanced search