Jump to content
Sign in to follow this  
robismyname

understanding GUICtrlSetData

Recommended Posts

robismyname
GUICtrlSetData ( controlID, data [, default] )
 
Not sure how to interpret red bold text in the script below. Any help is appreciated.
 
$TestProgress = GUICtrlCreateProgress(665, 460, 200, 20)
GUICtrlSetColor(-1, 32250)
GUICtrlSetData($TestProgress, 35)
.
.
.
.
GUICtrlSetData($TestProgress, 100)
.
.
.
.
GUICtrlSetState($TestProgress,$GUI_Hide)
If GUICtrlRead($LTE4)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_4_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_4_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 10)
 
If GUICtrlRead($LTE7)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_7_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_7_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 10)
 
If GUICtrlRead($LTE17)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_17_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_17_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 20)
 
If GUICtrlRead($LTE2)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_2_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_2_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 10)
 
If GUICtrlRead($LTE5)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_5_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_5_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 20)
 
If GUICtrlRead($LTE13)=1 Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_13_Main.xml run")
;RUNWAIT($QDir&"NoiseProfilingTool.exe HP_LTE_13_Aux.xml run")
EndIf
GUICtrlSetData($TestProgress, 5)

Share this post


Link to post
Share on other sites
Danyfirex

$TestProgress is the Progress control ID. We can say that your Progress bar can be filled with 100 water glass. so in this case GUICtrlSetData($TestProgress, 10) you are filling with 10 water glass.

I hope you understand.

 

sorry for my bad english...

saludos

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  

×