Posts: 111
Threads: 31
Joined: Apr 2007
take the imput imputed into a dialog and output it into a macro and have the macro do that
like for example i want make a dialog box and have a text box where u can type in and w/e number some1 types in there that is the amount of times a different macro is repeated
Posts: 331
Threads: 60
Joined: May 2006
Dialog2:
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Edit 0x54032080 0x200 60 40 96 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
str controls = "3";; ;
str e3;; ;
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret;; ;
int math1=val(e3);; ;
rep math1;; ;
,out "count\\";; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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 IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
Posts: 111
Threads: 31
Joined: Apr 2007
hey im kind of confused can u explain a little where at in there is where it sends it out?
Posts: 331
Threads: 60
Joined: May 2006
Posts: 111
Threads: 31
Joined: Apr 2007
in that dialog where do i type wut macro i want the amount typed in the box to send to...i cant figure out where in the dialog to specify where i want it to go
Posts: 331
Threads: 60
Joined: May 2006
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
str controls = "3";; ;
str e3;; ;
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret;; ;
int math1=val(e3);; ;
rep math1;; ;
,out "count\\";; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
would go in the macro that you want the val to be sent to this calls the dialog then gets the # you put in the edit box, the title of your post says rep so i gave you the code for that keep in mind this is only an example.
Posts: 111
Threads: 31
Joined: Apr 2007
yeah im kind of new to dialogs and i have no idea where to enter the macro that i want the number that is typed in to go to and be the rep?
Posts: 111
Threads: 31
Joined: Apr 2007
rep ;;i need the number of times put in the dialog box to be here
,lef 412 231
,but+id(5011 "Yahoo Messenger")
,lef 21 32
,mov 0 0 "Yahoo Messenger"
,key "Open-Closed"
,out "done"
,
i got that and next to rep i want it to enter the amount specified in the dialog box
Posts: 331
Threads: 60
Joined: May 2006
either you need to explain what it is your trying to do a little better or wait for someone that understands your question.
Posts: 111
Threads: 31
Joined: Apr 2007
does my macro help u understand?
Posts: 331
Threads: 60
Joined: May 2006
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Edit 0x54032080 0x200 60 40 96 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
str controls = "3";; ;
str e3;; ;
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret;; ;
int math1=val(e3);; ;
rep math1
,lef 412 231
,but+ id(5011 "Yahoo Messenger")
,lef 21 32
,mov 0 0 "Yahoo Messenger"
,key "Open-Closed"
,out "done"
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 IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
Posts: 111
Threads: 31
Joined: Apr 2007
ok thanks so much that worked
Posts: 331
Threads: 60
Joined: May 2006
you're welcome, next time try and give code example in your first post and you will get help alot faster and make it easier on everyone.
Posts: 111
Threads: 31
Joined: Apr 2007
ok john will do but i actually hve one more question for ya is it possible to make that dialoged encytped and run it in another mac like this
do u no wut i mean so then i can encrypt the dialog but still run the mac using the dialog
Macro1
str controls = "3";; ;
str e3;; ;
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret;; ;
int math1=val(e3);; ;
rep math1
,lef 412 231
,but+ id(5011 "Yahoo Messenger")
,lef 21 32
,mov 0 0 "Yahoo Messenger"
,key "Open-Closed"
,out "done"
Dialog2
;/DIALOG_EDITOR
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 141 58 "Amount of K's to Chip"
;1 Button 0x54030001 0x4 16 28 48 14 "OK"
;2 Button 0x54030000 0x4 78 28 48 14 "Cancel"
;3 Edit 0x54032080 0x200 22 10 96 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000A "" ""
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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 IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
Posts: 331
Threads: 60
Joined: May 2006
Macro1
str s=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 141 58 "Amount of K's to Chip"
;1 Button 0x54030001 0x4 16 28 48 14 "OK"
;2 Button 0x54030000 0x4 78 28 48 14 "Cancel"
;3 Edit 0x54032080 0x200 22 10 96 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000A "" ""
str controls = "3"
str e3
if(!ShowDialog(s &Dialog2 &controls 0 2 0 0)) ret
int math1=val(e3)
rep math1
,lef 412 231
,but+ id(5011 "Yahoo Messenger")
,lef 21 32
,mov 0 0 "Yahoo Messenger"
,key "Open-Closed"
,out "done"
Posts: 473
Threads: 33
Joined: Aug 2007
What is "Amount of K's to Chip"? Sounds like Party Poker. :?
Taking on Quick Macros one day at a time
Posts: 1,006
Threads: 330
Joined: Mar 2007
QMR so busted
"if ur thinking its for Party P then your wrong because it is not."
Amount of K's to Chip"?
Is it just me or is there a direct correlation between the amount of mispellings and lame abbreviations in a post and the likelihood that the person is a PartyP player. I am not talking about genuine grammar mistakes (because English is not someone's native language) but rather lame abbreviations that practically show contempt for the people of whom the poster is demanding script help from.
wut = what
u = you
i = I
r = are
shud = should
no commas, way too many lol's (to ingratiate oneself among those that you are pumping for information) etc.
Sorry to add my own snobbiness to the drama but I can't stand rudeness or deceiving someone in order to get them to help you when the help is given out of a sense of community spirit....
S
Posts: 49
Threads: 12
Joined: Feb 2007
stupomer Wrote:QMR so busted
"if ur thinking its for Party P then your wrong because it is not."
Amount of K's to Chip"?
Is it just me or is there a direct correlation between the amount of mispellings and lame abbreviations in a post and the likelihood that the person is a PartyP player. I am not talking about genuine grammar mistakes (because English is not someone's native language) but rather lame abbreviations that practically show contempt for the people of whom the poster is demanding script help from.
wut = what
u = you
i = I
r = are
shud = should
no commas, way too many lol's (to ingratiate oneself among those that you are pumping for information) etc.
Sorry to add my own snobbiness to the drama but I can't stand rudeness or deceiving someone in order to get them to help you when the help is given out of a sense of community spirit....
S
good positive and very helpful reply there stupomer! think next time you could either offer some help ? just let it go bro!
Posts: 1,006
Threads: 330
Joined: Mar 2007
It's the deceit and entitlement that ticked me off. I have read your posts, and I know where you are coming from. Even though you use QM for games, which is controversial here but not really something I care about, you post to the forum respectfully and constructively. That's different than what prompted me to post.....
If you see his last post, he says he is working harder on his grammar so maybe my post was helpful.
S
|