|
|
#1 |
|
Member
Join Date: Oct 2001
Posts: 71
|
SectionSetFlags bits
I read the documentation and tried playing around with it.. but i am failing to grasps how to actually modify the bits to Select/Deselect make Read-only / Non-read only. Could anyone explain to me how these work exactly? thanks..
|
|
|
|
|
|
#2 |
|
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
|
This will set the second section as currently enabled:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Etc... -Justin |
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2001
Posts: 71
|
Ok now i am not sure about how to test and see if a section is enabled or not.. would you use the AND operade like
SectionGetFlags 1 $R0 IntOp $R1 $R0 & 0x80000000 and then do a test like this to see if its valid or not..? or am i way off bases and totaly failing to understand how it works.. |
|
|
|
|
|
#4 |
|
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
|
Yep you got it ...
IntOp $R1 $R0 & 0x80000000 IntCmp $R1 0 SectionNotEnabled DetailPrint "Section is enabled" SectionNotEnabled: -Justin |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2001
Posts: 71
|
Justin,
I think i am getting it.. I am using this as a test script.. would this be the best way to work with it.? I am using 0x00000000 to make a Selection Disabled correct method right? here is the script PHP Code:
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|