Sign in to follow this  
Followers 0
Gozzgug

Variables Naming question

5 posts in this topic

I am new to autoit and I've been looking at the scripts that people write here. I know that variables start with a $ but I see most scripts using variables like:

$gMyVariable and $hMyVariable

What are the differences in the $h and the $g? Is this just a preferred naming convention and if so what does the g and h represent? I would like to stick with the same coding naming conventions.

Thanks,

Rick

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I am new to autoit and I've been looking at the scripts that people write here. I know that variables start with a $ but I see most scripts using variables like:

$gMyVariable and $hMyVariable

What are the differences in the $h and the $g? Is this just a preferred naming convention and if so what does the g and h represent? I would like to stick with the same coding naming conventions.

Thanks,

Rick

look at variables in helpfile , to get a complete view about variables in Autoit

EDIT:Welcome to AutoIt!

EDIT2: variable name's are random...

Edited by c4nm7

Share this post


Link to post
Share on other sites

look at variables in helpfile , to get a complete view about variables in Autoit

EDIT:Welcome to AutoIt!

EDIT2: variable name's are random...

Thanks but I've looked and I understand the basic variables and the naming requirements. I guess I was asking why so many people use the $gMyVariable and and in the same script use $hMyVariable in other areas within the script? It may be a more specific question towards the user's scripts I am finding here on the forums.

I was just wondering what type of variable naming convention methodology was used for example in the script in this post.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0