View Single Post
Old 13th April 2016, 20:37   #7
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 342
try again

hi
i try again to convert vb code to nsis code:

HTML Code:
;------------------
Var foreground_hwnd
Var txt
Var length
Var length2
;------------------


Section

;------------------
;P1:
Strcpy $txt "                                                                                                                            "
MessageBox MB_OK|MB_ICONINFORMATION "$txt"
;------------------

;------------------
;P2:
System::Call 'user32::GetForegroundWindow()i .r0'
StrCpy $foreground_hwnd $0
MessageBox MB_OK|MB_ICONINFORMATION "$foreground_hwnd"
;------------------

;------------------
;P3:
System::Call 'user32::GetWindowText($foreground_hwnd, $txt, StrLen $length2 $txt)i .r3'
MessageBox MB_OK|MB_ICONINFORMATION "$3"
;------------------

;------------------
;P4:
;Then be completed
;------------------

SectionEND


i can't completing P3
Again not work!!!
I need help....
r2du-soft is offline   Reply With Quote