Author Topic: force spell check before plot  (Read 3786 times)

0 Members and 1 Guest are viewing this topic.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
force spell check before plot
« on: September 28, 2010, 10:39:52 AM »
I cant seem to get my brain running today.  I cant figure out how to make a user run spell check before plotting.  I used the begin_command event to capture the plot command, but everything I try comes in after the plot command finishes.  Any ideas?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Bob Wahr

  • Guest
Re: force spell check before plot
« Reply #1 on: September 28, 2010, 11:11:21 AM »
I did a hijack like this once.  if i remember, i used a flag and  the steps basically this

begin command
if flag is false
  cancel command (might have done sendkey esc to do it)
  do stuff i want to do
  set flag = true
  plot
else
end

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: force spell check before plot
« Reply #2 on: September 28, 2010, 11:12:59 AM »
its the sendkey esc I cant figure out.  I even tried to undefine the plot command and make my own, but that didn't work either
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Bob Wahr

  • Guest
Re: force spell check before plot
« Reply #3 on: September 28, 2010, 12:23:50 PM »
Have you tried ThisDrawing.SendCommand Chr(27) & Chr(27) & Chr(27)

thinking more on it, I think I had to do it as two subs because I couldn't start the plot while I was in begin command still.

Begin command
if flag is false
  cancel
  flag = true
else
  flag = false
end if
end sub

end command
  if flag then
    spell check
    plot
  end if
end sub

Bob Wahr

  • Guest
Re: force spell check before plot
« Reply #4 on: September 28, 2010, 12:25:07 PM »
I don't have VBA loaded or I would dig through code and give you a better answer

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: force spell check before plot
« Reply #5 on: September 28, 2010, 06:54:10 PM »
thanks for looking. I ended up cancelling the plot command and giving the user a boot to the head
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: force spell check before plot
« Reply #6 on: September 28, 2010, 07:12:43 PM »
thanks for looking. I ended up cancelling the plot command and giving the user a boot to the head
:-D :-D
Our precentage of Speling erors went down wit 2010 squggily undrlining of mispelled words.  Now it wood be nice if if FireFox had somehting like that.
 :-D
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: force spell check before plot
« Reply #7 on: September 30, 2010, 11:55:46 AM »
thanks for looking. I ended up cancelling the plot command and giving the user a boot to the head
was that a hard or soft reboot to the head?
Be your Best


Michael Farrell
http://primeservicesglobal.com/