Possible Bug with bookmarks

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Possible Bug with bookmarks

Post by sarver311 » Mon Sep 28, 2009 5:53 pm

Before I post my issue I just want to say that you have outdone yourself with Version 11 Marcus. I finally talked my work into getting the latest version and it's so much nicer to use with all the editor enhancements!

One quirk I did notice, however, was that I would set bookmarks then everyonce in a while they'd disappear. I could not reproduce the issue until today. I don't know if it might be my installation of MS but here is what happens.

I right click the ms icon and go to show to view my scripts

I right click a script and choose edit macro

When the script loads it shows all my bookmarks and everything is fine. I start to F9 through the script for some debugging purposes. As soon as I hit the red x to stop the script then if I right click my bookmarks no long show up.

Now at this point if I were to close the script and reoopen it the bookmarks are back again but if I was to save the script while it was in the state where the bookmarks weren't showing then they would be gone forever.

Can anyone else confirm this to happen on their machine?

This is on version 11.1.13
Thanks!

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Sep 28, 2009 6:09 pm

Just followed your steps and did not have any problem with my bookmarks disappearing. I wasn't sure from your wording "I start to F9 through the script" if you were pressing F9 to run the script in the editor or pressing F8 to step through it but I tried both and had no problems with either.

Win XP SP3 - Macro Scheduler 11.1.14

sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Post by sarver311 » Mon Sep 28, 2009 6:19 pm

Sorry for the wording confusion but that helped me discover another piece to this.

I realized that this only happens when I am passed the part of my script which has and include statement that calls another script. The other script that is being called does not contain bookmarks so perhaps that is confusing it?

I'm going to try upgrading my Macro Scheduler to 11.1.14 as well.

**update** actually it may not be that either. I'm going to mess with it for a bit and see if I can nail down when this occurs. I don't want to send anyone on wild "bug chases" =)

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Sep 28, 2009 6:29 pm

Yes... I can now confirm your issue. If I try this in a script that has an Include> line my bookmarks are deleted also.

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Sep 28, 2009 6:58 pm

A little more testing.

I placed the following script at c:\ and named it "borderless dialog include.scp"

Code: Select all

//Borderless Dialog usage
//GoSub>BorderlessDialog,DialogName
SRT>BorderlessDialog
  CloseDialog>%BorderlessDialog_var_1%
  Let>dlg_hndl=%BorderlessDialog_var_1%.handle
  LibFunc>user32,SetWindowLongA,sres,dlg_hndl,-16,1073741824
  Show>%BorderlessDialog_var_1%
END>BorderlessDialog
I then wrote this short sample to see what happens. Open this next script in the editor and create a bookmark or two... Then press F8 if you pick the red "X" to stop debugging before you reach the include line there are no problems. If you pick the red "X" to stop debugging after you have reached the include> line, your bookmarks are deleted. At least that's been what I've experienced.

Code: Select all

Dialog>Dialog1
   Caption=Dialog1
   Width=445
   Height=250
   Top=10
   Left=CENTER
   Label=This is a borderless Dialog,24,64
EndDialog>Dialog1

SetDialogObjectFont>Dialog1,mslabel1,Arial,24,0,917898
Show>Dialog1

//////////////////////////////////////////////////////////////
        Include>c:\borderless dialog include.scp
//////////////////////////////////////////////////////////////

GoSub>BorderlessDialog,Dialog1
Wait>3

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 28, 2009 7:02 pm

Thanks for this. Problem has been noted.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Post by sarver311 » Mon Sep 28, 2009 7:07 pm

I noticed this as well in my testing JRL. Thanks for taking the time to confirm the issue.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts