Advertisement
blisszero2

disccreaturesresizer

Dec 25th, 2022
2,576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.10 KB | Gaming | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <ComboConstants.au3>
  3. #include <GUIConstantsEx.au3>
  4. #include <StaticConstants.au3>
  5. #include <WindowsConstants.au3>
  6. Global $janela = 'disc creatures'
  7.  
  8.  
  9. #Region # GUI
  10. $Form1 = GUICreate("disc creatures", 268, 187, 254, 145)
  11.  
  12. $game = GUICtrlCreateLabel("disc creatures", 8, 8, 251, 50)
  13. GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
  14.  
  15. $Resolucoes = GUICtrlCreateCombo("", 8, 56, 249, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
  16. GUICtrlSetFont(-1, 34, 400, 0, "MS Sans Serif")
  17.         ; itens adicionais para o combobox.
  18.         GUICtrlSetData($Resolucoes , "100%|150%|200%|250%|300%", "100%")
  19.  
  20.         ; botão para ativar a mudança da resolução.
  21. $Butt_OK = GUICtrlCreateButton("Change", 8, 128, 249, 49)
  22.  
  23.  
  24. GUISetState(@SW_SHOW)
  25. #EndRegion # GUI
  26.  
  27. While 1
  28.     Sleep(15)
  29.     $nMsg = GUIGetMsg()
  30.     Global $aPos = WinGetPos($janela)
  31.     Switch $nMsg
  32.  
  33.         ; ao usar o botão.
  34.     Case $Butt_OK
  35.    
  36.     If WinActivate('$janela', "") Then
  37.         ; alterar resolução para 100% ( 480,420 )
  38.                     If GUICtrlRead($Resolucoes) = "100%" Then
  39.                             WinMove($janela, "",$aPos[0], $aPos[1],480,420 )
  40.                             ConsoleWrite('MUDANDO PARA 100%' & @CRLF)
  41.  
  42.                         ; alterar resolução para 150% ( 720,630 )
  43.                     ElseIf GUICtrlRead($Resolucoes) = "150%" Then
  44.                             WinMove($janela, "",$aPos[0], $aPos[1],720,630 )
  45.                             ConsoleWrite('MUDANDO PARA 150%' & @CRLF)  
  46.                    
  47.                         ; alterar resolução para 200%  ( 960,840 )
  48.                     ElseIf GUICtrlRead($Resolucoes) = "200%" Then
  49.                             WinMove($janela, "",$aPos[0], $aPos[1],960,840 )
  50.                             ConsoleWrite('MUDANDO PARA 200%' & @CRLF)      
  51.                            
  52.                         ; alterar resolução para 250%  ( 1200,1050 )
  53.                     ElseIf GUICtrlRead($Resolucoes) = "250%" Then
  54.                             WinMove($janela, "",$aPos[0], $aPos[1],1200,1050)
  55.                             ConsoleWrite('MUDANDO PARA 200%' & @CRLF)                  
  56.                            
  57.                         ; alterar resolução para 250%  ( 1440,1260 )
  58.                     ElseIf GUICtrlRead($Resolucoes) = "300%" Then
  59.                             WinMove($janela, "",$aPos[0], $aPos[1],1440,1260)
  60.                             ConsoleWrite('MUDANDO PARA 200%' & @CRLF)              
  61.                    
  62.                     EndIf
  63.    
  64.     EndIf
  65.     Case $GUI_EVENT_CLOSE
  66.         Exit
  67.  
  68.     EndSwitch
  69. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement