Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog: open web page using combo box
#1
hey guys i made it so my dialod can show the drop down list and has websites in them...but i want it to actualy open the website wen it is clicked from the dropdown list plz help me thank you
#2
Could you show your dialog? It would be much easier to help.
#3
ok here is the dialog

Code:
Copy      Help
str controls = "3"
str cb3
cb3= "www.google.com[]www.quickmacros.com"
if(!ShowDialog("Macro" 0 &controls)) ret

and here is the dialog editor text

Code:
Copy      Help
\Dialog_Editor

BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 135 "Table Finder"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 ComboBox 0x54230243 0x0 10 36 96 213 ""
END DIALOG
DIALOG EDITOR: "" 0x202000A "" ""

CAN YOU PLEASE HELP ME MAKE IT SO WEN THE PERSON CLICKS ON THE DROP DOWN LIST AND CHOOSES THE WEBSITE THEY WANT AND CLICKS OK IT BRINGS THEM TO THAT WEBSITE TY
#4
It would probably be much easier for you to do this in a Smart Dialog, but i will try to help. Why not just use buttons, and simply just click on the buttons to take you to the website?
#5
if it would be easier to do in smart dialog i can do that...do u have messenger we can talk on...might be easiar
#6
No I don't. I'll just remake it.
#7
ok thank you
#8
I hope this is close to what you wanted.

This is the Dialog*
Website Finder:
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 139 111 "Form"
;1 Button 0x54030001 0x4 18 72 48 14 "OK"
;2 Button 0x54030000 0x4 72 72 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 22 42 96 213 ""
;4 Static 0x54000000 0x0 50 26 34 8 "Websites"
;5 Button 0x54020007 0x0 18 32 104 28 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2010808 "" ""


ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)

sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case CBN_SELENDOK<<16|3
,_i=CB_SelectedItem(lParam)
,CB_GetItemText(lParam _i _s)
,web _s

,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1


This will trigger it*
Trigger:
Code:
Copy      Help
str controls = "3"
str cb3
cb3= "www.google.com[]www.quickmacros.com"
if(!ShowDialog("Website_Finder" &Website_Finder &controls)) ret
#9
i cant get anything to work...i pasted it in qm and i ever tryed deleting everything and starting all over with making new macros...wont work says "Error in Macro2: unknown identifier."
#10
Make sure your Dialog is named "Website_Finder".
#11
it is names that...nothing will work...wont even open the dialog editor
#12
and is what u did gonna make it so wen someone clicks http://www.google.com then clicks ok it brings them to a new webpage with "www.google.com" ....cuz that is what im looking for the dialog to do...thanks
#13
What this does is just when you click on the website from the list it instantly takes you to that site. You don't need to click OK, OK will simply just close the dialog.
#14
ok i got it to work...thank you very much
#15
Your welcome.


Forum Jump:


Users browsing this thread: 1 Guest(s)