View Single Post
Old 8th June 2014, 12:06   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,275
Quote:
Originally Posted by r2du-soft View Post
when compile,nsis compiler Getting error for this line:
what Getting error?
How am I supposed to know when you don't say what the compiler error is?


Change
Quote:
System::Call 'OLE32::CLSIDFromProgID(w "WScript.Shell",g.r1)i.r0'
!insertmacro ComHlpr_CreateInProcInstance $1 "{24BE5A30-EDFE-11d2-B933-00104B365C9F}" r0 ""
to
Quote:
!insertmacro ComHlpr_CreateInProcInstance "{72c24dd5-d70a-438b-8a42-98424b88afb8}" "{24BE5A30-EDFE-11d2-B933-00104B365C9F}" r0 ""
Quote:
Originally Posted by r2du-soft View Post
And this code that you contract for me send to "y" a process?
I don't know how many times I need to say this, you cannot send keys to a process! Simulated input will go to a thread and a thread can have multiple windows but it will most likely be handled by the foreground window.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote