SendStringToExecute

SendStringToExecute

Anonymous
Not applicable
950 Views
7 Replies
Message 1 of 8

SendStringToExecute

Anonymous
Not applicable
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
0 Likes
951 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
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
0 Likes
Message 3 of 8

Anonymous
Not applicable
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
0 Likes
Message 4 of 8

Anonymous
Not applicable
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
0 Likes
Message 5 of 8

Anonymous
Not applicable
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
0 Likes
Message 6 of 8

Anonymous
Not applicable
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
0 Likes
Message 7 of 8

Anonymous
Not applicable
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
0 Likes
Message 8 of 8

Anonymous
Not applicable
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
0 Likes