Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)
Posted: 28 Mar 2016, 23:58
Thank You Sir,
That fixed it!
Dave
That fixed it!
Dave
Let's help each other out
https://www.autohotkey.com/boards/
Code: Select all
<tr class=" siret bg">
<td class="tdhead">SIRET </td>
<td>### ### ### #####</td>
</tr>
Pulover wrote:Hi Coddy,
You don't bother at all, questions and requests are still welcome (even though not many come back to say thanks).
To move the mouse relative to the current position you have to check the "Relative" option in the "Coordinates" section of the Mouse window. When that option is checked X: -10, Y: 20 would move the cursor 10 pixels left and 20 pixels down, for example.
You can record relative movements too by holding CapsLock while recording.
This task is easier with IE COM, but the current version is missing the GetElementsByClass method. I'm going to fix it for the next version.
If you have more doubts, post them here.
https://github.com/Pulover/PuloversMacr ... tag/v4.1.3Welshman wrote:Hi there:) I find your tools interesting. please where can i download it?
Code: Select all
; This script was created using Pulover's Macro Creator
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
DetectHiddenWindows On
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
Macro1:
Run, C:\CENTURY\WTERM\WTERM32.EXE TPLUAT.tap
WinActivate
Sleep, 333
Sleep, 3000
Click, 322, 457 Left, Down
Sleep, 109
Click, 322, 457 Left, Up
Sleep, 2328
SetKeyDelay, 0
SendRaw, jle
Sleep, 781
Send, {Enter}
Sleep, 250
SetKeyDelay, 0
SendRaw, pwd@UAT5
Sleep, 266
Send, {Enter}
Sleep, 250
Send, {Enter}
Sleep, 250
index := 0
Loop, 2
{
FileReadLine, Line, C:\Users\30168131\Desktop\QA_MAXDATA_CSV.csv, %index%
cities := Array()
Random, n, 1, 10
Sleep, 10
StringSplit, cities, Line, `,
MsgBox, 0, , % cities[n]
Text := Data[0]
MsgBox, 0, , %Text%
Send, {Enter}
Sleep, 250
Send, {n}
ControlSend, CS_EMULATOR1, %Data[1], ahk_class CS_MAIN_CLASS
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, c
Sleep, 25
Sleep, 250
Send, 24541849%index%
Sleep, 25
index += 1
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, {Enter}
Sleep, 25
Send, {Enter}
Sleep, 25
Send, JOHN
Sleep, 25
Send, {Enter}
Sleep, 25
Send, DOE
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 125 MINNESOTA AVE
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 11010
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 5491871046
Sleep, 25
Send, {Enter}
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, 01012016
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
ControlSend, CS_EMULATOR1, {F6}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, {Down 3}
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Sleep, 250
Send, p
Sleep, 25
Send, u
Sleep, 25
Send, 0
Sleep, 25
Send, {Enter}
Sleep, 25
Send, {Enter}
Sleep, 25
Send, {Enter}
Sleep, 25
Send, M
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 10181982
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, c
Sleep, 25
Sleep, 250
Send, b
Sleep, 25
Send, {Enter}
Sleep, 25
Send, i
Sleep, 25
Send, u
Sleep, 25
Send, 564
Sleep, 25
Send, {Enter}
Sleep, 25
Send, PRV NAME
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 564
Sleep, 25
Send, {Enter}
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 01312016
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 01012016
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 01012016
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 15000
Sleep, 25
Send, {Enter}
Sleep, 25
Send, 12000
Sleep, 25
Send, {Enter}
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, p
Sleep, 25
Send, y
Sleep, 25
Send, {Enter}
Sleep, 25
Sleep, 250
Send, q
Sleep, 25
Sleep, 250
Send, e
Sleep, 25
Sleep, 250
Send, o
Sleep, 25
Send, {Down}
Sleep, 25
ControlSend, CS_EMULATOR1, {F8}, ahk_class CS_MAIN_CLASS
Sleep, 100
Send, {Enter}
Sleep, 25
Send, {Enter}
Sleep, 25
}
Return