Skip to content
⌘ NSIS Forum Archive

SendMessage

36 posts

futuris#
Possible source of problem!

> Matlab 6 has a SunAwtFrame class window with Caption "Matlab"

"SunAwtFrame" means that MatLab written in Java! It means, that it will not (most likely) react to Windows messages.
kichik#
Smile2Me, have you tried sending the lParam and wParam as shown on Spy?

And does [Enter] means a line break or does it actually show [Enter]?
Guest#
Kichik,

[Enter] means a line break indeed, but also that the command entered will be executed. In Matlab 49[Enter] means that it will assign the value 49 to the variable 'ans'...

But I think I replicated the messages given by Spy completely, but I'll check on this again, thx...

Happy NewYear to you all!!!

Greetz, Hendri.
kichik#
I still think you are on the right track.

As you can see by the "table" below the values you sent with WM_KEYUP/DOWN/CHAR were just shifted some to the digits zone. The difference between d and i is the same as 4 and 9. All we are missing now is the r 🙂


4 5678 9
d efgh i
Did you try to use spy to see what messages are being sent from the installer and then compare them to the messages you sent manually?

KiCHiK
Guest#
Kichik,

bright point!!!
I'll check the function CharToAscii as it seems that there is something wrong there...

Yeah, i spied the messages from installler to Matlab and everything looked ok to me... (just the messages i send where reported, nothing strange...)

But i also discovered some functions in Matlab to do the job i posted this thread for (in the end, I wanted to protect my M-files (just textfiles with commands) from being viewed or changed). Matlab offers a service for that. So finding some dll's of Matlab give me the opportunity to code my files...

So the goal is achieved!!!

But i'll keep trying to get the messages to work because i think i'll need it later on for other installer features...

So at this point thx all for the helping replies!!!

Kichik, i'll work on it, and i'll post my result here!!!

THX ALL, greetz, Hendri.
Guest#
Some old topic information:

I gave up, but did the thing in another way, as you might have read...

But I've got a new question on SendMessage.

Please help me at:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Thx all, greetz, Hendri.