help with script
#1
Posted 07 August 2012 - 06:48 PM
CoordMode, Mouse, screen
MouseClick, left, 1222, 338
sleep, 3000
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 1500
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 1500
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 1500
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 1500
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 2000
MouseClick, left, 936, 881
sleep, 2000
MouseClick, left, 1160, 992
sleep, 2000
MouseClick, right
sleep, 1000
MouseClick, left, 1080,353
sleep, 10000
MouseClick, left, 1130, 903
sleep, 1000
MouseClick, left, 1130, 903
sleep, 1000
MouseClick, left, 820, 316
sleep, 1000
Send, % RandomChar()
RandomChar()
{
mychars := "abcdeghijklmnopqrstuvwxyz"
Random, mychar, 5, StrLen(mychars)
Return Substr(mychars, mychar, 10)
}
Sleep, 500
Send, {SHIFTDOWN}2{SHIFTUP}
Sleep, 500
Send, tyrig.klo ;TYPE EMAIL
Sleep 2000
MouseClick, left, 887, 442
Sleep, 1000
Send, password
Sleep, 1000
MouseClick, left, 1105, 571
Sleep, 5000
MouseClick, left, 955,583
sleep, 8000
MouseClick, left, 1028, 919
sleep, 5000
MouseClickDrag, left, 1169, 866, 1191, 222, 4
sleep, 3000
MouseClick, left, 979, 783
sleep, 3000
MouseClick, left, 925, 849
sleep, 3000
MouseClick, left, 947, 772
sleep, 3000
its for a game on iphone btw and im using my computer as a remote controller. and the script runs my iphone through that.
#2
Posted 07 August 2012 - 07:58 PM
CoordMode, Mouse, screen
MouseClick, left, 1222, 338
sleep, 3000
Loop, 5 ;Repeat everything within the brackets 5 times to aviod redundance.
{
MouseClickDrag, left, 1086, 893, 1110, 251, 4
sleep, 1500
}
MouseClick, left, 936, 881
sleep, 2000
MouseClick, left, 1160, 992
sleep, 2000
MouseClick, right
sleep, 1000
MouseClick, left, 1080,353
sleep, 10000
MouseClick, left, 1130, 903
sleep, 1000
MouseClick, left, 1130, 903
sleep, 1000
MouseClick, left, 820, 316
sleep, 1000
Send, % RandomChar() ;Note that if you use this, it will not always be 10 characters long.
Sleep, 500
Send, {SHIFTDOWN}2{SHIFTUP}
Sleep, 500
Send, tyrig.klo ;TYPE EMAIL
Sleep 2000
MouseClick, left, 887, 442
Sleep, 1000
Send, password
Sleep, 1000
MouseClick, left, 1105, 571
Sleep, 5000
MouseClick, left, 955,583
sleep, 8000
MouseClick, left, 1028, 919
sleep, 5000
MouseClickDrag, left, 1169, 866, 1191, 222, 4
sleep, 3000
MouseClick, left, 979, 783
sleep, 3000
MouseClick, left, 925, 849
sleep, 3000
MouseClick, left, 947, 772
sleep, 3000
return
RandomChar() ;I wouldn't suggest keeping a function in the auto-execute section.
{
mychars := "abcdeghijklmnopqrstuvwxyz"
Random, mychar, 5, StrLen(mychars)
Return Substr(mychars, mychar, 10)
}
Esc::ExitApp
#3
Posted 07 August 2012 - 08:16 PM
#4
Posted 08 August 2012 - 04:26 AM
#5
Posted 08 August 2012 - 04:42 AM
#6
Posted 08 August 2012 - 05:17 AM
This should work to your liking, it replaces the prt sc functionality while running, the only difference is it will now be saved to a file in your scripts directory in a folder named PrintScreens...
!PrintScreen::
PrintScreen::
If (A_ThisHotkey = "!PrintScreen")
WinGetPos, X, Y, Width, Height, A
Else
X := 0, Y := 0, Width := A_ScreenWidth, Height := A_ScreenHeight
While (FileExist("PrintScreens\" . A_Index . ".png"))
FileNum := A_Index
++FileNum
pToken := Gdip_Startup()
Gdip_SaveBitmapToFile(pBitmap := Gdip_BitmapFromScreen(X . "|" . Y . "|" . Width . "|" . Height), "PrintScreens\" . FileNum . ".png")
Gdip_DisposeImage(pBitmap)
Gdip_Shutdown(pToken)
return
#7
Posted 08 August 2012 - 05:32 AM
@girlgamer well i know how to do it manually but writing a script is confusing especially if you dont know the commands for it. which is where i was getting at. i browse through the help and tutorials but i get so lost into all those lingo. i spent about 4 hrs last night just trying to write the original post >.<;;
@dylan904 i appreciate the time you take to help me write those scripts. <3 if theres anything you need. dont hesitate to ask
#8
Posted 08 August 2012 - 05:45 AM
#9
Posted 08 August 2012 - 05:49 AM
#10
Posted 08 August 2012 - 05:55 AM
MsgBox % A_AhkPath . "\Lib\"
#11
Posted 08 August 2012 - 06:04 AM
#12
Posted 08 August 2012 - 07:57 AM
#13
Posted 08 August 2012 - 09:15 AM
#14
Posted 08 August 2012 - 11:21 AM
MouseClickDrag, left, x, y, x, y IS such a pain!! only way to scroll...but so hard to be precise. hehe thanks a bunch for all the info im almost done with my script! when im done ill post it on here for you guys to see. dont be to rough on it though, hehe just a bunch of clicks and whatnot. anyways im happy that it was working. again thank you for replies
#15
Posted 08 August 2012 - 04:21 PM
Send {LButton Down}{WheelDown}{LButton Up}, yes?To send more than 1 scroll, put a space and the number of scrolls after WheelDown or WheelUp.




