Hi, dudes.
I have this masterpiece I made in 2008 that I use almost every day.
This is shell, "copy the path" and send to clipboard.
But
Compiled with v3.08 it GETS the path in $0 but does NOT send it to clipboard. (to paste elsewhere)
Compiling it with v2.3, it works!!!
What am I missing?
;...dadada..
!include ${NSISDIR}\Include\WinMessages.nsh
!include "${NSISDIR}\Include\FileFunc.nsh"
!insertmacro GetParameters
SilentInstall Silent
LoadLanguageFile "PORTUGUESEBR.NLF"
xpstyle on ##Using w7x64 !!
;...dadada...
Push $0
Exch $0 ;input string
Push $1
Push $2
System::Call 'user32::OpenClipboard(i 0)'
System::Call 'user32::EmptyClipboard()'
StrLen $1 $0
IntOp $1 $1 + 1
System::Call 'kernel32::GlobalAlloc(i 2, i r1) i.r1'
System::Call 'kernel32::GlobalLock(i r1) i.r2'
System::Call 'kernel32::lstrcpyA(i r2, t r0)'
System::Call 'kernel32::GlobalUnlock(i r1)'
System::Call 'user32::SetClipboardData(i 1, i r1)'
System::Call 'user32::CloseClipboard()'
Pop $2
Pop $1
Pop $0
Used in function .oninit.
I am using W7 64 but compiling with v2.8 it works since w98
Thanks for any help!
I have this masterpiece I made in 2008 that I use almost every day.
This is shell, "copy the path" and send to clipboard.
But
Compiled with v3.08 it GETS the path in $0 but does NOT send it to clipboard. (to paste elsewhere)
Compiling it with v2.3, it works!!!
What am I missing?
;...dadada..
!include ${NSISDIR}\Include\WinMessages.nsh
!include "${NSISDIR}\Include\FileFunc.nsh"
!insertmacro GetParameters
SilentInstall Silent
LoadLanguageFile "PORTUGUESEBR.NLF"
xpstyle on ##Using w7x64 !!
;...dadada...
Push $0
Exch $0 ;input string
Push $1
Push $2
System::Call 'user32::OpenClipboard(i 0)'
System::Call 'user32::EmptyClipboard()'
StrLen $1 $0
IntOp $1 $1 + 1
System::Call 'kernel32::GlobalAlloc(i 2, i r1) i.r1'
System::Call 'kernel32::GlobalLock(i r1) i.r2'
System::Call 'kernel32::lstrcpyA(i r2, t r0)'
System::Call 'kernel32::GlobalUnlock(i r1)'
System::Call 'user32::SetClipboardData(i 1, i r1)'
System::Call 'user32::CloseClipboard()'
Pop $2
Pop $1
Pop $0
Used in function .oninit.
I am using W7 64 but compiling with v2.8 it works since w98
Thanks for any help!
Comment