Hello,
I use this funcion a lot of times. So, to reduce the number of seeking files i`ve try do use a global var that do only once and save but ahk cant recognized my action. There is another way?
I have:
imagem.png
imagem2.png
imagem3.png
imagem4.png
I try to store the number of images at %imagem%0 variable for reduce every time seek files in hd
Problem with global variables
Problem with global variables
Last edited by gregster on 06 May 2022, 10:08, edited 1 time in total.
Reason: Added missing topic name. Feel free to change it to something more appropriate.
Reason: Added missing topic name. Feel free to change it to something more appropriate.
Re: Problem with global variables
If someone should edit/work with your code you should think about providing it in a code box of the forum, instead of showing a screenshot that your supporters can only use within a graphic editor. JM2€ents ![Yawn :yawn:](./images/smilies/icon_yawn.gif)
![Yawn :yawn:](./images/smilies/icon_yawn.gif)
Re: Problem with global variables
You could just use Global as a lone statement (no parameters) inside your function. Using an array is an alternative.
Explained: Assume global
Explained: Assume global
Who is online
Users browsing this forum: Bing [Bot], Chunjee, Hansielein, Lpanatt and 324 guests