.NET

Reply
*Tony Tanzillo
Message 1 of 8 (350 Views)

SendStringToExecute

350 Views, 7 Replies
07-05-2005 07:26 PM
SendStringToExecute
I'm having a problem with this, if the user has typed
something on the command line, but has not pressed
enter.

Is there any API (C++, undocumented or not) that can
tell me if keystrokes have been typed at the "Command: "
prompt, but enter/space hasn't been pressed?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Owen Wengerd
Message 2 of 8 (350 Views)

Re: SendStringToExecute

07-05-2005 08:41 PM in reply to: *Tony Tanzillo
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Tony Tanzillo
Message 3 of 8 (350 Views)

Re: SendStringToExecute

07-06-2005 07:30 PM in reply to: *Tony Tanzillo
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Albert Szilvasy
Message 4 of 8 (350 Views)

Re: SendStringToExecute

07-07-2005 10:02 AM in reply to: *Tony Tanzillo
Have you tried Application.IsQuiescent ?

Albert
"Tony Tanzillo" wrote in message
news:4894610@discussion.autodesk.com...
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message
news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Tony Tanzillo
Message 5 of 8 (350 Views)

Re: SendStringToExecute

07-07-2005 03:51 PM in reply to: *Tony Tanzillo
Hi Albert - That did it, thanks.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message news:4895269@discussion.autodesk.com...
Have you tried Application.IsQuiescent ?

Albert
"Tony Tanzillo" wrote in message
news:4894610@discussion.autodesk.com...
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message
news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Tony Tanzillo
Message 6 of 8 (350 Views)

Re: SendStringToExecute

07-07-2005 06:13 PM in reply to: *Tony Tanzillo
If IsQuiescent returns false when keystrokes are on the
command line, why does Editor.LeavingQuiescentState
not fire when the first keystroke is typed?

And, if I erase all of the keystrokes with Backspace,
then shouldn't EnteringQuiescentState fire?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message news:4895269@discussion.autodesk.com...
Have you tried Application.IsQuiescent ?

Albert
"Tony Tanzillo" wrote in message
news:4894610@discussion.autodesk.com...
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message
news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Albert Szilvasy
Message 7 of 8 (350 Views)

Re: SendStringToExecute

07-07-2005 07:33 PM in reply to: *Tony Tanzillo
Sound like a bug to me but I suspect it has been this way for long enough
that fixing it would cause harm than good.

Albert

"Tony Tanzillo" wrote in message
news:4895896@discussion.autodesk.com...
If IsQuiescent returns false when keystrokes are on the
command line, why does Editor.LeavingQuiescentState
not fire when the first keystroke is typed?

And, if I erase all of the keystrokes with Backspace,
then shouldn't EnteringQuiescentState fire?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message
news:4895269@discussion.autodesk.com...
Have you tried Application.IsQuiescent ?

Albert
"Tony Tanzillo" wrote in message
news:4894610@discussion.autodesk.com...
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message
news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
*Tony Tanzillo
Message 8 of 8 (350 Views)

Re: SendStringToExecute

07-08-2005 07:06 AM in reply to: *Tony Tanzillo
Thanks. You might want to make note that when dynamic
input is enabled and keystroke input goes to the edit box
at the cursor, IsQuiescent returns true even when keystrokes
have been entered.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message news:4895873@discussion.autodesk.com...
Sound like a bug to me but I suspect it has been this way for long enough
that fixing it would cause harm than good.

Albert

"Tony Tanzillo" wrote in message
news:4895896@discussion.autodesk.com...
If IsQuiescent returns false when keystrokes are on the
command line, why does Editor.LeavingQuiescentState
not fire when the first keystroke is typed?

And, if I erase all of the keystrokes with Backspace,
then shouldn't EnteringQuiescentState fire?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message
news:4895269@discussion.autodesk.com...
Have you tried Application.IsQuiescent ?

Albert
"Tony Tanzillo" wrote in message
news:4894610@discussion.autodesk.com...
Hi Owen. Thanks, tried that, no luck.

I know AutoCAD checks this, because it doesn't
respond to mouse clicks in the drawing window if
there's something typed.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Owen Wengerd" wrote in message
news:4893409@discussion.autodesk.com...
Tony:

> Is there any API (C++, undocumented or not) that can
> tell me if keystrokes have been typed at the "Command: "
> prompt, but enter/space hasn't been pressed?

Maybe 'acedIsInputPending' exported by acad.exe? I've never tried it, but
it's a good bet. :smileyhappy:
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.