Prev Previous Post   Next Post Next
Old 4th February 2009, 16:51   #1
and84
Junior Member
 
Join Date: Apr 2008
Posts: 12
Angry Cycle + Cancel button = does not work

Hello All.
Faced with the problem.
In the script uses the cycle of reading data from a file:

PHP Code:
........
!
define MUI_PAGE_CUSTOMFUNCTION_SHOW cancel_ON

Section 
""
StrCpy $"0"
next:
        
IntOp $$1
        ReadINIStr $R1 
'$EXEDIR\data.ini' 'FILE $2' 'NAME'
        
ReadINIStr $R2 '$EXEDIR\data.ini' 'FILE $2' 'PATH'
        
ReadINIStr $R5 '$EXEDIR\data.ini' 'FILE $2' 'URL'
        
ReadINIStr $R3 '$EXEDIR\data.ini' 'FILE $2' 'CRC'
        
ReadINIStr $R4 '$EXEDIR\data.ini' 'FILE $2' 'END'
        
StrCmp $R4 "END" next 
        DetailPrint 
"OK"      
quit:
SectionEND

Function cancel_ON
         GetDlgItem $R0 $HWNDPARENT 2 
         EnableWindow $R0 1 
FunctionEnd 
As a result ...
Clicking on the Cancel button, it does not work the first time (have to press several times)

What problem?
and84 is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump