Skip to content

Commit

Permalink
add 1280x1024 as resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
3stadt committed Dec 18, 2017
1 parent 5f185a5 commit 014f5e7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
47 changes: 45 additions & 2 deletions AutoICBING.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ if (GameRes == 0) {
; Open one box
if(GameRes == 1) {
OpenBoxInLowRes(hwnd, KeepHasPrio)
} else {
} else if(GameRes == 3) {
OpenBoxInLowestRes(hwnd, KeepHasPrio)
}
else {
OpenBoxInHiRes(hwnd, KeepHasPrio)
}

Expand Down Expand Up @@ -125,10 +128,50 @@ GetGameRes(WinTitle) {
if (cWidth == 1600 && cHeight == 900) {
return 2
}
MsgBox,,Error, Your game is running at %cWidth%x%cHeight%`nPlease set resolution to 1600x900 or 1360x768
if (cWidth == 1280 && cHeight == 1024) {
return 3
}
MsgBox,,Error, Your game is running at %cWidth%x%cHeight%`nPlease set resolution to 1600x900, 1360x768 or 1280x1024
return 0
}

; Main work for 1280x1024
OpenBoxInLowestRes(hwnd, KeepHasPrio) {
Click, 460 780 ; Click yellow "open loot box" button
Sleep 5700 ; Wait loot box to open

; Click all keep buttons first, then remaining sell buttons
if (KeepHasPrio = 1) {
Click, 1190 680 ; Keep loot, if possible
Sleep 400 ; Wait for the game to register the last click

; Same for the other three loot boxes:

Click, 820 690
Sleep 400

Click 430 680
Sleep 400

Click 10 690
Sleep 400
}

Click, 1180 710 ; Sell loot, if possible
Sleep 400 ; Wait for the game to register the last click

; Same for the other three loot boxes:

Click, 830 720
Sleep 400

Click, 430 710
Sleep 400

Click, 50 730
Sleep 400
}

; Main work for 1360x768
OpenBoxInLowRes(hwnd, KeepHasPrio) {
Click, 490 660 ; Click yellow "open loot box" button
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use the ahk script or download a compiled exe from [release page](https://github
# How?

- You either start the exe or the ahk script if autohotkey is installed
- You start the [game](http://store.steampowered.com/app/733990/I_Cant_Believe_Its_Not_Gambling/). Windowed, resolution set to either 1600x900 or 1360x768.
- You start the [game](http://store.steampowered.com/app/733990/I_Cant_Believe_Its_Not_Gambling/). Windowed, resolution set to either 1600x900, 1360x768 or 1280x1024
- You set a number of boxes to open.
- You press "Run"
- You wait
Expand Down

0 comments on commit 014f5e7

Please sign in to comment.