|
You last visited: Today at 11:31
Advertisement
Button Problem
Discussion on Button Problem within the AutoIt forum part of the Coders Den category.
01/14/2012, 20:55
|
#1
|
elite*gold: 0
Join Date: Dec 2011
Posts: 59
Received Thanks: 2
|
Button Problem
Also ich versuche schon seit Stunden ein Programm zu schreiben, dass einfach nur den Anwendungsdateien Ordner auf Knopfdruck öffnet! Problem: @appdatadir funzt net! der sagt immer da wär n Syntax error! Help!
Hier der Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Internet Alex\Desktop\Scripten\Koda\Forms\Form1.kxf
$Form1 = GUICreate("Form1", 625, 342, 193, 125)
$Button1 = GUICtrlCreateButton("Start now!", 0, 288, 619, 49, 0)
$Label1 = GUICtrlCreateLabel("text", 64, 72, 463, 17)
$Label2 = GUICtrlCreateLabel("text", 64, 96, 419, 17)
$Label3 = GUICtrlCreateLabel("text", 64, 120, 234, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
@AppDataDir HIER LIEGT DAS PROBLEM!!!!!
EndSwitch
WEnd
|
|
|
01/14/2012, 21:06
|
#2
|
elite*gold: 0
Join Date: Feb 2011
Posts: 1,342
Received Thanks: 410
|
Wie soll er denn auch den Ordner öffnen, wenn du keinen Befehl angibst?
Naja, mit Shellexecute kannst du auch einen Ordner öffnen.
Hier mal der Code :
Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Internet Alex\Desktop\Scripten\Koda\Forms\Form1.kxf
$Form1 = GUICreate("Form1", 625, 342, 193, 125)
$Button1 = GUICtrlCreateButton("Start now!", 0, 288, 619, 49, 0)
$Label1 = GUICtrlCreateLabel("text", 64, 72, 463, 17)
$Label2 = GUICtrlCreateLabel("text", 64, 96, 419, 17)
$Label3 = GUICtrlCreateLabel("text", 64, 120, 234, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute(@AppDataDir)
EndSwitch
WEnd
Falls du noch irgendwelche Fragen hast, kannst du mich auch bei Skype adden und ich helfe dir soweit ich kann.
|
|
|
01/14/2012, 21:08
|
#3
|
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
|
Code:
#include <GUIConstantsEx.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Internet Alex\Desktop\Scripten\Koda\Forms\Form1.kxf
$Form1 = GUICreate("Form1", 625, 342, 193, 125)
$Button1 = GUICtrlCreateButton("Start now!", 0, 288, 619, 49, 0)
$Label1 = GUICtrlCreateLabel("text", 64, 72, 463, 17)
$Label2 = GUICtrlCreateLabel("text", 64, 96, 419, 17)
$Label3 = GUICtrlCreateLabel("text", 64, 120, 234, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileOpen(@AppDataDir)
EndSwitch
WEnd
|
|
|
01/14/2012, 21:14
|
#4
|
elite*gold: 0
Join Date: Dec 2011
Posts: 59
Received Thanks: 2
|
Danke, danke und nochmals danke!
Achja :closed oder wie auch immer man das schreibt!
|
|
|
01/14/2012, 21:23
|
#5
|
elite*gold: 0
Join Date: Feb 2011
Posts: 1,342
Received Thanks: 410
|
Quote:
Originally Posted by Njahs
Code:
#include <GUIConstantsEx.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Internet Alex\Desktop\Scripten\Koda\Forms\Form1.kxf
$Form1 = GUICreate("Form1", 625, 342, 193, 125)
$Button1 = GUICtrlCreateButton("Start now!", 0, 288, 619, 49, 0)
$Label1 = GUICtrlCreateLabel("text", 64, 72, 463, 17)
$Label2 = GUICtrlCreateLabel("text", 64, 96, 419, 17)
$Label3 = GUICtrlCreateLabel("text", 64, 120, 234, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileOpen(@AppDataDir)
EndSwitch
WEnd
|
Mit Fileopen können keine Ordner geöffnet werden, nur Dateien.
|
|
|
|
Similar Threads
|
Start Button Problem
06/13/2011 - AutoIt - 4 Replies
Hey Leute!
Ich bin ziemlich neu im Umgang mit AutoIT und wollte mich heute mal dransetzen ein kleines Programm zu schreiben.
Mit diesem Programm soll man mit einem Klick auf den Start Button auf die e*pvp Startseite kommen, nur habe ich keine Ahnung wie genau das funktionieren soll.
Ich habe es so gemacht :
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
|
Problem with ''Play'' button
12/25/2010 - League of Legends - 7 Replies
Hi guys
I got one problem with the ''play'' button in the patch window.
I've try every thing in the forum of the LoL site support. Can anyone helo me please !!! :) I Will be very happy :)
|
S4 Hack Button Problem
09/25/2010 - S4 League - 4 Replies
Hi also ich hab ein Problem mit meinem Hack wen ich den Button dem befehl gebe den Hack auszuführen funktioniert alles gut doch der Wert ändert sich nicht.
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
|
BUTTON problem
03/01/2010 - AutoIt - 1 Replies
Hallo Leute,
Ich hab jetzt einen ganz guten farmbot für mich gemacht
doch ein problem habe ich,da ich nicht weiß wie man ein bot pausiert (durch einen button) muss ich den bot immer wieder schließen.
Hat jemand ne lösung für mich
danke im voraus:)
|
Button Problem
02/21/2010 - AutoIt - 27 Replies
Hey Comunity,
ich hab da ein Problem. Hab auch schon SuFu & Google benutzt + Scripts
angeguckt, aber anscheinend hat niemand das selbe Problem wie ich.
Und zwar hab ich mir nen simplen Bot gemacht, der mich in Guild Wars anmelden
soll und dann nen Charakter auswählen soll. Klappt auch alles soweit gut^^
Aber ich hab jetzt noch 2 Buttons eingebaut; Start und Stopp.
Start = GW in den Vordergrund, W gedrückt halten, 10 secs halten
und dann den Bot in den Vordergrund.
|
All times are GMT +2. The time now is 11:31.
|
|