Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Speed from a Dialog
#6
Hi ken im tipsys Friend Ben nice to meet you..we are both working on the same QM.exe and ran into a problem that we couldnt figure out and have been readiing a lot, but have no indication of where to read Sad so this is our code for the dialog..what we would like to do is make it so that we cand change the Speed of a certain macro from a Combo list with a drop down menu, so when u click on the differnt speed it will change the speed on a certain macro, TY for your time You guys are great at what u do and i love the Quick Macros Program your the bomb Wink

Ben on behalf of Tipsy




\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

BEGIN DIALOG
0 "" 0x90CA0A44 0x100 0 0 229 125 "Macro"
4 ComboBox 0x54230243 0x0 6 70 96 213 ""
5 ComboBox 0x54230243 0x0 112 48 50 213 ""
7 ComboBox 0x54230243 0x0 112 64 50 213 ""
12 Static 0x54000000 0x0 166 48 48 13 "Speed "
13 Static 0x54000000 0x0 166 64 48 12 "Wait"
8 Button 0x54002009 0x0 6 16 48 12 "Change Function"
9 Button 0x54002009 0x0 6 32 48 12 "Miata"
10 Button 0x54002009 0x0 6 48 48 12 "Handle"
11 ComboBox 0x54230243 0x0 112 28 96 213 ""
14 Edit 0x54030880 0x200 112 12 96 14 "Stop Macro Times"
15 Static 0x5400100E 0x20000 4 88 98 16 ""
16 Button 0x54032000 0x0 4 106 220 18 "RUN"
17 Button 0x54032000 0x0 106 88 48 14 "EnableAway"
18 Button 0x54032000 0x0 160 88 48 14 "DisableAway"
3 Button 0x54020007 0x0 108 0 108 84 "Speeds/Options"
6 Button 0x54020007 0x0 0 0 108 84 " Speeds/Options"
END DIALOG
DIALOG EDITOR: "" 0x2010900 "" ""

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 18
mac "dis"
case 17
mac "Away"
case EN_KILLFOCUS<<16|18
case 16
mac "Internet"
case IDOK DT_Ok hDlg
case IDCANCEL DT_Cancel hDlg
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)