Problem with global variables

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rockit0
Posts: 3
Joined: 20 May 2017, 13:31

Problem with global variables

06 May 2022, 09:17

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
1.PNG
1.PNG (6.9 KiB) Viewed 206 times
image.png
image.png (81.43 KiB) Viewed 206 times
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.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Problem with global variables

06 May 2022, 10:54

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:
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Problem with global variables

06 May 2022, 11:00

You could just use Global as a lone statement (no parameters) inside your function. Using an array is an alternative.

Explained: Assume global

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Rauvagol and 316 guests