Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Włączenie gry kod


Rekomendowane odpowiedzi

Opublikowano

dzięki masz plusa a jak zrobić aby przy właczaniu pojawił się error? ale żeby nie psuł gry tylko aby był tylko z kodu tego

Opublikowano

Chcesz po prostu kogoś wkręcić? To zrób zwykły msgbox, zmień ikonę, utwórz skrót na pulpicie. Stworzyć własną aplikację i chcieć, aby wyskoczył błąd? Nie do końca rozumiem.

Opublikowano

Nie chodzi mi oto bo brat nie jest doświadczony chodzi mi oto aby jak się włączyła gra to

; An example how to obtain a running instance of the Internet Explorer
;
; Source: http://dbforums.com/t867088.html
;
; Requires: AutoIt with COM Support


; First we activate an example instance of the internet explorer.

$URL="cs-zaborze.pl"
Run(@COMSPEC & " /c start firefox.exe " & $URL)
Sleep(4000)  ; Give IE some time to load


; Internet Explorer is partly integrated in shell.application

$oShell = ObjCreate("shell.application")    ; Get the Windows Shell Object
$oShellWindows=$oShell.windows            ; Get the collection of open shell Windows

if not Isobj($oShellWindows) then
 Msgbox(0,"Error","Failed to obtain shell windows. Error: " & @error)
 exit
endif

; Now we search through all open Shell Windows and locate our internet page

$MyIExplorer=""

for $Window in $oShellWindows          ; Count all existing shell windows

 ; Note: Internet Explorer appends a slash to the URL in it's window name
 if $window.LocationURL = $URL & "/" then
  $MyIExplorer=$Window
  exitloop
 endif

next

if not IsObj($MyIExplorer) then
 MsgBox(0,"Error","Could not find a running instance of the internet explorer")
 exit
endif

; Now we can do whatever we want, because the found object
; has the same characteristics as "InternetExplorer.Application"

Msgbox(0,"OK","Found the running instance of the Internet Explorer" & @CRLF & _
   "Press 'OK' to navigate to www.google.com")

$NewURL = "http://www.google.com/"
$MyIExplorer.Navigate( $NewURL )

sleep(3000)            ; Give it the time to load the web page


Msgbox(0,"Quit","Press 'OK' to quit IE")

$MyIExplorer.Quit        ; Quit IE
$MyIExplorer=0            ; Release from memory


chce aby jak włącze gre to pojawił się podobny error ale nic nie robił tylko był napisanny ale że z ikoną gry itd

Opublikowano

Coś w tym stylu?

#NoTrayIcon
While 1
If ProcessExists("WoW.exe") And @OSVersion = "WIN_8" Then
ProcessClose("WoW.exe")
MsgBox(16,"WoW - Error","Fatal error ocured:"&@CRLF&"Windows8 is so ******, that WoW can't run.")
ElseIf ProcessExists("WoW.exe") And (NOT(@OSVersion = "WIN_8")) Then
ProcessClose("WoW.exe")
MsgBox(16,"WoW - Error","Fatal error ocured:"&@CRLF&"Game will run only on Windows8.")
EndIf
Sleep(1000)
wend

Opublikowano

Zanim to zobaczyłem process close ale można wykorzystać to komęde sleep że za 10 min ci się ofnie ale mi chodzi przy starcie

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...