The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: hutch-- on May 23, 2008, 04:22:49 AM

Title: QE 3.5c minor modification with added Date and Time.
Post by: hutch-- on May 23, 2008, 04:22:49 AM
I have just added to QE the capacity to run a QE script from the command line. It is currently an unpublished capacity while it is experimental and if it proves reliable, it will be documented.

It uses the notation drv:\> qeditor /script:yourscript.qsc

It requires the normal path considerations so that if you have a script in the \masm32 directory you would specify the correct path to it after the /script: option.

Any feedback would be welcome on this capacity.

*******************************
Later version with date and time on Edit menu below.

*******************************
Title: Re: QE 3.5c minor modification
Post by: herge on May 29, 2008, 06:40:15 PM

Hi hutch-:

Could we add Tedd's Today's Date plug in to a
later release.

Thanks.
Title: Re: QE 3.5c minor modification
Post by: herge on May 30, 2008, 07:58:39 AM

Hi hutch-:

I can't find the Project button
for qeditor(3.5c).
I think we are going need it.

Thanks.
Title: Re: QE 3.5c minor modification
Post by: hutch-- on May 31, 2008, 02:04:24 PM
Try this slight mod, I had the code for both date and time in another editor so I just pinched it and added it to QE.

RE the project menu and so on, its contained in the qeditor.ini file in masm32. QE has programmable menus that are explained in the help file. Either overwrite the version of QE in masm32 with the new version or if you want to start from scratch create a new ini file with all of your own settings.

Let me know if the dual date time format is what you were after and works correctly.

[attachment deleted by admin]
Title: Re: QE 3.5c minor modification with added Date and Time.
Post by: herge on May 31, 2008, 06:07:24 PM

Hi hutch-:

We have got the time okay,
but we don't have the date.

Regards: herge
Title: Re: QE 3.5c minor modification with added Date and Time.
Post by: hutch-- on May 31, 2008, 10:20:56 PM
herge,

what OS version are you using ? On my win2000 sp4 I get this,


Sunday, June 01, 2008
8:21:44 AM


This is the code I am using to provide the date and time.


          Case 1111
            invoke GetDateFormat,LOCALE_USER_DEFAULT,DATE_LONGDATE,NULL,NULL,ADDR buffer1,260
            invoke SendMessage,hEdit,EM_REPLACESEL,TRUE,ADDR buffer1

          Case 1112
            invoke GetTimeFormat,LOCALE_USER_DEFAULT,NULL,NULL,NULL,ADDR buffer1,260
            invoke SendMessage,hEdit,EM_REPLACESEL,TRUE,ADDR buffer1


LATER: I have just tested this QE version on XP sp2 and it works correctly with both date and time. Would you let me know what OS version you are running and if applicable what languae it run in.
Title: Re: QE 3.5c minor modification with added Date and Time.
Post by: herge on June 01, 2008, 10:00:24 AM

Hi hutch-:


Microsoft Windows XP [Version 5.1.2600]


Regards herge.
Title: Re: QE 3.5c minor modification with added Date and Time.
Post by: herge on June 01, 2008, 03:01:00 PM
 Hi Hutch-:

I've figured out what's wrong.
Press F6 you get date Sunday, June 01, 2008
Press F7 you get time 10:53:41 AM

I was not pressing F7.

Can we put a space before
the time.

ie F6,F7

Sunday, June 01, 2008 10:53:41 AM


Regards herge.

Title: Re: QE 3.5c minor modification with added Date and Time.
Post by: hutch-- on June 01, 2008, 06:59:22 PM
herge,

Thanks for that, I thought I had run into a version compatibility problem. RE the space, I did not want to mess up the formatting as I have usually seen these time date stamps used on seperate lines. I will probably use it with a leading assembler comment so it would probably be best to leave it unformatted.