Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global questionNumber := 1 ; Number of question
- global imageNumber := 0 ; Number of image
- MsgBox, Q:%questionNumber% i:%imageNumber%
- Esc::ExitApp ; Exit script with Escape key
- F1::takePic()
- F2::
- questionNumber += 1
- imageNumber = 0
- return
- saveScreenshot(folderLocation)
- {
- WinActivate, ahk_exe Firefox.exe
- Run, "C:\Program Files\IrfanView\i_view64.exe" /capture=2 /convert=%folderLocation%.png
- return
- }
- takePic()
- {
- ifnotexist, %folderLocation%
- FileCreateDir, C:\Downloads\Calc\Q%questionNumber%\
- folderLocation = C:\Downloads\Calc\Q%questionNumber%\%imageNumber% ; Location Of The Saved Capture
- saveScreenshot(folderLocation)
- imageNumber += 1
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement