News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Newbie

Started by radarblue, February 18, 2015, 09:42:17 AM

Previous topic - Next topic

jj2007

Quote from: rrr314159 on February 20, 2015, 10:38:49 PM
Wow - RichMasm checks for inkey and behaves accordingly? A minor point, but I have to say, that's impressive; you put a lot of thought into that program!

Thanks, but it's not so much thought but rather a necessity: If you have to see a window flash and disappear a dozen times, you logically say "I must teach that bloody editor what a console app is". And sometimes I need an inkey at the end, e.g. for posting snippets for noobs here, and then I couldn't stand hitting a key twice.

And of course, it was a bit of a challenge to find a reliable way to determine if it's subsystem:console or subsystem:windows.
C print
C inkey
W SendMessage
W CreateWindow
...
but then, MsgBox or MessageBox may appear in both. Even SendMessage can be used in console apps.

Anyway, it works. Another goodie:

... code ...
int 3
... code ...
RichMasm will launch \Masm32\OllyDbg\ollydbg.exe MyApp.exe With Some Args If Necessary

... code ...
; int 3
... code ...

RichMasm will not launch Olly ;-)