07-22-2013, 06:26 PM
In this case probably it is best to move the 20-line code to a function. Like in the guide.
Example:
Create function Func4258:
function w str'bmpFile
spe -1
wait 1000 S bmpFile child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
...
to call the function:
int w1 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
Func4258 w1 "C: \ macro \ images \ test1.bmp"
...
Func4258 w1 "C: \ macro \ images \ test2.bmp"
...
Why in your code \ and | are surrounded with spaces? Like C: \ macro \ images \ test1.bmp
Example:
Create function Func4258:
function w str'bmpFile
spe -1
wait 1000 S bmpFile child ("_ctl.Window" "test" w2) 0 1 | 4 | 16 | 40 0x400;; '_ctl.Window'
lef
...
to call the function:
int w1 = win ("test", "WindowsForms10.Window.8.app.0.33c0d9d")
Func4258 w1 "C: \ macro \ images \ test1.bmp"
...
Func4258 w1 "C: \ macro \ images \ test2.bmp"
...
Why in your code \ and | are surrounded with spaces? Like C: \ macro \ images \ test1.bmp