Search found 6837 matches
- 16 Feb 2021, 22:13
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
I think your script should look as simple as below. You don't even need a hotkey because you can just let it execute as soon as you run it since you're not waiting for any window to be active. And you don't need to separately create the "Session #" folders because FileCreateDir automatically creates...
- 16 Feb 2021, 21:52
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
My view on this whole script is that interacting with the explorer window to see what window title is active and sending keystrokes is the wrong ways to go. Just interact directly with the file system with FileExist and FileCreateDir , and you remove all the Sleep commands, sending keystrokes, check...
- 16 Feb 2021, 21:42
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
If your active window does not match what you indicated, then nothing will happen with your infinite loop, except the looping. At that point, the loop is likely to "lock" what is happening, because the loop persists and has no delays or actions. Or does it return from the subroutine after the else ...
- 16 Feb 2021, 21:36
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
It looks to me that you have it create two levels of folders, then you have it go back up just one level. At the start of the next loop, you check for the folder that was two levels up, and since that’s not the current folder, you have it return from the subroutine, which ends the loop. Actually, I’...
- 16 Feb 2021, 21:05
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
I also don’t think you want the brackets that you have in there based on what one of your prior lines names folders, so it seems it should be:
Code: Select all
if WinActive("Session " . num)
- 16 Feb 2021, 21:00
- Forum: Ask For Help
- Topic: If loops not working...? Topic is solved
- Replies: 10
- Views: 73
Re: If loops not working...? Topic is solved
This line is wrong: if WinActivate ("Session [%num%]"), It should be: if WinActive("Session [" . num . "]") The name of the function is wrong. You have a space before the open parenthesis where there should be none. Your variable reference in the string is wrong. Notice removal of the comma too. You...
- 16 Feb 2021, 15:36
- Forum: Ask For Help
- Topic: tf.ahk text library
- Replies: 14
- Views: 168
Re: tf.ahk text library
Very nice, @sofista.
- 16 Feb 2021, 13:54
- Forum: Ask For Help
- Topic: Weird obs studio issue Topic is solved
- Replies: 5
- Views: 64
Re: Weird obs studio issue Topic is solved
What do you mean by “when out of the window”? Do you mean another window is active? Or do you mean the window is still active but the mouse isn’t over the window? When/why would you want to use the hotkey when you are out of the window? Just trying to understand the situation. By the way, you can re...
- 16 Feb 2021, 13:21
- Forum: Ask For Help
- Topic: Weird obs studio issue Topic is solved
- Replies: 5
- Views: 64
Re: Weird obs studio issue Topic is solved
Someone might be able to help if you share your script and describe what it does.
- 16 Feb 2021, 11:28
- Forum: Gaming
- Topic: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
- Replies: 25
- Views: 432
Re: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
I don’t know the options available using that generator tool. I use this online mcode generator, which allows you to select 32 or 64 bits:
http://mcode-generator.com/
http://mcode-generator.com/
- 16 Feb 2021, 11:01
- Forum: Ask For Help
- Topic: tf.ahk text library
- Replies: 14
- Views: 168
Re: tf.ahk text library
Looks like it's actually the 22nd character, not the 29th. And it won't be able to sort numerically because it's not a pure number after that. If you want to strip off the </value> at the end of each, then it would be able to sort numerically starting with the 22nd character, as this demonstrates: s...
- 16 Feb 2021, 10:54
- Forum: Gaming
- Topic: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
- Replies: 25
- Views: 432
Re: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
It is not possible to make it work on x64 version of AHK? Yes, the source code can be compiled for 64 bits, and the AHK script could include both and use the appropriate one based on the value of A_PtrSize. Apparently, Spawnova made a change to the source code to produce an updated version, so that...
- 16 Feb 2021, 09:50
- Forum: Ask For Help
- Topic: Key remapping doesnt do hold?
- Replies: 4
- Views: 39
Re: Key remapping doesnt do hold?
You can typically do that with a separate up version of the hotkey so that the down and up events are processed separately, but it appears that the joystick button presses are seen as both an up and down event by the hotkey, even though GetKeyState and KeyWait are able to discern when each state act...
- 16 Feb 2021, 09:46
- Forum: Ask For Help
- Topic: tf.ahk text library
- Replies: 14
- Views: 168
Re: tf.ahk text library
Are you really sorting on the 16th column? I see that as an example in the original TF library thread, but does that also happen to be true for your use case? And looking at the source code for TF_Sort, it appears to simply be using that option exactly as is used in the AHK Sort command. In fact, al...
- 16 Feb 2021, 09:28
- Forum: Ask For Help
- Topic: Key remapping doesnt do hold?
- Replies: 4
- Views: 39
Re: Key remapping doesnt do hold?
You can also use KeyWait so you don't have to loop on the value of GetKeyState:
Code: Select all
Joy4::
Send, {Ctrl down}{F2 down}
KeyWait, Joy4
Send, {F2 up}{Ctrl up}
return
- 16 Feb 2021, 09:12
- Forum: Gaming
- Topic: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
- Replies: 25
- Views: 432
Re: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
64-bit AutoHotkey installation or 64-bit machine/OS? What does the following say?
Code: Select all
MsgBox % A_PtrSize
- 16 Feb 2021, 09:04
- Forum: Ask For Help
- Topic: tf.ahk text library
- Replies: 14
- Views: 168
Re: tf.ahk text library
I believe it would be just like this:
TF_Sort(TestFile, "NP16")
- 16 Feb 2021, 05:40
- Forum: Ask For Help
- Topic: Excel Vba library
- Replies: 2
- Views: 64
Re: Excel Vba library
If I’m understanding, you want these hotstrings:
Code: Select all
:*:if#e#::
(
If then
else
end if
)
:*:for#line#::
(
for line = to
next line
)
- 16 Feb 2021, 05:26
- Forum: Ask For Help
- Topic: only part of my simple code running
- Replies: 2
- Views: 41
Re: only part of my simple code running
Why are you sending the :: ? If you’re sending a key combination to trigger the hotkey in the other script, you would just send the hotkey combination itself, not the :: that follows when defining a hotkey. Removing them might not fix your problem, but I wouldn’t be sending the extra characters, whi...
- 16 Feb 2021, 05:17
- Forum: Gaming
- Topic: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
- Replies: 25
- Views: 432
Re: Is there a way to do this imaging manipulation? (copy, paste & overlay inside a bitmap image) Topic is solved
If you post the source of the machine code, the 64-bit version could be generated, and the script could be made to use the appropriate version automatically. Source code should typically be posted anyway.