Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^r::
- Loop, 50
- {
- sleep 2000
- imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\6.png
- MouseClick , left, X, Y, 1, 0
- sleep 800
- send, ^x
- imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\7.png
- MouseClick , left, X, Y, 1, 0
- send, ^+v
- sleep 800
- imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\8.png
- mousemove x, y, 0
- mousemove,5, 5, 0, R
- click
- sleep 800
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\1.png ;first image it searchs for
- if(ErrorLevel = 2) {
- MsgBox, Could not conduct the search.
- } else if(ErrorLevel = 1) {
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\2.png ;second image it searchs for
- if(ErrorLevel = 2) {
- MsgBox, Could not conduct the search.
- } else if(ErrorLevel = 1) {
- MsgBox, Icon could not be found on the screen.
- } else {
- MouseMove, X, Y, 0
- MouseMove, 10, 15, 50, R
- click
- }
- } else {
- MouseMove, X, Y, 0
- MouseMove, 10, 15, 50, R
- click
- }
- sleep 800
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\done.png ; looks for the done folder
- sleep 100
- MouseClick , left, %X%, %Y%, 1, 0
- sleep 800
- send, {Down}
- sleep 800
- send, ^x
- send {enter}
- sleep 800
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\5.png ;looks for the no button
- MouseClick , left, %X%, %Y%, 1 ;clicks on the no button
- sleep 800
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\5.png ;looks for the no button
- MouseClick , left, %X%, %Y%, 1 ;clicks on the no button
- sleep 800
- ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\4.png ;looks for the OK button
- MouseClick , left, %X%, %Y%, 1 ;clicks on the OK button
- sleep 800
- Run, C:\Users\edwar.EDWARD-PC\Desktop\New folder\done ;change this to the file dest you want the finished files to go to
- sleep 1800
- click
- send ^v
- sleep 800
- send ^w
- sleep 3000
- }
- RETURN
- ^e::
- Reload
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement