Author Topic: Past loop variable.  (Read 2498 times)

DeLaguna

  • Guest
Past loop variable.
« on: September 27, 2017, 05:09:41 AM »
I am trying to create a loop from -1999 to 9999 

During each loop I am trying to paste current loop number into notepad


I will have some keypresses before and after the paste in the loop.

I was able to create the loop but I was unable paste the loop counter variable/token, Unfortunately, it is at my computer at home so I can't post the code I made so far. but Any help would be appreciated.

Thank you in advance, I love this program!




DeLaguna

  • Guest
Re: Past loop variable.
« Reply #1 on: September 27, 2017, 09:39:31 AM »
This is my Solution that seems to work  (so anyone with the same sort of question has something to start with.)

Code: [Select]
Set Boolean [negpwd] to True (save value to profile)
Start Loop : Repeat From 0 to 1999
    Press NumPad Subtract key and hold for 0.1 seconds and release
    Set Windows clipboard to '{INT:pwda}'
    Begin Integer Compare : [pwda] Is Less Than 1000
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Begin Integer Compare : [pwda] Is Less Than 100
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Begin Integer Compare : [pwda] Is Less Than 10
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Press Left Ctrl+V keys and hold for 0.1 seconds and release
    Press Left Shift+Tab keys and hold for 0.1 seconds and release
    Set integer [pwda] to [pwda] plus 1 (save value to profile)
    copied value pasted checked, need screenshot next
    Press Left Alt+Print Screen keys and hold for 0.1 seconds and release
    Pause 1 second
    Press Tab key and hold for 0.1 seconds and release
End Loop
Execute command, 'Reset pass attempt' (and wait until it completes)
Execute command, 'BruteF' (and wait until it completes)
Inline VB Function:


And then I use


Code: [Select]
Set Boolean [negpwd] to False (save value to profile)
Start Loop : Repeat From 0 to 9999
    Set Windows clipboard to '{INT:pwda}'
    Begin Integer Compare : [pwda] Is Less Than 1000
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Begin Integer Compare : [pwda] Is Less Than 100
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Begin Integer Compare : [pwda] Is Less Than 10
        Press NumPad 0 key and hold for 0.1 seconds and release
    End Condition
    Press Left Ctrl+V keys and hold for 0.1 seconds and release
    Press Left Shift+Tab keys and hold for 0.1 seconds and release
    Set integer [pwda] to [pwda] plus 1
    copied value pasted checked, need screenshot next
    Press Left Alt+Print Screen keys and hold for 0.1 seconds and release
    Pause 1 second
    Press Tab key and hold for 0.1 seconds and release
End Loop

There are some other pieces of code that help this work but that is the gist of it. If you are wondering the 1-second pause is necessary for a screen cap to take place.