Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #SingleInstance force
- us = a`nb`nc
- id = 1`n2`n3
- inputbox,input,enter input
- if input is integer
- {
- Loop, parse, id, `n, `r
- {
- if (A_loopfield == input)
- counter := A_index
- }
- Loop, parse, us, `n, `r
- {
- if (A_index == counter)
- outcome := A_loopfield
- }
- }
- else
- {
- Loop, parse, us, `n, `r
- {
- if (A_loopfield == input)
- counter := A_index
- }
- Loop, parse, id, `n, `r
- {
- if (A_index == counter)
- outcome := A_loopfield
- }
- }
- msgbox,%outcome%
- return
- f11::exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement