Skocz do zawartości

Dołącz do społecznoś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

[Pytanie] Komenda Run

Rekomendowane odpowiedzi

Opublikowano

po kilku temtach i waszej pomocy doszedłem do programu

 

 

 

$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)

 

If $haslo <> "program" Then

$zlehaslo = MsgBox (1,"Błąd" , "Złe hasło" & @CRLF & "powtorzyc?")

If $zlehaslo = 1 Then

$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)

ElseIf $zlehaslo = 2 Then

$Exting = MsgBox (0,"Koniec" , "Anulowales logowanie" & @CRLF & "koniec")

Exit

EndIf

EndIf

if $haslo = "program" Then

 

 

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=h:\koda.kxf

$Form1_1 = GUICreate("program startowy", 625, 428, 192, 124)

$Group1 = GUICtrlCreateGroup("gry", 416, 40, 201, 209)

$Button1 = GUICtrlCreateButton("saper", 424, 72, 185, 49, $WS_GROUP)

$Button2 = GUICtrlCreateButton("pasjans", 424, 152, 185, 57, $WS_GROUP)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Button3 = GUICtrlCreateButton("Mozilla firefox", 240, 72, 169, 65, $WS_GROUP)

$Group2 = GUICtrlCreateGroup("kalkulatory", 32, 40, 201, 209)

$Button4 = GUICtrlCreateButton("kalkulator by luki", 40, 72, 185, 49, $WS_GROUP)

$Button5 = GUICtrlCreateButton("kalkulator windowsa", 40, 152, 185, 57, $WS_GROUP)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Button6 = GUICtrlCreateButton("Wyjdz", 32, 360, 289, 49, $WS_GROUP)

$Button7 = GUICtrlCreateButton("total commander", 240, 160, 169, 65, $WS_GROUP)

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

 

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

Case $Button1

Run("minesweeper.exe")

Case $Button2

Run("Solitare.exe")

Case $Button3

Run("firefox.exe")

Case $Button4

Run("kalkulatorbyja.exe")

Case $Button5

Run("calc.exe")

Case $Button6

MsgBox(0, "wyjscie", "dziekuje za uzywanie moje programu by luki")

Exit

Case $Button7

Run("TOTALCMD.exe")

EndSwitch

WEnd

 

 

 

EndIf

 

 

 

 

 

I moje pytanie komenda run działa mi tylko na kalkulator z windowsa moj tez mi działa po wzuciłem go do system czy gdzies ( tam gdzie byl calc.exe) a co z reszta skrutow bo jak naciskam to nic sie nieuruchamia gdzie trzeba je wzucic?

 

 

 

 

 

@edit haslo program ale to chyba doczytaliscie :)

Kocham mpcforum.pl!!!

18706.png

Opublikowano
  • Autor

moze zle sciezke pisze bo System windows nie moze odnaleźć pliku ,,///C:programFiles/MozillaFirefox/firefox.exe

 

 

 

jak to napisac xD?

 

 

@edit

 

to z pasjansem i saperem tez nie działa niewiem czemu

Kocham mpcforum.pl!!!

18706.png

Opublikowano

A teraz

$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)

If $haslo <> "program" Then
$zlehaslo = MsgBox (1,"Błąd" , "Złe hasło" & @CRLF & "powtorzyc?")
If $zlehaslo = 1 Then
$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)
ElseIf $zlehaslo = 2 Then
$Exting = MsgBox (0,"Koniec" , "Anulowales logowanie" & @CRLF & "koniec")
Exit
EndIf
EndIf
if $haslo = "program" Then


#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=h:\koda.kxf
$Form1_1 = GUICreate("program startowy", 625, 428, 192, 124)
$Group1 = GUICtrlCreateGroup("gry", 416, 40, 201, 209)
$Button1 = GUICtrlCreateButton("saper", 424, 72, 185, 49, $WS_GROUP)
$Button2 = GUICtrlCreateButton("pasjans", 424, 152, 185, 57, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button3 = GUICtrlCreateButton("Mozilla firefox", 240, 72, 169, 65, $WS_GROUP)
$Group2 = GUICtrlCreateGroup("kalkulatory", 32, 40, 201, 209)
$Button4 = GUICtrlCreateButton("kalkulator by luki", 40, 72, 185, 49, $WS_GROUP)
$Button5 = GUICtrlCreateButton("kalkulator windowsa", 40, 152, 185, 57, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button6 = GUICtrlCreateButton("Wyjdz", 32, 360, 289, 49, $WS_GROUP)
$Button7 = GUICtrlCreateButton("total commander", 240, 160, 169, 65, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
run("minesweeper.exe")
Case $Button2
Run("Solitare.exe")
Case $Button3
Run("C:/programfiles/mozillafirefox/firefox.exe")
Case $Button4
Run("kalkulatorbyja.exe")
Case $Button5
Run("calc.exe")
Case $Button6
MsgBox(0, "wyjscie", "dziekuje za uzywanie moje programu by luki")
Exit
Case $Button7
Run("C:/programfiles/totalcomanderTOTALCMD.exe")
EndSwitch
WEnd




EndIf

Dobra lokalizajca total comandera?

Opublikowano

Może tak

$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)

If $haslo <> "program" Then
$zlehaslo = MsgBox (1,"Błąd" , "Złe hasło" & @CRLF & "powtorzyc?")
If $zlehaslo = 1 Then
$haslo = InputBox ("Wpisz Hasło", "Wpisz tutaj swoje hasło","","*",250,120)
ElseIf $zlehaslo = 2 Then
$Exting = MsgBox (0,"Koniec" , "Anulowales logowanie" & @CRLF & "koniec")
Exit
EndIf
EndIf
if $haslo = "program" Then


#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=h:\koda.kxf
$Form1_1 = GUICreate("program startowy", 625, 428, 192, 124)
$Group1 = GUICtrlCreateGroup("gry", 416, 40, 201, 209)
$Button1 = GUICtrlCreateButton("saper", 424, 72, 185, 49, $WS_GROUP)
$Button2 = GUICtrlCreateButton("pasjans", 424, 152, 185, 57, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button3 = GUICtrlCreateButton("Mozilla firefox", 240, 72, 169, 65, $WS_GROUP)
$Group2 = GUICtrlCreateGroup("kalkulatory", 32, 40, 201, 209)
$Button4 = GUICtrlCreateButton("kalkulator by luki", 40, 72, 185, 49, $WS_GROUP)
$Button5 = GUICtrlCreateButton("kalkulator windowsa", 40, 152, 185, 57, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button6 = GUICtrlCreateButton("Wyjdz", 32, 360, 289, 49, $WS_GROUP)
$Button7 = GUICtrlCreateButton("total commander", 240, 160, 169, 65, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute(@SystemDir & "/minesweeper.exe")
Case $Button2
ShellExecute(@SystemDir & "/Solitare.exe")
Case $Button3
ShellExecute("C:/programfiles/mozillafirefox/firefox.exe")
Case $Button4
ShellExecute("kalkulatorbyja.exe")
Case $Button5
ShellExecute(@SystemDir & "/calc.exe")
Case $Button6
MsgBox(0, "wyjscie", "dziekuje za uzywanie moje programu by luki")
Exit
Case $Button7
ShellExecute("C:/programfiles/total comander/TOTALCMD.exe")
EndSwitch
WEnd




EndIf

Ja mam Windowsa 7 i mam inaczej nazwanego sapera.

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.