I need help! I need a script for ListaFirme & SnagIt recursively accessed

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Mircica
Posts: 5
Joined: 30 Nov 2017, 03:03

I need help! I need a script for ListaFirme & SnagIt recursively accessed

30 Nov 2017, 09:19

I have the following problem:

I have a program "Lista firme" that has a button which is always on the move, page by page different button position!

I have tried all macros keybord and mouse variants and nothing, and I mean nothing works. Why?

Because the buttons in "ListaFirme" are moving around first column been the name of the company which might be 2 letters to 300 letters see picture 1 and 2 attached

That's why I need really badly a script that do this cycle:

1. push the button on "listafirme" to move forward and load next page

2. wait at least 10 seconds (it's a very large database - 600k companies!)

3. push the button "Capture" on SnagIT (already created a modified profile that automatically print screen and save image automatically numerated)

Do this for a specific number of times.

Information available:

Code: Select all

Forward button - Lista Firme

>>>> Window <<<<
Title:    Borg Design - Lista Firme 13.1.0 Profesional [Neactualizat]
Class:    ThunderRT6MDIForm
Position:    4, 0
Size:    876, 1052
Style:    0x16CF0000
ExStyle:    0x00040100
Handle:    0x000C0672

>>>> Control <<<<
Class:    ThunderRT6CommandButton
Instance:    1
ClassnameNN:    ThunderRT6CommandButton1
Name:    
Advanced (Class):    [CLASS:ThunderRT6CommandButton; INSTANCE:1]
ID:    3
Text:    
Position:    316, 977
Size:    23, 18
ControlClick Coords:    14, 8
Style:    0x5400000B
ExStyle:    0x00000000
Handle:    0x000C0506

>>>> Mouse <<<<
Position:    338, 1008
Cursor ID:    0
Color:    0x008000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
21
45
901
*
Reset
Aplica Filtre
Baza de date
Contine textul
Firma
Progress Bar
RON
ёlЛ
RON


>>>> Hidden Text <<<<
20171128
Frame1
Cifra Afaceri
20171128
Renunta
Atasamente
Trimite Email
[email protected]
Start campanie
Debifeaza inregistrarile trimise
fraSetariTab
SSL/TLS
25
5
0
Test
fraStatus
fraSetariTab
Reset
Aquaterra-8-PC
GreenMail
Nr.
20171128
Localitati
Judete
Logaritmica
Lineara
Alfabetic
Clasament
https://membri.listafirme.ro/cd-login.asp
8П

https://membri.listafirme.ro/cd-login.asp




AND







>>>> Window <<<<
Title:    Snagit
Class:    SnagIt5UI
Position:    880, 0
Size:    650, 550
Style:    0x144F0000
ExStyle:    0x00000100
Handle:    0x00050828

>>>> Control <<<<
Class:    Button
Instance:    5
ClassnameNN:    Button5
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:5]
ID:    3815
Text:    Capture
Position:    567, 426
Size:    66, 71
ControlClick Coords:    36, 42
Style:    0x5001000B
ExStyle:    0x00000004
Handle:    0x00030780

>>>> Mouse <<<<
Position:    1487, 491
Cursor ID:    0
Color:    0xE55037

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Menu Bar
Press  Print Screen  to capture to SNAG-0058.png.
Input
Output
Effects
Capture
Capture
Snagit Editor
Organize Images
Convert Images
Turn on OneClick
Setup Snagit Printer
Organize Profiles
Manage Accessories


>>>> Hidden Text <<<<
Image Capture
Input
Text Box
Output
Text Box
Filters
Text Box
Options
Text Box
 Output
 Options
 Input
 Filters
Profiles
Profile Settings
Hotkey: (Default) Print Screen
Attachments
ex2.jpg.e2e886397605354de8db613283431876.jpg
button change position for each window
ex2.jpg.e2e886397605354de8db613283431876.jpg (5.96 KiB) Viewed 1580 times
ex1.jpg.db292b1e380dd7ef2ece12b76907c96a.jpg
button change position for each window
ex1.jpg.db292b1e380dd7ef2ece12b76907c96a.jpg (5.33 KiB) Viewed 1580 times
Mircica
Posts: 5
Joined: 30 Nov 2017, 03:03

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

05 Dec 2017, 11:38

Code: Select all

<wx>(500,0)<#>
<wx>(3230,0)<#>
<mm>(1859,469)<#>
<mlbd><#>
<wx>(140,0)<#>
<mlbu><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:23:32 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:23:32 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:23:32 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:23:32 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:24:54 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:24:54 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:24:54 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:24:54 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<wx>(530,0)<#>
<mm>(1564,152)<#>
<mlbd><#>
<wx>(141,0)<#>
<mlbu><#>
<wx>(1248,0)<#>
<mm>(1598,98)<#>
<mlbd><#>
<wx>(124,0)<#>
<mlbu><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(1732,0)<#>
<mm>(427,998)<#>
<mlbd><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<wx>(94,0)<#>
<mlbu><#>
<wx>(2153,0)<#>
<mm>(1866,454)<#>
<mlbd><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(78,0)<#>
<mlbu><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[SNAG-000031&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[SNAG-000031&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[SNAG-000031&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[SNAG-000031&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:25:02 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:25:02 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:25:02 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:25:02 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<wx>(249,0)<#>
<mm>(1555,143)<#>
<mlbd><#>
<wx>(125,0)<#>
<mlbu><#>
<wx>(1030,0)<#>
<mm>(1599,94)<#>
<mlbd><#>
<wx>(171,0)<#>
<mm>(1600,93)<#>
<mlbu><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(1420,0)<#>
<mm>(405,999)<#>
<mlbd><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<wx>(109,0)<#>
<mlbu><#>
<wx>(1934,0)<#>
<mm>(1881,464)<#>
<mlbd><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(78,0)<#>
<mlbu><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[SNAG-000032&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[SNAG-000032&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[SNAG-000032&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[SNAG-000032&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:25:09 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:25:09 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:25:09 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:25:09 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<wx>(78,0)<#>
<mm>(1555,147)<#>
<mlbd><#>
<wx>(109,0)<#>
<mlbu><#>
<wx>(1326,0)<#>
<mm>(1601,94)<#>
<mlbd><#>
<wx>(125,0)<#>
<mlbu><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(1467,0)<#>
<mm>(410,1004)<#>
<mlbd><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<wx>(78,0)<#>
<mlbu><#>
<wx>(1280,0)<#>
<mm>(1860,472)<#>
<mlbd><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(94,0)<#>
<mlbu><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[SNAG-000033&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[SNAG-000033&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[SNAG-000033&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[SNAG-000033&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:25:16 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:25:16 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:25:16 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:25:16 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<wx>(718,0)<#>
<mm>(1554,155)<#>
<mlbd><#>
<wx>(124,0)<#>
<mlbu><#>
<wx>(640,0)<#>
<mm>(1603,95)<#>
<mlbd><#>
<wx>(94,0)<#>
<mlbu><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(1295,0)<#>
<mm>(392,1000)<#>
<mlbd><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<wx>(94,0)<#>
<mlbu><#>
<wx>(2215,0)<#>
<mm>(1865,460)<#>
<mlbd><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(109,0)<#>
<mlbu><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[SNAG-000034&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[SNAG-000034&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[SNAG-000034&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[SNAG-000034&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<if_win>("[Snagit Editor - &[Dec 5, 2017 6:25:23 PM&]|SnagIt9Editor|#632|#74]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit Editor - &[Dec 5, 2017 6:25:23 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<actwin>("[Snagit Editor - &[Dec 5, 2017 6:25:23 PM&]|SnagIt9Editor|#632|#74]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit Editor - &[Dec 5, 2017 6:25:23 PM&]|SnagIt9Editor|#632|#74]",5,0)<#>
<endif><#>
<wx>(296,0)<#>
<mm>(1561,149)<#>
<mlbd><#>
<wx>(94,0)<#>
<mlbu><#>
<wx>(2995,0)<#>
<mm>(1600,87)<#>
<mlbd><#>
<wx>(125,0)<#>
<mlbu><#>
<if_win>("[Snagit|SnagIt5UI|#1261|#8]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<actwin>("[Snagit|SnagIt5UI|#1261|#8]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Snagit|SnagIt5UI|#1261|#8]",5,0)<#>
<endif><#>
<wx>(2761,0)<#>
<mm>(421,1003)<#>
<mlbd><#>
<if_win>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]","NOACT",0)<#>
<waitfor>("WIN","OPEN","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<actwin>("[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",0,3,"no")<#>
<waitfor>("WIN","ACT","[Borg Design - Lista Firme 13.1.0 Profesional &[Neactualizat&]|ThunderRT6MDIForm|#4|#2]",5,0)<#>
<endif><#>
<wx>(109,0)<#>
<mlbu><#>
<wx>(1592,0)<#>
<mm>(1748,1020)<#>
<mlbu><#>
<wx>(62,0)<#>
<shift>
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

05 Dec 2017, 11:53

I have a program "Lista firme" that has a button which is always on the move, page by page different button position!
Let's guess the vertical position won't change. It's always at the top of that page, right?? If yes, have you scanned the bar from left to right for the button/image already?? Where is your script?
Feel free to create a short "documentary" video using :arrow: [Screencastify] (OK, you'll need the Chrome browser for this).
Mircica
Posts: 5
Joined: 30 Nov 2017, 03:03

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

07 Dec 2017, 18:55

I will make a short video!
Attachments
2.jpg
2.jpg (260.46 KiB) Viewed 1247 times
1.jpg
1.jpg (257.05 KiB) Viewed 1247 times
0.jpg
0.jpg (261.4 KiB) Viewed 1247 times
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

08 Dec 2017, 14:06

1. push the button on "listafirme" to move forward and load next page
  • a.) cruise around that GUI using TABs. Once your target control gets the focus > click, or trigger the control using AHKs Control-command set (prefered!)
2. wait at least 10 seconds (it's a very large database - 600k companies!)
  • b.) check your Gui for any indicator of the loading status eg with monitoring its statusbar ("loading...", "Done", "...") or window title, or ... ?

3. push the button "Capture" on SnagIT (already created a modified profile that automatically print screen and save image automatically numerated)
  • c.) it's not necessary to use Snagit for that, as you can create screenshots (even of a specific area of the screen) from within your script using AHKs :arrow: Gdip.ahk library.
Hope that helps :)
Mircica
Posts: 5
Joined: 30 Nov 2017, 03:03

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

10 Dec 2017, 14:10

I cannot cruise with TABs. TABs only work in the left side of the main window!
But I still capture the image using another snap
Attachments
AHK Info.jpg
AHK Info.jpg (40.39 KiB) Viewed 1511 times
Mircica
Posts: 5
Joined: 30 Nov 2017, 03:03

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

11 Dec 2017, 06:57

I have a program that drive me nuts. There is no export of database, nothing!

All I can found is that I can print copy screen and recognize through OCR from my scanner!

There is no other way. I need to arrange this e-mails and send tests to check if are still valid.

I need a script that push the IV-th button from bottom, numbering from left to right (as you see on computer standing in front of him).

Unfortunately for me, the first button aligns after the name of company so all the buttons are moving more or less to the right.

There is no script program on the market that could do that! Tried almost all trials available! They are relying on position! And in my case position is on the move, continuously.

It must be a way to push that button print screen and so on till the end.

I have to transform this database into a searchable one but I need data!
User avatar
noname
Posts: 515
Joined: 19 Nov 2013, 09:15

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

11 Dec 2017, 07:15

I would go for the imagesearch + click way , there has been some interesting code recently by vamzicool :

https://autohotkey.com/boards/viewtopic.php?t=39212

You only need a reliable unique image of the button you want to click.

Code: Select all

imageClick(imagePath,offsetX=10,offsetY=10)
{
    Sleep, 100
    ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, %imagePath%
    if(ErrorLevel = 0)
        MouseClick, left, FoundX + offsetX, FoundY + offsetY
    return ErrorLevel
}
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

11 Dec 2017, 08:24

Just out of curiosity I've had a try with vamzicool's script snippet (recommended by noname above) - and it worked perfectly :thumbsup:

Code: Select all

#SingleInstance, Force

Gui, Add, Picture, x10 y10 w453 h68, % A_ScriptDir . "\01.png"       ; save 01.png and 04.png to the scripts directory
Gui, Show, w473 h88, Test
Return

F8::MsgBox % ErrorLevel := imageClick(A_ScriptDir "\04.png", 16, 13, 500) ; press F8 to start. Bc the mouse should move to/click at the center of the detected image we'll add an offset of half the images width+hight.

imageClick(imagePath, offsetX=10, offsetY=10, delay=100) {           ; use an offset of 10x10px if not requested differently. Added a 'delay'-parameter for flexibility
    Sleep,% delay                                                    ; power napping
    ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, %imagePath%   ; get some work done
    If(ErrorLevel = 0)                                               ; 0 = found | 1 = not found
		MouseMove,% FoundX + offsetX,% FoundY + offsetY              ; use MouseClick instead
    Return ErrorLevel                                                ; returns the search status
    }
Attachments
04.png
exit button
04.png (623 Bytes) Viewed 1486 times
01.png
menubar
01.png (11.94 KiB) Viewed 1486 times
elsevero
Posts: 1
Joined: 10 Mar 2020, 18:58

Re: I need help! I need a script for ListaFirme & SnagIt recursively accessed

10 Mar 2020, 19:04

Have you extracted the DB from the Desktop application or only recorder the screen (video / image) ?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder, sanmaodo and 140 guests