Home › Forums › TWAIN Classic › how to start scaning image with out any popup dialog
- This topic has 4 replies, 3 voices, and was last updated 17 years, 3 months ago by liuhaigang.
- AuthorPosts
i have write twain application , it pop up dialog base on scanner program
i must press scan button on this pop up to scan image , how can i send comman from twain to press this scan button or how to send direct command from twain to scanner to scan image with out any popupthank you
wis
________
No2 Vaporizernot all devices support what you’re trying, most of the ones that i’ve seen – but not all. to avoid the scanners userinterface set showUi to false (search the twain spec for showUi for more)
yes but when showUi to false how i can/what send command to start scan
________
TEEN VIDEOSDG_CONTROL / DAT_USERINTERFACE / MSG_ENABLEDS
from the spec:
“If the application bypasses the Source’s user interface, this operation causes the Source to become immediately “armed”.”oh,it is so easy
W_USERINTERFACE twUI;
twUI.ShowUI = FALSE;///////////////////lhg 2006.12.13/////////
twUI.ModalUI=FALSE;
twUI.hParent = (TW_HANDLE)m_hMessageWnd;
CallTwainProc(&m_AppId,&m_Source,DG_CONTROL,
DAT_USERINTERFACE,MSG_ENABLEDS,(TW_MEMREF)&twUI)hehe,I slove the problome with two weeks.
- AuthorPosts