forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Browser Element, Hotkeys and OLE

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Jan 17, 2014 11:26 pm    Post subject: Browser Element, Hotkeys and OLE Reply with quote

Ok, I'm not sure this was ever solved, but I can't do a CTRL+V into a website's edit box through the Browser Element in VDS. This has held me back from doing quite a few programs.

I did find out that by default the IE component most used by developers who make such plugins as the Browser Element, have much of the HotKey support disabled, and that the plugin must be sent an OLE command to enable the HotKey support. At least, that's what I'm lead to believe. I found this out while working on a little project in PureBasic.

Here's some of the code:

Code:
Enumeration 1
  #OLECMDID_OPEN
  #OLECMDID_NEW
  #OLECMDID_SAVE
  #OLECMDID_SAVEAS
  #OLECMDID_SAVECOPYAS
  #OLECMDID_PRINT
  #OLECMDID_PRINTPREVIEW
  #OLECMDID_PAGESETUP
  #OLECMDID_SPELL
  #OLECMDID_PROPERTIES
  #OLECMDID_CUT
  #OLECMDID_COPY
  #OLECMDID_PASTE
  #OLECMDID_PASTESPECIAL
  #OLECMDID_UNDO
  #OLECMDID_REDO
  #OLECMDID_SELECTALL
  #OLECMDID_CLEARSELECTION
  #OLECMDID_ZOOM
  #OLECMDID_GETZOOMRANGE
  #OLECMDID_UPDATECOMMANDS
  #OLECMDID_REFRESH
  #OLECMDID_STOP
  #OLECMDID_HIDETOOLBARS
  #OLECMDID_SETPROGRESSMAX
  #OLECMDID_SETPROGRESSPOS
  #OLECMDID_SETPROGRESSTEXT
  #OLECMDID_SETTITLE
  #OLECMDID_SETDOWNLOADSTATE
  #OLECMDID_STOPDOWNLOAD
EndEnumeration

Enumeration 0
  #OLECMDEXECOPT_DODEFAULT
  #OLECMDEXECOPT_PROMPTUSER
  #OLECMDEXECOPT_DONTPROMPTUSER
  #OLECMDEXECOPT_SHOWHELP
EndEnumeration


And then further down in the code when you actually try to send a keyboard event to the browser element:

Code:
WebObject\ExecWB(#OLECMDID_SELECTALL,#OLECMDEXECOPT_DONTPROMPTUSER,0,0)


Is this through OLE? Can we still do OLE in VDS6? I can't seem to find any reference to OLE in the help file, I thought we had OLE support in VDS before but maybe it's been removed.

Does anyone have an idea if this is something we can do in VDS so we can better interact with the Browser Element?

Thanks,
~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Sun Jan 26, 2014 12:56 am    Post subject: Reply with quote

A few years ago I solved quite a few problems with interacting with the VDS Browser element. VDSDOM was an early version, you'd be interested in EXECCOMMAND paste.

A later (although more bloated or 'feature rich', may want to trim) version is richedit.dsu (RICHEDIT RICHEDIT1,PASTE)

VDSDOM
http://www.vdsworld.com/forum/viewtopic.php?t=5139

richedit.dsu
http://www.vdsworld.com/forum/viewtopic.php?t=5159

Let me know if this helps you, it took quite a bit of time to accomplish.

[edit]
Forgot about this one.

browse.dsu
http://www.vdsworld.com/forum/viewtopic.php?p=36248
Back to top
View user's profile Send private message AIM Address
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jan 26, 2014 5:46 pm    Post subject: Reply with quote

Thanks Brandon, I'll check into them soon.
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group