You last visited: Today at 12:08
Advertisement
Kleines Tool zur Übung
Discussion on Kleines Tool zur Übung within the AutoIt forum part of the Coders Den category.
11/13/2010, 10:54
#1
elite*gold: 25
Join Date: Jun 2010
Posts: 1,076
Received Thanks: 290
Kleines Tool zur Übung
Ich hab mal ein bischen mit _Imagesearch rumgespielt
und rausgekommen ist ein kleines Tool für das Browsergame
Was macht es?
Es erscheint eine Gui in der versch. Buttons sind mit den jeweiligen Gebäuden(nicht alle....)
Wenn man auf die Buttons von Gebäude klickt wird nach den Gebäuden auf dem Bildschirm gesucht und raufgeklickt.
Bei Symbolen sind die Symbole im Hauptgebäude gemeint..
also wenn man z.b. auf das Symbol Holzfäller klickt wird nach diesem Symbol gesucht und wenn es gefunden wurde wird der Holzfäller ausgebaut..........
Ich wollte fragen ob ihr es testen könnt
Wie oben schon gesagt es ist nur zur Übung entstanden.
Source:
PHP Code:
HotKeySet ( "{F4}" , "_Suche_beenden" )
#include <ImageSearch.au3>
$x = 0
$y = 0
$search = 0
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate ( "Die Staemme Tool" , 475 , 334 , 192 , 124 )
$Group1 = GUICtrlCreateGroup ( "Gebäude" , 8 , 8 , 457 , 153 )
$Haupthaus = GUICtrlCreateButton ( "Hauptgebäude" , 16 , 24 , 131 , 25 , 0 )
$Versammlungsplatz = GUICtrlCreateButton ( "Versammlungsplatz" , 16 , 56 , 131 , 25 , 0 )
$Kirche = GUICtrlCreateButton ( "Kirche" , 16 , 88 , 131 , 25 , 0 )
$Versteck = GUICtrlCreateButton ( "Versteck" , 16 , 120 , 131 , 25 , 0 )
$Speicher = GUICtrlCreateButton ( "Speicher" , 168 , 24 , 131 , 25 , 0 )
$Holz = GUICtrlCreateButton ( "Holzfäller" , 168 , 56 , 131 , 25 , 0 )
$Lehm = GUICtrlCreateButton ( "Lehmgrube" , 168 , 88 , 131 , 25 , 0 )
$Eisen = GUICtrlCreateButton ( "Eisenmine" , 168 , 120 , 131 , 25 , 0 )
$Wall = GUICtrlCreateButton ( "Wall" , 320 , 56 , 131 , 25 , 0 )
$Statue = GUICtrlCreateButton ( "Statue" , 320 , 88 , 131 , 25 , 0 )
$Bauernhof = GUICtrlCreateButton ( "Bauernhof" , 320 , 120 , 131 , 25 , 0 )
$Kaserne = GUICtrlCreateButton ( "Kaserne" , 320 , 24 , 131 , 25 , 0 )
GUICtrlCreateGroup ( "" , - 99 , - 99 , 1 , 1 )
$Group2 = GUICtrlCreateGroup ( "Symbole" , 8 , 176 , 457 , 145 )
$Haupthau = GUICtrlCreateButton ( "Hauptgebäude" , 16 , 192 , 131 , 25 , 0 )
$Versammlungsplat = GUICtrlCreateButton ( "Versammlungsplatz" , 16 , 224 , 131 , 25 , 0 )
$Kirch = GUICtrlCreateButton ( "Kirche" , 16 , 256 , 131 , 25 , 0 )
$Verstec = GUICtrlCreateButton ( "Versteck" , 16 , 288 , 131 , 25 , 0 )
$Speiche = GUICtrlCreateButton ( "Speicher" , 168 , 192 , 131 , 25 , 0 )
$Hol = GUICtrlCreateButton ( "Holzfäller" , 168 , 224 , 131 , 25 , 0 )
$Leh = GUICtrlCreateButton ( "Lehmgrube" , 168 , 256 , 131 , 25 , 0 )
$Eise = GUICtrlCreateButton ( "Eisenmine" , 168 , 288 , 131 , 25 , 0 )
$Kasern = GUICtrlCreateButton ( "Kaserne" , 320 , 192 , 131 , 25 , 0 )
$Wal = GUICtrlCreateButton ( "Wall" , 320 , 224 , 131 , 25 , 0 )
$Statu = GUICtrlCreateButton ( "Statue" , 320 , 256 , 131 , 25 , 0 )
$Bauernho = GUICtrlCreateButton ( "Bauernhof" , 320 , 288 , 131 , 25 , 0 )
GUICtrlCreateGroup ( "" , - 99 , - 99 , 1 , 1 )
GUISetState (@ SW_SHOW )
#EndRegion ### END Koda GUI section ###
Button ()
Func Button ()
While 1
$nMsg = GUIGetMsg ()
Switch $nMsg
Case - 3
Exit
case $Haupthaus
global $Bild = @ scriptdir & "\Gebäude\Hauptgebäude.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Versammlungsplatz
global $Bild = @ scriptdir & "\Gebäude\Versammlungsplatz.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Kirche
global $Bild = @ scriptdir & "\Gebäude\Kirche.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Versteck
global $Bild = @ scriptdir & "\Gebäude\Versteck.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Speicher
global $Bild = @ scriptdir & "\Gebäude\Speicher.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Holz
global $Bild = @ scriptdir & "\Gebäude\Holzfäller.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Lehm
global $Bild = @ scriptdir & "\Gebäude\Lehmgrube.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Eisen
global $Bild = @ scriptdir & "\Gebäude\Eisenmine.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Statue
global $Bild = @ scriptdir & "\Gebäude\Statue.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Bauernhof
global $Bild = @ scriptdir & "\Gebäude\Bauernhof.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
exitloop
case $Haupthau
global $Bild = @ scriptdir & "\Symbole\Hauptgebäude.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Versammlungsplat
global $Bild = @ scriptdir & "\Symbole\Versammlungsplatz.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Kirch
global $Bild = @ scriptdir & "\Symbole\Kirche.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Verstec
global $Bild = @ scriptdir & "\Symbole\Versteck.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Speiche
global $Bild = @ scriptdir & "\Symbole\Speicher.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Hol
global $Bild = @ scriptdir & "\Symbole\Holzfäller.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Leh
global $Bild = @ scriptdir & "\Symbole\Lehmgrube.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Eise
global $Bild = @ scriptdir & "\Symbole\Eisenmine.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Kasern
global $Bild = @ scriptdir & "\Symbole\Kaserne.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Wal
global $Bild = @ scriptdir & "\Symbole\Wall.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Statu
global $Bild = @ scriptdir & "\Symbole\Statue.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
case $Bauernho
global $Bild = @ scriptdir & "\Symbole\Bauernhof.png"
winmove ( "Die Staemme Tool" , "" , 880 , 5 )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_hide )
Symbole ()
EndSwitch
WEnd
endfunc
while 1
$search = _ImageSearch ( $Bild , 1 , $x , $y , 1 )
if $search = 1 Then
mouseclick ( "left" , $x , $y )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_show )
Button ()
endif
wend
Func Symbole ()
while 1
$search = _ImageSearch ( $Bild , 1 , $x , $y , 1 )
if $search = 1 Then
mouseclick ( "left" , $x + 550 , $y )
winsetstate ( "Die Staemme Tool" , "" ,@ sw_show )
Button ()
endif
wend
endfunc
func _Suche_beenden ()
winsetstate ( "Die Staemme Tool" , "" , @ sw_show )
endfunc
Bilder usw sind im Anhang
Hier Virusscan VT geht i. wie nich da hab ich Kaspersky genommen:
Attached Files
Die-Staemme Tool.zip
(60.0 KB, 13 views)
12/30/2010, 15:03
#2
elite*gold: 227
Join Date: Jun 2010
Posts: 295
Received Thanks: 37
glaube nicht das, dass das jmd. spielt
12/30/2010, 15:18
#3
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
du bist auch so ein pusher wa?
12/31/2010, 00:22
#4
elite*gold: 1
Join Date: May 2009
Posts: 478
Received Thanks: 150
Quote:
Originally Posted by
xEr0r
glaube nicht das, dass das jmd. spielt
naja.. ich glaube, einige spielen stämme : )
Similar Threads
Kleines Tool,need help
07/21/2010 - General Coding - 7 Replies
Ich arbeite geradé an dem programm was im anhang ist ^^
Der Code sieht so aus:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 261, 153)
GUISetBkColor(0xFF0000)
$Pic1 = GUICtrlCreatePic("untitled.bmp", 88, 24, 129, 121)
$Pic2 = GUICtrlCreatePic("untitled2.bmp", 360, 32, 129, 113)
Mathematik Übung - Hilfe
05/27/2010 - School & Education - 6 Replies
Hi.
Ich lern grad für die Mathematikarbeit.
Aber ich komm einfach bei ner Formel nicht weiter.
Könnt ihr mir helfen?
Hier die Rechnung:
Gegeben Kegel:
Radius "r": 13 cm
Mantelinie "s": 85 cm
Kleines tool für VPC
05/20/2010 - Metin2 Private Server - 7 Replies
Hallo!!!
Ich möchte euch hier mein kleines tool vorstellen stört es euch auch wenn virtual pc an ist und deine Eltern immer fragen was dass ist. Ihr wollt es weg haben dann hab ich hier was für euch also ihr startet z.B Vpc oder irgendwas danach öffnet ihr Banjos fenstername changer gibt den alten name ein und im Neuen Name muss dass rein!!!! METIN2
jetzt heißt euer ausgewählte programm METIN2. Nun startet ihr Mt2Hider und könnt nun nichts erkennen außer dass rechts unten in der taskleite...
All times are GMT +2. The time now is 12:09 .