|
You last visited: Today at 02:41
Advertisement
Hilfe bei Shortcut und Gui
Discussion on Hilfe bei Shortcut und Gui within the AutoIt forum part of the Coders Den category.
09/23/2010, 14:27
|
#1
|
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
|
Hilfe bei Shortcut und Gui
Hallo 
Ich bin relativ neu in Auto it und wollte fragen wie ich bei meinem Script ein Exit Shortcut machen kann?
Ausserdem wollte ich frage wie ich ein Gui erstelle bei dem man nur euf einen Knopf drücken muss und dann reconnectet wird...?
Code:
HotKeySet ("^!{s}","start")
Func start()
Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
WinWaitActive ("Google - Mozilla Firefox")
Run ("DFA.bat")
WinWaitActive ("DFA-IPCHANGER CmdVersion 1.0 2oo9")
Send ("{Enter}{Enter}{Enter}{j}{Enter}")
Sleep (1000)
WinWaitActive ("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
Send ("!{F4}")
Send ("HotKeySet")
EndFunc
while 1
sleep(100)
Wend
Danke
|
|
|
09/23/2010, 17:36
|
#2
|
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
|
Exit Shortcut:
Code:
HotKeySet("{F12}", "_exit")
Func _exit()
Exit
EndFunc
Reconnect (Geht nicht bei Routern):
Code:
#include <File.au3>
If Not FileExists("Reconnect.bat") Then _FileCreate("Reconnect.bat")
$handle=FileOpen("Reconnect.bat", 2)
FileWriteLine($handle, "@echo off")
FileWriteLine($handle, "ipconfig /release")
FileWriteLine($handle, "ipconfig /renew")
FileClose($handle)
Run("Reconnect.bat")
Müsste funktionieren
MfG
Jeoni
|
|
|
09/24/2010, 16:08
|
#3
|
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,913
Received Thanks: 25,414
|
#moved
|
|
|
09/24/2010, 17:58
|
#4
|
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
|
Ok Danke ersma für das Den ersten Code 
Äähm ich wüsste jetzt gerne was das zwiete bezweckt 
€: Okay verstanden kann mir noch einer mit nem Gui helfen?
Also wie ich ein Gui erstelle bei dem ich den shortcut !^s auf eine Button legen kann?
Ich weis das es umständlich ist ich möchts bloß verstehen
|
|
|
09/24/2010, 19:40
|
#5
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
google nach "SciTE" und installier es, (ist dann im autoit ordner) dort findest du KODA(form designer) damit kannst du für autoit ganz leicht gui´s erstellen...
Quote:
|
Also wie ich ein Gui erstelle bei dem ich den shortcut !^s auf eine Button legen kann?
|
was genau meins du jetz?
wie du dann per button dein script "startest" ?
|
|
|
09/24/2010, 20:11
|
#6
|
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
|
Quote:
|
wie du dann per button dein script "startest" ?
|
Ja so etwa meinte ich das, aber ich hab jetzt geschaft 
MIt Hilfe von diesem Tutoria
lhttp://www.elitepvpers.com/forum/autoit/403140-tutorial-how-make-bot.html.
Allerdings wie kann ich jetzt einen Counter einbauen auf dem man sieht wie oft auf einen Bestimmten Knopf gedrückt wurde? (Is SInnlos aber ich würds gern haben  )
Mein Code
Code:
#include <GUIConstantsEx.au3>
GUICreate("Annohorns Reconnect", 335, 100)
GUISetState(@SW_SHOW)
$startbutton = GUICtrlCreateButton("Reconnect", 190, 8, 60)
$exitbutton = GUICtrlCreateButton("Exit",35, 8,60)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $startbutton
Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
WinWaitActive ("Google - Mozilla Firefox")
Run ("DFA.bat")
WinWaitActive ("DFA-IPCHANGER CmdVersion 1.0 2oo9")
Send ("{Enter}{Enter}{Enter}{j}{Enter}")
WinWaitActive ("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
Send ("!{F4}")
Case $msg = $GUI_EVENT_CLOSE
Case $msg = $exitbutton
GUIDelete()
Exit
EndSelect
WEnd
Danke
|
|
|
10/03/2010, 23:36
|
#7
|
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
|
push
|
|
|
10/04/2010, 17:53
|
#8
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
So kann es aussehen:
PHP Code:
#include <GUIConstantsEx.au3>
GUICreate("Annohorns Reconnect", 335, 100)
GUISetState(@SW_SHOW)
$startbutton = GUICtrlCreateButton("Reconnect", 190, 8, 60)
$exitbutton = GUICtrlCreateButton("Exit", 35, 8, 60)
$label1 = GUICtrlCreateLabel("", 50, 40)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $startbutton
GUICtrlSetData($label1, GUICtrlRead($label1) + 1)
Run("C:\Program Files\Mozilla Firefox\firefox.exe")
WinWaitActive("Google - Mozilla Firefox")
Run("DFA.bat")
WinWaitActive("DFA-IPCHANGER CmdVersion 1.0 2oo9")
Send("{Enter}{Enter}{Enter}{j}{Enter}")
WinWaitActive("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
Send("!{F4}")
Case $msg = $GUI_EVENT_CLOSE
Case $msg = $exitbutton
GUIDelete()
Exit
EndSelect
WEnd
|
|
|
10/06/2010, 21:37
|
#9
|
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
|
OKAY Danke
|
|
|
 |
Similar Threads
|
SRO DB-BOT Shortcut Key
06/09/2010 - SRO Private Server - 10 Replies
Hi,
can someone tell me if there is a shortcut key to pop-up the botmenu? Like in isrobot. Pos1 or something.
Since I am using Windows 7 it does cause trouble alt+tab with the bot.
It wont appear anymore! Windows xp didn´t hat this problem.
Thanks alot
|
Vista EO Shortcut
04/20/2009 - EO Exploits, Hacks, Tools & Macros - 6 Replies
As most of us know there are some errors with Vista and EO's play.exe and autopatch.exe
Ive edited my own shortcut (recently got Vista) so it works a lot better.
Jusrt replace this shortcut with your old one IF you have Vista.
give thx if you like xD
or
give thx for the effort
xDxD
|
COOL SHORTCUT
09/22/2008 - Zero - 8 Replies
hey im new to zero, only playing for a couple of weeks and im not sure if everyone already knows this... but here it goes
to make all robots dissapear press CTRL + tab !
this is great for market and robots re-appear when u move
less lag
;)
|
Animus shortcut key
04/21/2008 - RF Online - 2 Replies
The button makes your animus attack your target. Now I would like to change that button to something like which is 100x more accessible to me. Can anyone tell me how or where to look for this file that I need to edit. I have looked but cant find anything legible, mostly gibberish.
|
All times are GMT +2. The time now is 02:41.
|
|