Search found 7 matches

by BaconCatBug
07 May 2019, 17:05
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 100
Views: 74537

Re: How to optimize the speed of a script as much as possible.

Question about PixelSearch. When I disable "Fast" mode, it pretty much makes my script unusable, as in it lags the entire PC, even if I set a generous sleep in between loops.

Am I missing something obvious?
by BaconCatBug
17 Jul 2014, 19:45
Forum: Ask For Help
Topic: How to stop a hotkey firing if held?
Replies: 2
Views: 717

Re: How to stop a hotkey firing if held?

Checkout GetKeyState to see if you can implement. Let us know if you get stuck. Thanks for the help! :D I eventually found a solution with Google-fu that uses SetTimer instead: #NoEnv #SingleInstance, Force SendMode Input SetWorkingDir %A_ScriptDir% SetTimer TimerName, 1000 X:: Toggle := !Toggle Ti...
by BaconCatBug
17 Jul 2014, 08:08
Forum: Ask For Help
Topic: How to stop a hotkey firing if held?
Replies: 2
Views: 717

How to stop a hotkey firing if held?

Hi all! I have a very simple script that I am utilising that simply loops an action when I hit a button until it gets pressed again: However, if I accidentally or otherwise hold down the X key, it'll keep sending the action and will no longer stop when I hit X again. I'd be very grateful if someone ...
by BaconCatBug
19 Jun 2014, 05:42
Forum: Ask For Help
Topic: Multiple While Loops?
Replies: 11
Views: 1986

Re: Multiple While Loops?

Awesomesauce. Thank you again <3
by BaconCatBug
18 Jun 2014, 17:44
Forum: Ask For Help
Topic: Multiple While Loops?
Replies: 11
Views: 1986

Re: Multiple While Loops?

Excellent stuff Kon! One problem I am having though, the kill part of the script only seems to work if the second program has a window associated with it. In my case, it's actually a compiled AHK script that runs in the background with no Icon or window. I assumed I need to change: WinClose, % "ahk_...
by BaconCatBug
16 Jun 2014, 04:08
Forum: Ask For Help
Topic: Multiple While Loops?
Replies: 11
Views: 1986

Re: Multiple While Loops?

Gay-Lussac wrote:
flyingDman wrote:Wouldn't you need a negative period to run the timers once and keep the loops?
I am interested in this script (by OP). What would be your recommendation?
As am I. :)
by BaconCatBug
15 Jun 2014, 10:27
Forum: Ask For Help
Topic: Multiple While Loops?
Replies: 11
Views: 1986

Multiple While Loops?

Hi all. I currently have a script that I run in the background that waits for a program to launch, then runs a script when it detects the program has launched and closes it when it is closed: #NoTrayIcon #SingleInstance force While, 1 { WinWaitActive, WindowName run X:\Path\To\Compiled\Script.exe Wi...

Go to advanced search