.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SendStringToExecute

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
555 Views, 7 Replies

SendStringToExecute

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
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 3 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 4 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 5 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 6 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 7 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
Message 8 of 8
Anonymous
in reply to: Anonymous

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. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost