# Search the Community

Showing results for tags 'increment'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• General
• Announcements and Site News
• AutoIt v3
• AutoIt Help and Support
• AutoIt Technical Discussion
• AutoIt Example Scripts
• Scripting and Development
• Developer General Discussion
• Language Specific Discussion
• Operating System Deployment
• Windows Client
• Windows Server
• Office

### Categories

• AutoIt Team
• Beta
• MVP
• AutoIt
• Automation
• Databases and web connections
• Data compression
• Encryption and hash
• Games
• Hardware
• Information gathering
• Internet protocol suite
• Maths
• Media
• PDF
• Security
• Social Media and other Website API
• Windows
• Scripting and Development
• Operating System Deployment
• Windows Client
• Windows Server
• Office

• Forum FAQ
• AutoIt

### Calendars

• Community Calendar

• 0 Replies

• 0 Reviews

• 0 Views

Found 3 results

1. ## Loop increment value

For \$A1 = 12 To 11 + \$Total For \$B1 = 1 To (\$oExcel.Application.Cells(\$A1,6).Value) ; This value is from the Excel file. It can be from 1 - 9. For \$N1 = 7 To ??? ; This is based on the value of \$B1 ((1 = 7, 2 = 17, 3 = 27, 4 = 37, 5 = 47) Send("-"& (\$oExcel.Application.Cells(\$A1,\$N1).Value) &"/"& (\$oExcel.Application.Cells(\$A1,\$N1+1).Value)) Sleep(400) Send("{ENTER}") Sleep(700) Next Next Next I am not able to figure how to loop \$N1 as follows If the Value of \$B1 = 1 then \$N1 = 7 If the Value of \$B1 = 2 then \$N1 = 17 If the Value of \$B1 = 3 then \$N1 = 27 If the Value of \$B1 = 4 then \$N1 = 37 The value of \$N1 comes from \$B1 where 1 = 7, 2 = 17, 3 = 27, 4 = 37, 5 = 47) Thank You
2. ## Increment downloaded image filename by one

Hi Everyone! Been away from scripting for a bit and am a bit rusty. I was trying to get downloaded image filenames to increment by one. I was hoping to be able to check the last filename and continue from there if the program was closed and reopened again. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= \$biolister = GUICreate("Form1", 125, 97, 192, 124) GUISetBkColor(0x99B4D1) \$start = GUICtrlCreateButton("Start", 8, 40, 41, 33) GUICtrlSetBkColor(-1, 0x00FFFF) \$stop = GUICtrlCreateButton("Stop", 72, 40, 41, 33) GUICtrlSetBkColor(-1, 0xFF0000) \$Bio = GUICtrlCreateLabel("Bio Lister", 24, 8, 80, 28) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 \$filename = 0 \$sImgDir = "C:\filepathname\"&\$filename&".jpg" \$sImgUrl = "http://lorempixel.com/400/200" \$nMsg = GUIGetMsg() Switch \$nMsg Case \$GUI_EVENT_CLOSE Exit Case \$stop Exit case \$start InetGet(\$sImgUrl, \$simgdir, 1, 0) if fileexists( \$simgdir & \$filename) then \$filename + 1 EndSwitch WEnd
3. ## Increment number in file

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...