Skip to content

Any way to send variable to ahk code when starting script? #241

Answered by spyoungtech
Gh0sTG0 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gh0sTG0
Comment options

Answer selected by Gh0sTG0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants