07-22-2013, 06:04 PM
problem: I have 20 actions / variables declared:
int w1 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ test1.bmp" child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
int w2 ...... etc.
int w3 ...... etc.
Of these 20 actions, each cycle will only change 5 (names of files containing data and instructions of use)
the macro completed the first cycle, meets the following:
if (dir ("C: \ macro \ Username \ username2.txt"))
w2 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ Rob1.bmp" child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
else
mes-"All done!" "Login completed," "isa"
w3 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ Username.bmp" child ("_ctl.Window" "test" w3) 0 1 | 4 | 16 | 80 0x400;; '_ctl.Window'
1
lef
1
opt slowkeys 1; spe 100
BlockInput 1
key (_s.getfile ("C: \ macro \ Username \ username2.txt"))
BlockInput 0
opt slowkeys 0
1
w4 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ password1.bmp" child ("_ctl.Window" "test" w4) 0 1 | 70 0x400;; '_ctl.Window'
0.5
lef
0.5
opt slowkeys 1; spe 100
BlockInput 1
key (_s.getfile ("C: \ macro \ Password \ username2.txt"))
BlockInput 0
opt slowkeys 0
0.5
After these instructions, reprocesses the actions declared by a w5 w19 until it encounters the block with username3.txt instead of username2.txt, and resumes the cycle until find the file specified
I think conceptually simple, I know there is a solution but I can not find it
int w1 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ test1.bmp" child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
int w2 ...... etc.
int w3 ...... etc.
Of these 20 actions, each cycle will only change 5 (names of files containing data and instructions of use)
the macro completed the first cycle, meets the following:
if (dir ("C: \ macro \ Username \ username2.txt"))
w2 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ Rob1.bmp" child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
else
mes-"All done!" "Login completed," "isa"
w3 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ Username.bmp" child ("_ctl.Window" "test" w3) 0 1 | 4 | 16 | 80 0x400;; '_ctl.Window'
1
lef
1
opt slowkeys 1; spe 100
BlockInput 1
key (_s.getfile ("C: \ macro \ Username \ username2.txt"))
BlockInput 0
opt slowkeys 0
1
w4 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
1000 S wait "C: \ macro \ images \ password1.bmp" child ("_ctl.Window" "test" w4) 0 1 | 70 0x400;; '_ctl.Window'
0.5
lef
0.5
opt slowkeys 1; spe 100
BlockInput 1
key (_s.getfile ("C: \ macro \ Password \ username2.txt"))
BlockInput 0
opt slowkeys 0
0.5
After these instructions, reprocesses the actions declared by a w5 w19 until it encounters the block with username3.txt instead of username2.txt, and resumes the cycle until find the file specified
I think conceptually simple, I know there is a solution but I can not find it