CTRL-X problem in a Dialog Memo Field

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

CTRL-X problem in a Dialog Memo Field

Post by jpuziano » Tue Dec 06, 2005 12:01 am

Hi Support,

Inside a Memo field in a Dialog, there seems to be a problem with CTRL-X.
When you select some text and hit CTRL-X, the text doesn't disappear.

Inside an Edit field in the same dialog, it works as I would expect, the selected text disappears when I hit CTRL-X (and is copied to the Windows clipboard).

Is CTRL-X not supported in Memo fields for editing or is this a bug?

Note: I'm using version 8.0 beta 006 on Win 2000
Last edited by jpuziano on Thu Nov 23, 2006 7:53 am, edited 1 time in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

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

Post by Marcus Tettmar » Tue Dec 06, 2005 7:52 am

Works for me. Perhaps you have a non-modal dialog and the memo is getting reset in each loop iteration?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Sun Dec 11, 2005 3:05 am

Nope, its modal and very similar to your "Modal Dialog Example" macro in the Help file, Dialog page.

CTRL-C and CTRL-V have always worked and most of the time, CTRL-X works in the memo field too, but every once in a while, it fails.

Also, when it fails on CTRL-X, sometimes I've even seen it popup an additional dialog asking "Are you Sure?" along with "OK" and "Cancel" buttons. This is weird because I don't even have a dialog like that in my script. I've tried both buttons and can't recall which one does what but sometimes I've had it go on working (except it ignores CTRL-X after that) and other times, its locked up and I've had to CTRL-ALT-DELETE, shutdown Macro Scheduler, and start it up again to get things back to normal.

I'm not sure what triggers this. I've tried all kinds of control keys in different sequences and typing fast to overflow the buffer (it just beeps like typing fast in Notepad beeps)... can't seem to reproduce it on demand.

I'll turn on logging (with full variable dumping) and if it happens again, maybe something interesting will get logged.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

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

Post by Marcus Tettmar » Sun Dec 11, 2005 9:05 am

CTRL-X is the shortcut on the Macro Scheduler main form for deleting a macro and when you do that it always asks "Are you Sure?". So it sounds like Macro Scheduler's main window had the focus when that happened. You say it works sometimes and not others - on the times it didn't work I'm guessing focus had shifted somehow. The only way you'd get that message is if Macro Scheduler's main window had the focus ...
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Sun Dec 11, 2005 7:04 pm

OK, I've found a way to make it fail (using 8.0 beta 007 on XP SP2)

1) Make sure "Start Minimized" is checked under Options for Macro Scheduler

2) Create and save a macro with the code below:


Dialog>MyDialog
Caption=Why Does CTRL-X Sometimes Fail?
Width=467
Height=283
Top=157
Left=147
Memo=msMemo1,4,7,449,195,MemoText
Button=Exit,179,211,90,25,2
EndDialog>MyDialog

Remark>load text from windows clipboard (if any) into memo field
GetClipboard>clipboard_text
Let>MemoText=%clipboard_text%

Label>MainLoop
Show>MyDialog,result
If>result=2,End
Goto>MainLoop

Label>End


3) Assign a Hot-Key to this macro, I used CTRL-ALT-E

4) Close down Macro Scheduler completely

5) Start Macro Scheduler again. Make sure it starts minimized, hiding itself in the System Tray.

6) Hit the Hot Key combination to invoke macro.

When I do this, I can edit in the memo field in the dialog that pops up but CTRL-X either does nothing or... pops up the "Are You Sure" dialog.

Update: If I instead run this macro from the Macro Scheduler Main Window, by selecting it and clicking on "Run Now", CTRL-X works properly in the macro. Please let me know what you find.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

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 Dec 12, 2005 9:34 am

Hi,

Thanks. I see the problem now. We'll sort it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Nov 23, 2006 7:53 am

Just for the record, I see this issue has been fixed.

I'm not sure when it was fixed but its no longer there in 9.0.037 BETA.

Thanks Support.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

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