Jump to content
Sign in to follow this  

different control ID's on diff. machines

Recommended Posts


i was just wondering if someone could offer some suggestions for me.

i'm working on a program and have created several buttons. (save, clear and exit)

on my laptop the control ID for the clear button is 30, but when i load the same exact script on my main PC it shows the control ID as 28

the problem is i have alot of functions that make modifications to specific control ID's

so with this changeing, this causes me a problem..

any idea why this happens?

should i try to use the classnameNN instead?


Edited by blitzkrg

Share this post

Link to post
Share on other sites

If you create the controls and assign the controlid to a variable you won't have to worry about it being different.

for example

$lbl_status = GUICtrlCreateLabel ("Done", 10, 30, 50)

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.