Search found 1344 matches

by Masonjar13
13 Jan 2020, 15:34
Forum: Ask For Help
Topic: Detect when montior is turned off or idle?
Replies: 12
Views: 2693

Re: Detect when montior is turned off or idle?

Considering this is a 4 year old thread.. Idk. But taking a look at the structure, if you're using 7 or below, GUID_MONITOR_POWER_ON is needed, which reports either 0 or 1. But, for 8+, GUID_CONSOLE_DISPLAY_STATE is used, which has 0, 1, or 2, where 2 = dimmed. How I had written it, dimmed is synony...
by Masonjar13
04 Jan 2020, 22:15
Forum: Ask For Help
Topic: Hot string # problem Topic is solved
Replies: 2
Views: 177

Re: Hot string # problem Topic is solved

Code: Select all

:*?T:###::#ifwinactive
:*?:###::+3ifwinactive
By default, hotstrings are interpreted like send. Modifiers are able to be used. T doesn't use modifiers, just sends raw, so that's what I would recommend using here.
by Masonjar13
26 Nov 2019, 14:30
Forum: Ask For Help
Topic: How do you convert a list (eg "1,2,3,4") into an array?
Replies: 2
Views: 108

Re: How do you convert a list (eg "1,2,3,4") into an array?

strSplit

Code: Select all

x:="1,2,3,4,99,33"
array:=strSplit(x,",")
by Masonjar13
16 Oct 2019, 12:52
Forum: Ask For Help
Topic: Wait for window, then send a cancel command
Replies: 9
Views: 418

Re: Wait for window, then send a cancel command

ControlClick the x or cancel control. If there isn't a control, you can try sending it at exact (client-based) coordinates. I have several persistent windows such as this, and giving them the interaction they expect usually gives positive results. It has for me, anyways.
by Masonjar13
09 Oct 2019, 18:40
Forum: Ask For Help
Topic: some kind of bug causing some errors?
Replies: 4
Views: 458

Re: some kind of bug causing some errors?

I'm going to assume you didn't write these then? With that many questions, I would direct you to the tutorial. That should clear up most of your questions, and probably better than I could explain here.
by Masonjar13
08 Oct 2019, 22:24
Forum: Ask For Help
Topic: How to open a webpage with InPrivate?
Replies: 2
Views: 321

Re: How to open a webpage with InPrivate?

This pretty much is exactly what knoxastic is doing, but in a more isolated manner. Unfortunately flashes the window though, I've never been able to get around that. https://github.com/Masonjar13/AHK-Library/blob/master/Lib/IEObj.ahk If you don't feel like dissecting it, here's an example to use the...
by Masonjar13
08 Oct 2019, 22:13
Forum: Ask For Help
Topic: Looking for a fancy way to close a script when iTunes does.
Replies: 3
Views: 360

Re: Looking for a fancy way to close a script when iTunes does.

I believe the core of your issue is that you're using iTunes. ;) I'll never miss an opportunity to bash Apple. For funsies. Assuming that it will work okay (but not close the script) if you return in the callback, using a timer should work. Bit dirty, but I don't see another proper way, unless you m...
by Masonjar13
08 Oct 2019, 21:54
Forum: Ask For Help
Topic: some kind of bug causing some errors?
Replies: 4
Views: 458

Re: some kind of bug causing some errors?

This isn't a bug with AHK. What's happening is your control is getting stuck in the "down" position. I can't exactly say where, but try using hooks first off. Second, since it's all in the same context, you should place them all in the same script. At the very least, having them all in the same scri...
by Masonjar13
12 Sep 2019, 18:56
Forum: Gaming
Topic: When color found - Sends discord message Topic is solved
Replies: 3
Views: 369

Re: When color found - Sends discord message Topic is solved

Two things. First, yeah, posting the script should be the first thing you do, so people know what you're doing and can figure out how to help you. Second, what you've described breaks Discords TOS, which makes you subject to being banned by them. Thought I'd give you a fair warning.
by Masonjar13
05 Aug 2019, 08:30
Forum: Ask For Help
Topic: AHK Not working and keeps breaking
Replies: 6
Views: 865

Re: AHK Not working and keeps breaking

Perhaps I should expand a bit on that. Using ScriptUp, which runs H due to L not having multi-threading, #ifxxx crashes the thread on exiting, therefore I've personally deprecated it (this has nothing to do with my implementation, I've checked). It's also extremely limited, but as you said, does wor...
by Masonjar13
04 Aug 2019, 19:12
Forum: Ask For Help
Topic: Activate keys only in inactive window. Topic is solved
Replies: 9
Views: 1016

Re: Activate keys only in inactive window. Topic is solved

The reason it doesn't work when pressed quickly is because it's getting the active window again, which would be the mudlet window. If you use critical , it should buffer (or ignore) the second activation, rather than interrupt the currently running instance. If it doesn't, then consider using the ho...
by Masonjar13
04 Aug 2019, 13:17
Forum: Ask For Help
Topic: AHK Not working and keeps breaking
Replies: 6
Views: 865

Re: AHK Not working and keeps breaking

SOTE is correct that you should look at yourself first, as a general rule for life, really. You're describing issues with your implementation (likely permissions), not AHK. The biggest issue people have is not running as administrator. For most of AHK to work properly, it needs admin privileges. Sec...
by Masonjar13
24 Jul 2019, 17:15
Forum: Ask For Help
Topic: Check color, while send .....keys if Check <= Xms) break
Replies: 2
Views: 327

Re: Check color, while send .....keys if Check <= Xms) break

SetTimer is what you'll want to use here. setTimer,sendThings,1998 setTimer,pixelCheck,1000 return sendThings: send 1 sleep 1998 ... send 0 return pixelCheck: if(pixelGetColor(872,53)!=0xFFB60E) ; integers/hex-integers do not need quotes, as they don't need to be strings ; other checks and such ret...
by Masonjar13
24 Jul 2019, 17:03
Forum: Ask For Help
Topic: Ctrl Double_press keys without effecting normal Ctrl press
Replies: 2
Views: 277

Re: Ctrl Double_press keys without effecting normal Ctrl press

Not entirely sure what the issue here is. If you simply abstain from doing anything, it will work as normal. For the if, you could simply return, but the better option would be to inverse the check (see if ErrorLevel isn't /if the timeout didn't happen). ~^s:: KeyWait, s ; wait for z to be released ...
by Masonjar13
24 Jul 2019, 16:45
Forum: Ask For Help
Topic: Best way to initiate a script
Replies: 5
Views: 416

Re: Best way to initiate a script

Sounds like a privilege issue. In the shortcut you have, make sure it's set to run as administrator. Windows 10 doesn't allow rebinds/hotkeys without admin.
by Masonjar13
16 Jul 2019, 20:31
Forum: Ask For Help
Topic: Copy a Link (Last 3 Numbers)
Replies: 1
Views: 265

Re: Copy a Link (Last 3 Numbers)

Well first, post any written code you have. I can only assume you're talking about the address bar in a browser. Pretty simple; major browsers all have a hotkey to select the address bar. So, send that, then send ^c. AHK has a clipboard var, which you can then use substr to get the last 3 characters...
by Masonjar13
03 Jul 2019, 23:55
Forum: Ask For Help
Topic: Scroll / Screenshot Auto Hot Key
Replies: 2
Views: 335

Re: Scroll / Screenshot Auto Hot Key

Using AHK for such a purpose seems fairly silly. Browser extensions will work much better: https://addons.mozilla.org/en-US/firefox/addon/fireshot/
by Masonjar13
16 May 2019, 19:37
Forum: Ask For Help
Topic: Help with ImageSearch Topic is solved
Replies: 16
Views: 1667

Re: Help with ImageSearch Topic is solved

It appears this is for a website, correct? I would use ImageSearch only as a last resort. Primarily, I would suggest JavaScript injection, dropping AHK entirely. Alternatively, there are many ways to connect to browsers in AHK: IE COM, Chrome.ahk (library by GeekDude), Selenium.. you could even use ...
by Masonjar13
23 Apr 2019, 14:46
Forum: Ask For Help
Topic: How to STOP music (if playing) Topic is solved
Replies: 4
Views: 651

Re: How to STOP music (if playing) Topic is solved

I'd like to post this as an alternative. It uses the Spotify API, which affects your entire Spotify account. Meaning, it can pause/play/change music/volume/etc. on any device that your account is currently streaming to.
by Masonjar13
13 Apr 2019, 14:12
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 1790

Re: problem with variable

Topic locked due to being wildly off-topic. AutoN, please be aware of several things. Topic threads don't often stay 100% to the question (obviously, it's a discussion after all) and extra information may be provided by either party. Also note that none of the mods, or any other users, are paid to d...

Go to advanced search