At the moment I am trying to get a script working, which continuously numbers one determined column in a table.
This script should stop at any cell in this column containing the value 99 or at the last cell in this column.
Unfortunately I don't know, how to tell the script, that it reached the last cell, if there is no cell containing the value 99.
I was thinking about writing down any copied numbers in an .ini-file and check them for duplicates.
When the first duplicate is detected, the script should be stopped.
Code: Select all
#Space::
#IfWinActive ahk_class Infor ERP COM Produktion
{
IniDelete, % A_ScriptDir "\count.ini", Reihenfolge
Loop
{
clipboard:=""
Send ^c
ClipWait
IniWrite, % Clipboard, % A_ScriptDir "\count.ini", Reihenfolge
IniRead, Zahl, % A_ScriptDir "\count.ini", Reihenfolge
If (clipboard < 99)
{
clipboard:=""
Send {UP}
Send ^c
ClipWait
x := Clipboard
x++
Send {DOWN}{LEFT}{Enter}{LEFT}
Send %x%
Send {DOWN}{LEFT}{Enter}{LEFT}
clipboard:=""
}
Else
{
Sleep 1000
ExitApp
}
}
}
https://www.veed.io/view/0e1a3c79-b1af-497d-9595-5a834c6d4983/showcase?sharingWidget=true
https://www.veed.io/view/c105d08f-1676-490b-954e-388f0d499bb9/showcase?sharingWidget=true
Best regards
Fisatec