What i want to try and do now is to make it so when its click on it loads up a box that asks how many times you would like this macro to run and say they type 200 it would change the top section of my macro that says loop,38 to loop,200 then they press ok and it starts.
The last thing im after is my macro will only work on one of my pcs because the screen size is different is there any sort of way i can make it so they can enter there screen size say 800,600 and the macro will change all the cords to match or maybe a drop down box where they chose there screen size and it loads up one of the ready made macros.
Many thanks for all your help in advance peoples and also does anyone see anyway i can make this macro a bit more neater i think its perfect but it never helps to have a second pair of eyes.
^Lbutton::
loop,38
{
loop,7
{
loop,1 ;moveing to notepad
{
Mousemove, 506,106
}
loop,3 ;left clicking
{
Send {Lbutton}
}
loop,1 ;right clicking
{
Send {Rbutton}
}
loop,2 ; moveing down to copy
{
Send {down}
}
loop,1 ; selecting copy
{
Send {enter}
}
loop,1 ;moveing down on notepad
{
Mousemove, 542,309
}
loop,1 ;left clicking
{
Send {Lbutton}
}
loop,1 ;moveing to excel
{
Mousemove, 643,125
}
loop,3 ;left clicking
{
Send {Lbutton}
}
loop,1 ;right clicking
{
Send {Rbutton}
}
loop,3 ; moveing down to copy
{
Send {down}
}
loop,1 ; selecting copy
{
Send {enter}
}
loop,1 ;moveing to right on excel
{
Mousemove, 690,329
}
loop,1 ;left click
{
Send {Lbutton}
}
loop,1 ;moveing to spare cell on excel
{
Mousemove, 468,227
}
loop,1 ;left click
{
Send {Lbutton}
}
loop,1 ;moveing back to notepad
{
Mousemove, -55,130
}
loop,1 ;left click
{
Send {Lbutton}
}
;END OF COPY AND PASTE
}
loop,1 ;moveing down on notepad
{
Mousemove, 542,309
}
loop,3 ;left clicking
{
Send {Lbutton}
}
loop,1 ;moveing to spare cell on excel
{
Mousemove, 919,272
}
loop,1 ;left click
{
Send {Lbutton}
}
loop,1 ;moveing down on excel
{
Mousemove, 706,314
}
loop,1 ;left clicking
{
Send {Lbutton}
}
loop,1 ;moveing left on excel
{
Mousemove, 439,329
}
loop,8 ;left clicking
{
Send {Lbutton}
}
loop,1 ;clicking on excel cell
{
Mousemove, 87,130
}
loop,1 ;left clicking
{
Send {Lbutton}
}
loop,1 ;going back to notepadd ++
{
Mousemove, -57,240
}
loop,1 ;left clicking
{
Send {Lbutton}
}
}
F1::Pause
return




