Search found 327 matches

by KuroiLight
20 Dec 2017, 01:03
Forum: Ask For Help
Topic: OpenProcess | Access Denied Topic is solved
Replies: 1
Views: 750

Re: OpenProcess | Access Denied Topic is solved

Oh turns out this code actually works, I assumed failure when I couldn't access the system idle process not realizing I never would have been able to anyways. here are the functions incase anyone wants to use them: ProcessExist(processIdName) { if(!processIdName) return "" PROCESSES := EnumerateProc...
by KuroiLight
20 Dec 2017, 00:52
Forum: Ask For Help
Topic: Script size limit? Topic is solved
Replies: 2
Views: 618

Script size limit? Topic is solved

Is there a hard limit for script size :?:
Just curious because I have a growing library file currently sitting at 786 lines/23K characters and want to know when I should start splitting it up or doing some reduction.
by KuroiLight
20 Dec 2017, 00:46
Forum: Ask For Help
Topic: moving ToolTip
Replies: 1
Views: 519

Re: moving ToolTip

I was just playing around with some code when I added that, I was just going for the smallest fastest script possible that did something interesting I guess. It just moves the tooltip to the reverse of your mouse position, not much beyond that. Had intended to apply it to some splash windows when th...
by KuroiLight
18 Dec 2017, 20:55
Forum: Ask For Help
Topic: Converting Seconds to MM:SS
Replies: 5
Views: 1092

Re: Converting Seconds to MM:SS

Keep track of seconds only, and convert to minutes when you need to display them. For example: #Persistent _tickTime := 2 * 60 ;2minutes SetTimer, CountDown, 1000 return CountDown() { global _tickTime _tickTime-- } getMinutes(val) { m := Floor(val / 60) s := Mod(val, 60) return m . ":" . s } F1::Msg...
by KuroiLight
18 Dec 2017, 20:48
Forum: Ask For Help
Topic: If you use Persistent scripts and Windows 10 there might be a big problem Topic is solved
Replies: 5
Views: 1120

Re: If you use Persistent scripts and Windows 10 there might be a big problem Topic is solved

^Like joe said, Likely something wrong with your script, haven't had any problems like this with W10.
Post your script and we might be able to sort it out.
by KuroiLight
18 Dec 2017, 20:41
Forum: Ask For Help
Topic: OpenProcess | Access Denied Topic is solved
Replies: 1
Views: 750

OpenProcess | Access Denied Topic is solved

I have the following adapted code to enum and look at processes without using the built-in methods: SetWorkingDir, %ScriptDir% strList := "" pList := EnumerateProcesses() for pid, name in pList { strList .= pid . " -> " . name . "`n" } MsgBox, %strList% ExitApp, 0 return ProcessExist(processIdName) ...
by KuroiLight
17 Dec 2017, 11:31
Forum: Ask For Help
Topic: Renaming process in task manager
Replies: 1
Views: 489

Re: Renaming process in task manager

[this should go in the game sub-section of the forum]
You can probably get away with using UPX and renaming the exe. Cheat detection software detecting AHK will usually look for more than just filenames, since AHK compiled scripts are binded with the AHK binaries themselves they are easier to detect.
by KuroiLight
17 Dec 2017, 11:22
Forum: Ask For Help
Topic: transfer variables from autoit
Replies: 15
Views: 2207

Re: transfer variables from autoit

and that his will start index at 0.
by KuroiLight
15 Dec 2017, 13:52
Forum: Ask For Help
Topic: transfer variables from autoit
Replies: 15
Views: 2207

Re: transfer variables from autoit

You need to use square brackets to declare an array : name := ["adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre"] my mistake, I ment name := Array("adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre") Thank you. Is there a chance to have my variables...
by KuroiLight
14 Dec 2017, 14:29
Forum: Ask For Help
Topic: Error checking for 2 different pixel checks
Replies: 2
Views: 516

Re: Error checking for 2 different pixel checks

maybe?

Code: Select all

While(!FindPixel())
    Send, {F5}
return

FindPixel() {
    Pixelsearch, px, py, 842, 996, 896, 996, 0xFFFFFF, Fast
    if(ErrorLevel) {
        Pixelgetcolor, Color, 837, 963
        if(ErrorLevel and Color != 0x1FB9FF)
            return false
    }
    return true
}
by KuroiLight
14 Dec 2017, 13:57
Forum: Ask For Help
Topic: transfer variables from autoit
Replies: 15
Views: 2207

Re: transfer variables from autoit

do you mean convert that code into AHK? or send those variables to an AHK script?
if the first, this should be the equivalent:

Code: Select all

name := ("adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre")
for i, v in name {
    Clipboard := v
    Send, +{INSERT}
}
by KuroiLight
12 Dec 2017, 13:22
Forum: Ask For Help
Topic: Need help
Replies: 2
Views: 497

Re: Need help

Code: Select all

hello := false
return

Lbutton::
    if(hello == true){
        Loop 2 {
            MouseClick, Left
        }
    } else {
        Send, {LButton down}
    }
return

LButton Up::
    Send, {LButton up}
return
by KuroiLight
12 Dec 2017, 13:15
Forum: Ask For Help
Topic: Can't find script
Replies: 24
Views: 5942

Re: Can't find script

The simplest solution is to use windows search and search for *.ahk, and look through the results.
by KuroiLight
10 Dec 2017, 13:03
Forum: Ask For Help
Topic: restrict viewing page source in Google Chrome browser
Replies: 15
Views: 2361

Re: restrict viewing page source in Google Chrome browser

Not much you can do about that, best to take a look at the link kadhri posted.
by KuroiLight
09 Dec 2017, 12:22
Forum: Ask For Help
Topic: restrict viewing page source in Google Chrome browser
Replies: 15
Views: 2361

Re: restrict viewing page source in Google Chrome browser

This seems like a round-about way of hiding a webpage source, there will always be ways around. This is reminiscent of School staff trying to stop students from installing software or viewing certain webpages [which never works]. Anyways, Heres a script with suggestions from the previous posts: [unc...
by KuroiLight
09 Dec 2017, 11:34
Forum: Ask For Help
Topic: how to read the ahk scripts in a large project which editor is preferred
Replies: 4
Views: 1053

Re: how to read the ahk scripts in a large project which editor is preferred

Sublime Text is actually capable of jumping to code in other files, despite its quirks with ahk.
by KuroiLight
04 Dec 2017, 19:00
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

One thing you must understand is that keyboards [usually from the driver or built-in controller] will automatically send key down events rapidly when held down, this is why 'w' is spammed in the previous script. as for your last post: $*w:: if(A_TimeSincePriorHotkey > 100) Send, r if(w_repeating) re...
by KuroiLight
03 Dec 2017, 17:32
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

or with R pressed everytime:

Code: Select all

$*~w::
    if(A_TimeSincePriorHotkey > 100)
        Send, r
    if(w_repeating)
        return

    w_repeating := true
    While(GetKeyState("w", "P")) {
        Send, 123
        sleep, 5000
    }
    w_repeating := false
return
by KuroiLight
03 Dec 2017, 17:28
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

#WinActivateForce #SingleInstance, force #NoEnv SendMode Input #MaxThreadsPerHotkey, 2 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 u...
by KuroiLight
03 Dec 2017, 17:14
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

OK, let me see if I can figure out what you want: What exactly do you want to happen when Q is pressed? What exactly do you want to happen when W is pressed? What exactly do you want to happen when LWin is pressed? What exactly do you want to happen when F1 is pressed? What exactly do you want to ha...

Go to advanced search