Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region ;**** Directives created by AutoIt3Wrapper_GUI ****
- #AutoIt3Wrapper_icon=logo-paul.ico
- #AutoIt3Wrapper_Compression=3
- #AutoIt3Wrapper_Res_Comment=Created by Gendel Vladimyr aka Shadowcat [NG]
- #AutoIt3Wrapper_Res_Description=Test Drive Unlimited 2 Helper
- #AutoIt3Wrapper_Res_Fileversion=1.0.0.8
- #AutoIt3Wrapper_Res_Icon_Add=lo go.ico
- #endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
- ;#include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <EditConstants.au3>
- #include <Text.au3>
- ;Только для теста!
- ;В файле Text_Lite.au3 текст, используемый в прогамме усечен.
- ;Тестеы могут закомментировать предыдущую строку
- ;и откомментировать эту:
- ;#include <Text_Lite.au3>
- ; Основное окно
- $mainwindow = GUICreate("TDU2 Helper", 280, 265)
- GUICtrlSetColor(-1, 0xffffff)
- GUISetBkColor(0xffFFFF)
- $Icon = GUICtrlCreateIcon("", 0, 10, 10, 255, 82)
- GUICtrlSetImage($Icon, @ScriptFullPath, 201)
- $1button = GUICtrlCreateButton("Просмотр по маркам", 10, 110, 260, 25)
- GUICtrlSetTip(-1, "Просмотр автомобилей по маркам")
- $2button = GUICtrlCreateButton("Просмотр по категориям", 10, 140, 260, 25)
- GUICtrlSetTip(-1, "Просмотр автомобилей по категориям")
- $3button = GUICtrlCreateButton("Тесты машин", 10, 170, 260, 25)
- $helpbutton = GUICtrlCreateButton("Помощь по игре", 10, 200, 260, 25)
- $4button = GUICtrlCreateButton("О программе", 10, 230, 260, 25)
- GUICtrlSetTip(-1, "О программе")
- GUISwitch($mainwindow)
- GUISetState(@SW_SHOW)
- ; Основной цикл
- While 1
- $msg = GUIGetMsg()
- Select
- Case $msg = $1button
- ;Окно Просмотра по маркам
- $secondwindow = GUICreate("Просмотр автомобилей по маркам", 270, 370)
- GUISetBkColor(0xffFFFF)
- $5button = GUICtrlCreateButton("Alfa Romeo", 10, 10, 120, 30)
- $6button = GUICtrlCreateButton("Ariel Atom", 10, 50, 120, 30)
- $7button = GUICtrlCreateButton("Ascari", 10, 90, 120, 30)
- $8button = GUICtrlCreateButton("Audi", 10, 130, 120, 30)
- $9button = GUICtrlCreateButton("Bugatti", 10, 170, 120, 30)
- $10button = GUICtrlCreateButton("Catterham", 10, 210, 120, 30)
- $11button = GUICtrlCreateButton("Chevrolet", 10, 250, 120, 30)
- $12button = GUICtrlCreateButton("Dodge", 10, 290, 120, 30)
- $13button = GUICtrlCreateButton("Ford", 10, 330, 120, 30)
- $15button = GUICtrlCreateButton("HUMMER", 140, 10, 120, 30)
- $16button = GUICtrlCreateButton("Koenigsegg", 140, 50, 120, 30)
- $17button = GUICtrlCreateButton("Land-Rover", 140, 90, 120, 30)
- $18button = GUICtrlCreateButton("Mercedes-Benz", 140, 130, 120, 30)
- $19button = GUICtrlCreateButton("McLaren", 140, 170, 120, 30)
- $20button = GUICtrlCreateButton("Pagani", 140, 210, 120, 30)
- $21button = GUICtrlCreateButton("RUF", 140, 250, 120, 30)
- $22button = GUICtrlCreateButton("Spyker", 140, 290, 120, 30)
- GUISwitch($secondwindow)
- GUISetState(@SW_SHOW)
- While 1
- $mesg = GUIGetMsg()
- Select
- Case $mesg = $5button
- MsgBox(0, "Программа", "Данная функция находится в разработке")
- Case $mesg = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $2button
- ; Окно Просмотра по категориям
- $thirdwindow = GUICreate("Просмотр автомобилей по категориям", 250, 289)
- GUISetBkColor(0xffFFFF)
- $23button = GUICtrlCreateButton("A1", 8, 8, 113, 33)
- $24button = GUICtrlCreateButton("A2", 8, 48, 113, 33)
- $25button = GUICtrlCreateButton("A3", 8, 88, 113, 33)
- $26button = GUICtrlCreateButton("A4", 8, 128, 113, 33)
- $27button = GUICtrlCreateButton("A5", 8, 168, 113, 33)
- $28button = GUICtrlCreateButton("A6", 8, 208, 113, 33)
- $29button = GUICtrlCreateButton("A7", 8, 248, 113, 33)
- $30button = GUICtrlCreateButton("B2", 128, 8, 113, 33)
- $31button = GUICtrlCreateButton("B3", 128, 48, 113, 33)
- $32button = GUICtrlCreateButton("B4", 128, 88, 113, 33)
- $33button = GUICtrlCreateButton("C2", 128, 128, 113, 33)
- $34button = GUICtrlCreateButton("C3", 128, 168, 113, 33)
- $35button = GUICtrlCreateButton("C4", 128, 208, 113, 33)
- GUISwitch($thirdwindow)
- GUISetState(@SW_SHOW)
- While 1
- $1mesag = GUIGetMsg()
- Select
- Case $1mesag = $23button
- ; Окно Категоии А1
- $A1window = GUICreate("Автомобили Категории A1", 522, 265, 232, 132)
- $A1 = GUICtrlCreateButton("Mercedes-Benz SLR McLaren Stirling Moss", 264, 72, 249, 25)
- $A2 = GUICtrlCreateButton("Ariel Atom 300 Supercharged", 8, 8, 249, 25)
- $A3 = GUICtrlCreateButton("Ariel Atom 500 V8", 8, 40, 249, 25)
- $A4 = GUICtrlCreateButton("Ascari A10", 8, 72, 249, 25)
- $A5 = GUICtrlCreateButton("Aston Martin One-77", 8, 104, 249, 25)
- $A6 = GUICtrlCreateButton("Bugatti Veyron 16.4", 8, 136, 249, 25)
- $A7 = GUICtrlCreateButton("Bugatti Veyron 16.4 Grand Sport", 8, 168, 249, 25)
- $A8 = GUICtrlCreateButton("Ferrari 599 GTO", 8, 200, 249, 25)
- $A9 = GUICtrlCreateButton("Ferrari Enzo", 8, 232, 249, 25)
- $A10 = GUICtrlCreateButton("Koenigsegg CCXR Edition", 264, 8, 249, 25)
- $A11 = GUICtrlCreateButton("McLaren MP4-12C", 264, 40, 249, 25)
- $A12 = GUICtrlCreateButton("Pagani Zonda Cinque", 264, 104, 249, 25)
- $A13 = GUICtrlCreateButton("Pagani Zonda F", 264, 136, 249, 25)
- $A14 = GUICtrlCreateButton("Pagani Zonda F Roadster", 264, 168, 249, 25)
- $A15 = GUICtrlCreateButton("RUF RT 12", 264, 200, 249, 25)
- GUISwitch($A1window)
- GUISetState(@SW_SHOW)
- While 1
- $mesag = GUIGetMsg()
- Select
- Case $mesag = $A2
- ; Ariel Atom 300 Supercharged
- $AA3 = GUICreate("A1:", 205, 215)
- GUISetBkColor(0xffFFFF)
- GUICtrlCreateButton("Ariel Atom 300S", 5, 2, 195, 20)
- GUICtrlCreateLabel("Стоимость:", 5, 27, 100, 20)
- GUICtrlCreateButton("$ 63 700", 69, 24, 55, 20)
- GUICtrlCreateProgress(5, 47, 195, 13)
- GUICtrlSetData(-1, 30)
- GUICtrlCreateProgress(100, 65, 100, 13)
- GUICtrlSetData(-1, 93)
- GUICtrlCreateLabel("Ускорение:", 2, 65)
- GUICtrlCreateButton("93", 76, 62, 24, 20)
- GUICtrlCreateProgress(100, 87, 100, 13)
- GUICtrlSetData(-1, 45)
- GUICtrlCreateLabel("Скорость:", 2, 87)
- GUICtrlCreateButton("45", 76, 84, 24, 20)
- GUICtrlCreateProgress(100, 109, 100, 13)
- GUICtrlSetData(-1, 87)
- GUICtrlCreateLabel("Тормоза:", 2, 109)
- GUICtrlCreateButton("87", 76, 106, 24, 20)
- GUICtrlCreateLabel("Макс. скорость:", 2, 133)
- GUICtrlCreateButton("354 км/ч", 95, 130, 52, 20)
- GUICtrlCreateLabel("0-100:", 2, 155)
- GUICtrlCreateButton("2.90 сек", 95, 152, 52, 20)
- GUICtrlCreateLabel("Мощность:", 2, 177)
- GUICtrlCreateButton("300 лс", 95, 174, 52, 20)
- GUICtrlCreateLabel("Покраска/Наклейка/Тюнинг:", 2, 197)
- ;
- GUICtrlCreateCheckbox(" ", 157, 192)
- GUICtrlSetState(-1, $GUI_CHECKED)
- ;
- GUICtrlCreateCheckbox(" ", 172, 192)
- ;
- GUICtrlCreateCheckbox(" ", 187, 192)
- GUICtrlSetState(-1, $GUI_CHECKED)
- ;
- GUISetState(@SW_SHOW)
- GUISwitch($A1)
- While 1
- $1mesage = GUIGetMsg()
- Select
- Case $1mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $mesag = $A3
- ; Ariel Atom 500 V8
- $AA5 = GUICreate("A1:", 205, 215)
- GUISetBkColor(0xffFFFF)
- GUICtrlCreateButton("", 5, 2, 195, 20)
- GUICtrlCreateLabel("Стоимость:", 5, 27, 100, 20)
- GUICtrlCreateButton("$ ", 69, 24, 55, 20)
- GUICtrlCreateProgress(5, 47, 195, 13)
- GUICtrlSetData(-1, 30)
- GUICtrlCreateProgress(100, 65, 100, 13)
- GUICtrlSetData(-1, 93)
- GUICtrlCreateLabel("Ускорение:", 2, 65)
- GUICtrlCreateButton("", 76, 62, 24, 20)
- GUICtrlCreateProgress(100, 87, 100, 13)
- GUICtrlSetData(-1, 45)
- GUICtrlCreateLabel("Скорость:", 2, 87)
- GUICtrlCreateButton("", 76, 84, 24, 20)
- GUICtrlCreateProgress(100, 109, 100, 13)
- GUICtrlSetData(-1, 87)
- GUICtrlCreateLabel("Тормоза:", 2, 109)
- GUICtrlCreateButton("", 76, 106, 24, 20)
- GUICtrlCreateLabel("Макс. скорость:", 2, 133)
- GUICtrlCreateButton(" км/ч", 95, 130, 52, 20)
- GUICtrlCreateLabel("0-100:", 2, 155)
- GUICtrlCreateButton(". сек", 95, 152, 52, 20)
- GUICtrlCreateLabel("Мощность:", 2, 177)
- GUICtrlCreateButton(" лс", 95, 174, 52, 20)
- GUICtrlCreateLabel("Покраска/Наклейка/Тюнинг:", 2, 197)
- GUICtrlCreateCheckbox(" ", 157, 192)
- GUICtrlSetState(-1, $GUI_CHECKED)
- GUICtrlCreateCheckbox(" ", 172, 192)
- GUICtrlSetState(-1, $GUI_CHECKED)
- GUICtrlCreateCheckbox(" ", 187, 192)
- GUICtrlSetState(-1, $GUI_CHECKED)
- GUISetState(@SW_SHOW)
- GUISwitch($A1)
- While 1
- $1mesage = GUIGetMsg()
- Select
- Case $1mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $mesag = $A3
- Case $mesag = $A4
- Case $mesag = $A5
- Case $mesag = $A6
- Case $mesag = $A7
- Case $mesag = $A8
- Case $mesag = $A9
- Case $mesag = $A10
- Case $mesag = $A11
- Case $mesag = $A12
- Case $mesag = $A13
- Case $mesag = $A14
- Case $mesag = $A15
- Case $mesag = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $1mesag = $35button
- MsgBox(0, "Программа", "Данная функция находится в разработке")
- Case $1mesag = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $3button
- ; Тесты машин категорий: A1 A2 A3 A4 A5 A6 A7 B2 B3 B4 C2 C3 C4
- $Form1 = GUICreate("Тесты машин", 250, 289)
- GUISetBkColor(0xffFFFF)
- $A21 = GUICtrlCreateButton("A1", 8, 8, 113, 33)
- $A22 = GUICtrlCreateButton("A2", 8, 48, 113, 33)
- $A23 = GUICtrlCreateButton("A3", 8, 88, 113, 33)
- $A24 = GUICtrlCreateButton("A4", 8, 128, 113, 33)
- $A25 = GUICtrlCreateButton("A5", 8, 168, 113, 33)
- $A26 = GUICtrlCreateButton("A6", 8, 208, 113, 33)
- $A27 = GUICtrlCreateButton("A7", 8, 248, 113, 33)
- $B22 = GUICtrlCreateButton("B2", 128, 8, 113, 33)
- $B23 = GUICtrlCreateButton("B3", 128, 48, 113, 33)
- $B24 = GUICtrlCreateButton("B4", 128, 88, 113, 33)
- $C22 = GUICtrlCreateButton("C2", 128, 128, 113, 33)
- $C23 = GUICtrlCreateButton("C3", 128, 168, 113, 33)
- $C24 = GUICtrlCreateButton("C4", 128, 208, 113, 33)
- GUISetState(@SW_SHOW)
- While 1
- $msg = GUIGetMsg()
- Select
- Case $msg = $A21
- GUICreate("Тест машин категории A1", 792, 402)
- GUICtrlCreateEdit($TestA1, 1, 1, 407, 400)
- GUICtrlCreateEdit($TestA1p2, 410, 1, 380, 380)
- $next2 = GUICtrlCreateButton("Далее: Часть вторая", 410, 382, 379, 20)
- GUISetState(@SW_SHOW)
- While 1
- $8mesage = GUIGetMsg()
- Select
- Case $8mesage = $next2
- GUICreate("Тест А1: Часть вторая", 792, 402)
- GUICtrlCreateEdit($TestA1p3, 1, 1, 420, 400)
- GUICtrlCreateEdit($TestA1p4, 422, 1, 370, 400)
- GUISetState(@SW_SHOW)
- While 1
- $8mesage = GUIGetMsg()
- Select
- Case $8mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $8mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A22
- GUICreate("Тест машин категории A2", 790, 402)
- GUICtrlCreateEdit($TestA2, 1, 1, 407, 400)
- GUICtrlCreateEdit($TestA2p2, 410, 1, 379, 380)
- $next = GUICtrlCreateButton("Далее: Часть вторая", 410, 382, 379, 20)
- GUISetState(@SW_SHOW)
- While 1
- $5mesage = GUIGetMsg()
- Select
- Case $5mesage = $next
- GUICreate("Тест А2: Часть вторая", 792, 402)
- GUICtrlCreateEdit($TestA2p3, 1, 1, 407, 400)
- GUICtrlCreateEdit($TestA2p4, 410, 1, 380, 400)
- GUISetState(@SW_SHOW)
- While 1
- $7mesage = GUIGetMsg()
- Select
- Case $7mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $5mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A23
- GUICreate("Тест машин категории A3", 772, 402)
- GUICtrlCreateEdit($TestA3, 1, 1, 362, 400)
- GUICtrlCreateEdit($TestA3p2, 364, 1, 407, 400)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A24
- GUICreate("Тест машин категории A4", 747, 402)
- GUICtrlCreateEdit($TestA4, 1, 1, 367, 400)
- GUICtrlCreateEdit($TestA4p2, 370, 1, 375, 400)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A25
- GUICreate("Тест машин категории A5", 797, 402)
- GUICtrlCreateEdit($TestA5, 1, 1, 417, 400)
- GUICtrlCreateEdit($TestA5p2, 420, 1, 375, 400)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A26
- GUICreate("Тест машин категории A6", 427, 357)
- GUICtrlCreateEdit($TestA6, 1, 1, 425, 355)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $A27
- GUICreate("Тест машин категории A7", 417, 357)
- GUICtrlCreateEdit($TestA7, 1, 1, 415, 355)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $B22
- GUICreate("Тест машин категории B2", 387, 167)
- GUICtrlCreateEdit($TestB2, 1, 1, 385, 165)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $B23
- GUICreate("Тест машин категории B3", 422, 372)
- GUICtrlCreateEdit($TestB3, 1, 1, 420, 370)
- GUISetState(@SW_SHOW)
- While 1
- $mesag = GUIGetMsg()
- Select
- Case $mesag = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $B24
- GUICreate("Тест машин категории B4", 424, 377)
- GUICtrlCreateEdit($TestB4, 1, 1, 422, 375)
- GUISetState(@SW_SHOW)
- While 1
- $4mesage = GUIGetMsg()
- Select
- Case $4mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $C22
- GUICreate("Тест машин категории C2", 392, 397)
- GUICtrlCreateEdit($TestC2, 1, 1, 390, 395)
- GUISetState(@SW_SHOW)
- While 1
- $3mesage = GUIGetMsg()
- Select
- Case $3mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $C23
- ; Категория С3
- GUICreate("Тест машин категории C3", 750, 417)
- GUICtrlCreateEdit($TestC3, 1, 1, 385, 415)
- GUICtrlCreateEdit($TestC3p2, 388, 1, 360, 415)
- GUISetState(@SW_SHOW)
- While 1
- $mesage = GUIGetMsg()
- Select
- Case $mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $9msg = $C24
- ; Категория С4
- GUICreate("Тест машин категории C4", 500, 400)
- GUICtrlCreateEdit($TestC4, 1, 1, 490, 390)
- GUISetState(@SW_SHOW)
- While 1
- $2mesage = GUIGetMsg()
- Select
- Case $2mesage = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $helpbutton
- $helpwindow = GUICreate("Помощь по игре", 186, 90)
- GUISetBkColor(0xffFFFF)
- $faq1 = GUICtrlCreateButton("Общие вопросы", 8, 8, 169, 33)
- $faq2 = GUICtrlCreateButton("Настройка управления", 8, 48, 169, 33)
- GUISwitch($helpwindow)
- GUISetState(@SW_SHOW)
- While 1
- $mesg = GUIGetMsg()
- Select
- Case $mesg = $faq1
- $faq11 = GUICreate("Настройки управления", 410, 470)
- GUISetBkColor(0xffFFFF)
- GUICtrlCreateEdit($Text2, 1, 1, 410, 470)
- GUISwitch($faq11)
- GUISetState(@SW_SHOW)
- While 1
- $9mesg = GUIGetMsg()
- Select
- Case $9mesg = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $mesg = $faq2
- $faq21 = GUICreate("Настройки управления", 790, 470)
- GUISetBkColor(0xffFFFF)
- GUICtrlCreateEdit("Hello", 1, 1, 790, 470)
- GUISwitch($faq21)
- GUISetState(@SW_SHOW)
- While 1
- $8mesg = GUIGetMsg()
- Select
- Case $8mesg = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $mesg = $GUI_EVENT_CLOSE
- GUIDelete()
- ;Exit
- ExitLoop
- EndSelect
- WEnd
- Case $msg = $4button
- MsgBox(0, "О программе", $Text1)
- Case $msg = $GUI_EVENT_CLOSE
- ExitLoop
- EndSelect
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment