Search found 16829 matches

by boiler
Today, 16:00
Forum: Ask for Help (v2)
Topic: Help with making manual hotkey for CTRL+C
Replies: 1
Views: 41

Re: Help with making manual hotkey for CTRL+C

Try this, assuming the "Copy" menu item is the second item starting with a "C" (with "Cut" being the first):

Code: Select all

#Requires AutoHotkey v2.0

SetKeyDelay 20

#HotIf WinActive('ahk_exe MyPhoneExplorer.exe') ; assuming that's the actual process name
^c::SendEvent '{Click R}cc{Enter}'
by boiler
Today, 15:35
Forum: Gaming Help (v1)
Topic: Help with dual boxing script...
Replies: 9
Views: 276

Re: Help with dual boxing script...

I have no idea why adding the quotes breaks the CoordMode, but it works this way so I don't care LoL Well, I'll explain it anyway so hopefully you don't have to ask again to fix similar issues in the future: You don't quote literal strings in legacy/command syntax. That's only in expressions. If yo...
by boiler
Yesterday, 07:56
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 128

Re: Problem with a WinActive and WinNotExist loop script

That's really it. It's not an AHK limitation. No other tool would be able to send keystrokes in a way that will get it to accept them, if that's really the issue here. It's the way the app works. I could easily write a little app that will only respond to keystrokes when its window is active and the...
by boiler
Yesterday, 06:46
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 128

Re: Problem with a WinActive and WinNotExist loop script

And with the minimized windows maybe not, just Not Active windows, in the second monitor in Borderless Windowed, should it work too? or with another cmd? Should it work? As I had posted earlier: Not all windows respond to virtual key presses, and even when they do, some don’t respond to virtual key...
by boiler
Yesterday, 06:39
Forum: Ask for Help (v2)
Topic: How can I make a macro to paste and send an image every 300 seconds in Discord?
Replies: 3
Views: 114

Re: How can I make a macro to paste and send an image every 300 seconds in Discord?

I would think that an automatic posting of a message every few minutes would be frowned upon if not outright disallowed. @runie, this sounds like something that would definitely be not be allowed on the AHK Discord. Would that be true in general?
by boiler
Yesterday, 06:13
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 128

Re: Problem with a WinActive and WinNotExist loop script

Again, hard-coding the PID is not the way to go because it changes every time you run the app. And you didn’t say before that you want to send it to a minimized window. I don’t expect you’d ever get that to work with any approach.
by boiler
Yesterday, 05:52
Forum: Ask for Help (v2)
Topic: How to iterate through list of colors
Replies: 1
Views: 41

Re: How to iterate through list of colors

That’s not an object with key-value pairs. That’s an object with a bunch of properties defined. It looks like you are wanting to do the same as a v1 associative array, which in v2 is a map object : Basic := [211, 211, 221] Rare := [190, 254, 167] Epic := [158, 240, 255] Legendary := [255, 212, 163] ...
by boiler
Yesterday, 05:22
Forum: Ask for Help (v2)
Topic: Fat-arrow function after auto-exec part Topic is solved
Replies: 4
Views: 85

Re: Fat-arrow function after auto-exec part Topic is solved

Both functions are defined as soon as the script runs, but assigning a function reference to a variable only happens if you execute the line that does so, and your script would never execute that line. That is fully expected as that very concept is explained in the documentation of the fat-arrow fun...
by boiler
Yesterday, 05:03
Forum: Ask for Help (v2)
Topic: Fat-arrow function after auto-exec part Topic is solved
Replies: 4
Views: 85

Re: Fat-arrow function after auto-exec part Topic is solved

Put the line where you assign f where it actually executes (above the return ) and it will work fine. That exact info is in the warning message itself, by the way. The function definition occurs as soon as the script runs, but the assignment of the function reference only occurs if/when you execute ...
by boiler
Yesterday, 04:33
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4897
Views: 1398009

Re: « What's on your mind? » Topic is solved

In other words, 55/69 out of 69 vendors say it’s safe, and as you’ve pointed out, there’s no convincing some of them because they have no interest in being logical about it. Because AHK can/has been used to create malware, therefore AHK should be flagged is the kind of intellectual dishonesty that e...
by boiler
24 Apr 2024, 22:03
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 128

Re: Problem with a WinActive and WinNotExist loop script

Are you really meaning that you want to differentiate between the windows? Get the HWND (unique window IDs) of both windows using WinGet…List . If you need to know which one is which, you can compare the window positions or track as each one is opened, or potentially many other aspects that would di...
by boiler
24 Apr 2024, 20:29
Forum: Ask for Help (v1)
Topic: Dynamic way to find a program and run it Topic is solved
Replies: 2
Views: 129

Re: Dynamic way to find a program and run it Topic is solved

I've went through some post on the forum, and it seems like they require the folder window to be active to do the search, is there a way to search for a specific .exe file and run it without requiring a window to be active? I don’t know what you saw that made you think a folder window had to be act...
by boiler
24 Apr 2024, 13:10
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 29
Views: 3548

Re: Class ToolTipOptions - 2024-03-27

Bobak -- With some trial and error, I have found that you can't just change the options once they're set. You have to .Reset() and then .Init() again in order to have it recognize the new options, as this code demonstrates: #Requires AutoHotkey v2.0 #Include <ToolTipOptions> ; use first set of opti...
by boiler
24 Apr 2024, 09:52
Forum: Gaming
Topic: Help with making code for keyboard input to controller Topic is solved
Replies: 6
Views: 79

Re: Help with making code for keyboard input to controller Topic is solved

I am sure AHK can do this, or some other program. I tried using UCR and Interception .. not sure how it all worked, tried to make it work, but couldnt. So maybe an AHK code could be made? Any help would be great thank you. Native AHK cannot do this. Controller button presses and other inputs cannot...
by boiler
24 Apr 2024, 09:37
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 29
Views: 3548

Re: Class ToolTipOptions - 2024-03-27

It gives the strange effect that ix is locked and thus it is always the same. The idea is that the color, text and title should change with each press of one of the two hotkeys. Yes, using static like that would be expected to produce the same result each time because it will only assign ix the fir...
by boiler
24 Apr 2024, 02:21
Forum: Ask for Help (v2)
Topic: How can I make a macro to paste and send an image every 300 seconds in Discord?
Replies: 3
Views: 114

Re: How can I make a macro to paste and send an image every 300 seconds in Discord?

I’m questioning why this is something that would be seen as appropriate in the Discord folks’ eyes, although I’m not a real Discord user. Can you explain what legitimate reason there is for this before anyone answers with any help?
by boiler
23 Apr 2024, 20:38
Forum: Ask for Help (v1)
Topic: Recording Macros for AHK
Replies: 12
Views: 4945

Re: Recording Macros for AHK

rockitdontstopit wrote: How is that "malware"?
He said adware, not malware. Big difference.

rockitdontstopit wrote: I use PMC in conjunction with ahk files and it's great. Would LOVE to see a PMC for ahk V2.
viewtopic.php?f=83&t=116603
by boiler
23 Apr 2024, 17:42
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 128

Re: Problem with a WinActive and WinNotExist loop script

First, you should never hard-code in a PID because they change each time you run an application. Also, is there really a control named Edit1 like in Notepad? I would doubt it. Not all windows respond to virtual key presses, and even when they do, some don’t respond to virtual keypresses sent to thei...
by boiler
23 Apr 2024, 13:01
Forum: Gaming Help (v1)
Topic: Help with dual boxing script...
Replies: 9
Views: 276

Re: Help with dual boxing script...

Maybe the first click just activates the window and you have to click again before it registers clicks in the window, as is the case with many applications (MS Excel being one example).
by boiler
23 Apr 2024, 12:57
Forum: Ask for Help (v1)
Topic: Create & Use Custom Labels as Hotkey
Replies: 10
Views: 800

Re: Create & Use Custom Labels as Hotkey

Thus, I was questioning the use of that 3rd-line's Return, if it was needed or not, is all... ...or is this Return not-needed?/1 line script? You don't need a return return in your script if there are no other lines below, even if it's more than a one-line script. But you do need it to keep if from...

Go to advanced search