Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable Help
#1
Hey im wondering if you can help me get this going....

Ok i got this, it gets the Root and adds the starting to ending numbers to it and outputs both of them....but is it possible to use them to setwintext of another Edit box somewhere else? for example in another dialog

like make it setwintext of something press a button then repeat for ever number?

Plz Help Gint

Dialog2:
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 209 55 "Number Dialog"
;2 Button 0x54030000 0x4 150 12 56 32 "CLOSE"
;3 Edit 0x54032000 0x200 56 20 32 14 ""
;4 Edit 0x54032000 0x200 56 36 32 14 ""
;5 Static 0x54000000 0x0 2 22 52 10 "Starting Number"
;6 Static 0x54000000 0x0 4 40 50 8 "Ending Number"
;7 Button 0x54032000 0x0 90 12 56 32 "GRAB"
;8 Edit 0x54030080 0x200 30 4 58 14 ""
;9 Static 0x54000000 0x0 8 8 18 8 "Root"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""


str controls = "3 4 8"
str e3 e4 e8
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret

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 7 ;;Grab
,int i a b; str s q
,q.getwintext(id(8 hDlg))
,s.getwintext(id(3 hDlg)); a=val(s)
,s.getwintext(id(4 hDlg)); b=val(s)
,for i a b+1
,,out "%s%i" q i


,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
#2
Can anyone help me please? Kinda important!
#3
_pi can u help me with this please...i really need this and no1 seems to know how Sad
#4

Do you want it to transfer the information after you close out the first dialog?
Taking on Quick Macros one day at a time
#5
i guess u can say that...wut i really need is it to take wut ever thay do add the numbers to the root the amount of times then make it do something else...i couldnt figure it out cuz it doesnt really out put a single variable so i didnt know wut to use as like VARIABLE.setwintext ........didnt no wut to put as variable??? any ideas?
#6
its ever good to clean up macros after some testing.
Dialog2 was free Smile

i don't understand the purpose for that.
what are you trying to do ?
pi
#7
The purpose of it is to create multiple accounts on a database my freind has and needs to make accounts all the time and this is the best way to do it...Thanks!
#8

This will output the variables into the output box after you hit the grab button.


Code:
Copy      Help
str controls = "3 4 8"
str e3 e4 e8
if(!ShowDialog("Dialog22" &Dialog22 &controls)) ret
out e3
out e4
out e8
Taking on Quick Macros one day at a time
#9
ok i get that but i need like...it to get like

Number 1
Number 2
Number 3

and use them to setwintext

like

using and array or how u did it before then use that variable to setwintext of something Sad plz help
#10

Maybe try putting global variables inside of your dialog, then in another macro/function/dialog call that str variable.

To make a variable global, put + after
str.


Code:
Copy      Help
str+
Taking on Quick Macros one day at a time
#11
i get that but i dont no wut to use like

VARIABLEHERE.setwintext(....)

Macro ( Macro )
Code:
Copy      Help
case 7 ;;Grab
,int i a b; str s q
,q.getwintext(id(8 hDlg))
,s.getwintext(id(3 hDlg)); a=val(s)
,s.getwintext(id(4 hDlg)); b=val(s)
,for i a b+1
,,out "%s%i" q i

the out "%s%i" q i

how would i use that variable for the VARIABLEHERE part in the setwintext??


Forum Jump:


Users browsing this thread: 1 Guest(s)