Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the menu to open Google
#1
I want to use the menu to open Google from the browser, but the runtime prompts error

Just contact programming, I hope someone can help me, any opinions and suggestions are welcome, thank you

Macro Macro1
Code:
Copy      Help
str md=
;BEGIN MENU
;>&File
;,&open google :502 0x0 0x0 Cg
;,-
;,E&xit :2 0x0 0x0 Aq
;,<
;END MENU

str dd=
;BEGIN DIALOG
;0 "" 0x90CB0AC8 0x0 0 0 412 222 "Dialog"
;4 ActiveX 0x54030000 0x0 12 16 392 172 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;1 Button 0x54030001 0x4 292 196 48 14 "OK"
;2 Button 0x54030000 0x4 356 196 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

str controls = "4"
str ax4SHD="www.quickmacros.com"

if(!ShowDialog(dd &sub.DlgProc &controls 0 0 0 0 0 0 0 0 md)) ret

#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,SHDocVw.WebBrowser-- we4
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 502 ;;&open google
,we4.Navigate("http://www.google.com")
ret 1


Attached Files Image(s)
   


Messages In This Thread
the menu to open Google - by win - 04-19-2018, 01:01 AM
RE: the menu to open Google - by Gintaras - 04-19-2018, 05:00 AM
RE: the menu to open Google - by win - 04-19-2018, 05:58 AM
RE: the menu to open Google - by Gintaras - 04-19-2018, 06:14 AM
RE: the menu to open Google - by win - 04-19-2018, 11:04 AM
RE: the menu to open Google - by Gintaras - 04-19-2018, 11:21 AM
RE: the menu to open Google - by win - 04-19-2018, 01:46 PM
RE: the menu to open Google - by win - 04-19-2018, 03:14 PM
RE: the menu to open Google - by Gintaras - 04-19-2018, 03:22 PM
RE: the menu to open Google - by win - 04-19-2018, 03:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)