Any way to send variable to ahk code when starting script? #241
-
Hi. Can I, somehow, start ahk code, but make it accept some variable as a part of the code?
And in my python code:
So, is there some way to transfer Ofc I can do something like:
Plus add some lines to beginning of
But maybe there are some better ways? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you've got the right idea by modifying your script using Python to inject your variable before calling Though, I'm not sure what your issue is with the use of your variable with your loop or why you need to use BigA. For example, this works: num = 3
; This will loop 3 times
Loop, %num% {
MsgBox, Loop %A_Index% out of %num%
} Not sure if there's something I'm missing here. |
Beta Was this translation helpful? Give feedback.
I think you've got the right idea by modifying your script using Python to inject your variable before calling
run_script
.Though, I'm not sure what your issue is with the use of your variable with your loop or why you need to use BigA.
For example, this works:
Not sure if there's something I'm missing here.