Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Programm Start Problem

Discussion on Programm Start Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Cynaz's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 230
Received Thanks: 7
Programm Start Problem

Hey Community

Ich habe erst vor einem Tag mit AutoIt begonnen.
Bisher habe ich nur Klicks hinbekommen.

Ich scheitere schon beim Öffnen der Dateien...
Sowie Paint oder Google etc.

Ich benutze immer den Befehl Run
z.B (D:\Levent\League of Legends\lol.launcher.exe")
Doch passieren tut nicht viel..

Mit einer Oberfläche sieht es so bei mir aus

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Games Starter", 613, 245, 739, 200)
GUISetBkColor(0x6D6D6D)
$Dragonica = GUICtrlCreateButton("Dragonica", 144, 32, 289, 49)
$LeagueOfLegends = GUICtrlCreateButton("LeagueOfLegends", 144, 136, 289, 49)
$Google = GUICtrlCreateButton("Google", 8, 16, 65, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Dragonica
Run("D:\Levent\Dragonica\Patcher.exe")
Case $LeagueOfLegends
Run(D:\Levent\League of Legends\lol.launcher.exe") EndSwitchWEnd

oder es kommt dieser Error



Was mache ich Falsch?


MFG
~Cynaz~
Cynaz is offline  
Old 11/16/2012, 22:37   #2
 
H@CT0R's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,214
Received Thanks: 153
Quote:
Originally Posted by Cynaz View Post
Hey Community

Ich habe erst vor einem Tag mit AutoIt begonnen.
Bisher habe ich nur Klicks hinbekommen.

Ich scheitere schon beim Öffnen der Dateien...
Sowie Paint oder Google etc.

Ich benutze immer den Befehl Run
z.B (D:\Levent\League of Legends\lol.launcher.exe")
Doch passieren tut nicht viel..

Mit einer Oberfläche sieht es so bei mir aus

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Games Starter", 613, 245, 739, 200)
GUISetBkColor(0x6D6D6D)
$Dragonica = GUICtrlCreateButton("Dragonica", 144, 32, 289, 49)
$LeagueOfLegends = GUICtrlCreateButton("LeagueOfLegends", 144, 136, 289, 49)
$Google = GUICtrlCreateButton("Google", 8, 16, 65, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Dragonica
Run("D:\Levent\Dragonica\Patcher.exe")
Case $LeagueOfLegends
Run(D:\Levent\League of Legends\lol.launcher.exe") EndSwitchWEnd

oder es kommt dieser Error



Was mache ich Falsch?


MFG
~Cynaz~
Schau dir mal die autoit hilfe zu run an
H@CT0R is offline  
Old 11/16/2012, 22:46   #3
 
Cynaz's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 230
Received Thanks: 7
Dann müsste das doch stimmen.
Aber es passiert nichts.
Cynaz is offline  
Old 11/16/2012, 23:19   #4
 
Croco™'s Avatar
 
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
Du hast vor "D:" ein " vergessen !
Run("D:\Levent\League of Legends\lol.launcher.exe")
Croco™ is offline  
Old 11/17/2012, 01:50   #5
 
BlueBasHeR's Avatar
 
elite*gold: 25
Join Date: Nov 2011
Posts: 266
Received Thanks: 60
Oder Unten Vergessen die While Schleife zu Beenden. Oder nur ein Teil vom Script?
BlueBasHeR is offline  
Old 11/17/2012, 11:02   #6
 
Cynaz's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 230
Received Thanks: 7
Ich habe jetzt mal alle kleinen Fehler ausgebessert, so müsste das alles nun stimmen
Die Programme starten auch aber die Patcher leider nicht.


#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\COLT\Desktop\Games Starter.kxf
$Form1 = GUICreate("Games Starter", 613, 245, 732, 487)
GUISetBkColor(0x6D6D6D)
$Dragonica = GUICtrlCreateButton("Dragonica", 144, 16, 289, 49)
$LeagueOfLegends = GUICtrlCreateButton("LeagueOfLegends", 144, 88, 289, 49)
$Google = GUICtrlCreateButton("Google", 144, 168, 289, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Dragonica
Run("D:\Levent\Dragonica\Patcher.exe")
Case $LeagueOfLegends
Run("D:\Levent\League of Legends\lol.launcher.exe")
Case $Google
Run("C:\Users\COLT\AppData\Local\Google\Chrome\App lication\Chrome.exe")

EndSwitch
WEnd

While 1
sleep(1)
WEnd
Cynaz is offline  
Old 11/17/2012, 12:32   #7
 
BlueBasHeR's Avatar
 
elite*gold: 25
Join Date: Nov 2011
Posts: 266
Received Thanks: 60
Cynaz habe es mir ein bischen angeguckt und ich denke es liegt an dem "Run" versuch es mal so:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\COLT\Desktop\Games Starter.kxf
$Form1 = GUICreate("Games Starter", 613, 245, 732, 487)
GUISetBkColor(0x6D6D6D)
$Dragonica = GUICtrlCreateButton("Dragonica", 144, 16, 289, 49)
$LeagueOfLegends = GUICtrlCreateButton("LeagueOfLegends", 144, 88, 289, 49)
$Google = GUICtrlCreateButton("Google", 144, 168, 289, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Dragonica
ShellExecute("D:\Levent\Dragonica\Patcher.exe")
Case $LeagueOfLegends
ShellExecute("D:\Levent\League of Legends\lol.launcher.exe")
Case $Google
ShellExecute("C:\Users\COLT\AppData\Local\Google\Chrome\App lication\Chrome.exe")

EndSwitch
WEnd

While 1
sleep(1)
WEnd
Durch ShellExecute kannst du auch bestimmte seiten aufrufen wie z.b.:
Code:
ShellExecute("http://www.elitepvpers.com")
Oder durch eine InputBox eine Beliebige seite Öffnen oder auch Programme indem du dies in z.b. Case $Google einfügst:
Code:
$Open = InputBox("","Was soll geöffnet werden?")
ShellExecute($Open)
MfG BlueBasHeR
BlueBasHeR is offline  
Old 11/17/2012, 22:21   #8
 
elite*gold: 10
Join Date: Sep 2012
Posts: 1,438
Received Thanks: 933
Quote:
Originally Posted by BlueBasHeR View Post
Code:
$Open = InputBox("","Was soll geöffnet werden?")
ShellExecute($Open)
MfG BlueBasHeR
Code:
$Open = InputBox("","Was soll geöffnet werden?")

ShellExecute(GuiCtrlRead($Open))
Requiable is offline  
Old 11/18/2012, 10:44   #9
 
H@CT0R's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,214
Received Thanks: 153
Quote:
Originally Posted by Requiable View Post
Code:
$Open = InputBox("","Was soll geöffnet werden?")

ShellExecute(GuiCtrlRead($Open))
Bei inputboxes sollte die erste möglichkeit funzen, guictrlread benötigt man erst bei guiinputs
H@CT0R is offline  
Thanks
1 User
Old 11/21/2012, 16:51   #10
 
elite*gold: 1
Join Date: Feb 2010
Posts: 226
Received Thanks: 55
gänsefüschen vergessen bei :
Run ("D....
XxFratziXx is offline  
Reply


Similar Threads Similar Threads
Suche Linux Programm start Mw3 Server
03/13/2012 - Call of Duty - 3 Replies
Hallo ich suche einen aktuellen Befehl der ungefähr so aussieht um meinen MW3 Server auf einem Linux Root zu starten... ./iw5mp_server.exe +set dedicated 2 +set net_ip xxx.xxx.xxx.xxx +set net_masterServerPort 40016 +set net_port 27015 +set net_queryPort 27014 +set net_authPort 8766 +set sv_maxclients 18 +set sv_hostname "your_server_name" +exec sv_config server.cfg +set sv_maprotation default +start_map_rotate
(SUCHE) Programm was Enter+Start
12/29/2010 - WarRock - 8 Replies
Okai, ich Editiere mal habs mir anders überlegt hab grad einen free "bot" gefunden nur mein Problem ist! :( auf win xp 32bit macht er alles nur kein Auto start/ready und enter und AutoF kann mir jemand helfen? kennt ihr Programme die Auto start/ready enter und Auto Irgendeine Taste klickt z.b F also zum Planten? ich wär euch sehr Dankbar
PC-Start = Programm Start?
08/10/2010 - AutoIt - 5 Replies
Hi! Kann man ein AutoIt Program gleich wie den Begrüßungscenter wenn der PC hochfährt starten? Oder wie ICQ, das es einfach kommt? Brauche dringend hilfe :)
start problem by start (win7)
02/13/2010 - Silkroad Online - 4 Replies
when i start sro than is the connection picture small and i cant see the connection window .... pls help ^^ sry for my bad english



All times are GMT +2. The time now is 12:55.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.