|
You last visited: Today at 17:12
Advertisement
AutoIt Script (:p)
Discussion on AutoIt Script (:p) within the Kal Online forum part of the MMORPGs category.
11/27/2009, 17:31
|
#1
|
elite*gold: 0
Join Date: Feb 2008
Posts: 209
Received Thanks: 18
|
AutoIt Script (:p)
Here's a script:
my problem?
Well when u press ok i want to get the stuff saved 
(which it doesn't do atm)
Quote:
#include <GUIConstantsEx.au3>
Hotkeyset("{F1}", "_send1")
Hotkeyset("{F2}", "_send2")
Hotkeyset("{F3}", "_send3")
Hotkeyset("{F4}", "_send4")
Hotkeyset("{F5}", "_send5")
Hotkeyset("{F6}", "_send6")
Hotkeyset("{F7}", "_send7")
Hotkeyset("{F8}", "_send8")
Hotkeyset("{F9}", "_send9")
Hotkeyset("{F10}", "_send10")
Hotkeyset("{F11}", "_send11")
Hotkeyset("{ESC}", "_exit")
global $var
global $file1
global $file2
global $file3
global $file4
global $file5
global $file6
global $file7
global $file8
global $file9
global $file10
global $file11
Opt('MustDeclareVars', 1)
Example()
Func Example()
Local $Button_1, $Button_2, $msg
Local $file1, $btn, $msg
Local $file2, $btn, $msg
Local $file3, $btn, $msg
Local $file4, $btn, $msg
Local $file5, $btn, $msg
Local $file6, $btn, $msg
Local $file7, $btn, $msg
GUICreate("Option Menu, Made by Stefan", 590, 443, 194, 131) ; will create a dialog box that when displayed is centered
GUICtrlCreateLabel("Add the macro's urself: ", 16, 8, 114, 17)
GUICtrlCreateLabel("1) Select the Macro's u want to use", 152, 8, 171, 17)
GUICtrlCreateLabel("2) Type the wanted texts in the input boxes!", 152, 24, 210, 17)
GUICtrlCreateCheckbox("Macro 1 (Hotkey : F1)", 16, 32, 129, 25)
$file1 = GUICtrlCreateInput("", 16, 56, 513, 21)
GUICtrlCreateCheckbox("Macro 2 (Hotkey : F2)", 16, 88, 177, 17)
$file2 = GUICtrlCreateInput($file2, 16, 104, 513, 21)
GUICtrlCreateCheckbox("Macro 3 (Hotkey : F3)", 16, 136, 177, 25)
$file3 = GUICtrlCreateInput("", 16, 160, 513, 21)
GUICtrlCreateCheckbox("Macro 4 (Hotkey : F4)", 16, 192, 129, 25)
$file4 = GUICtrlCreateInput("", 16, 216, 513, 21)
GUICtrlCreateCheckbox("Macro 5 (Hotkey : F5)", 16, 248, 121, 25)
$file5 = GUICtrlCreateInput("", 16, 272, 513, 21)
GUICtrlCreateCheckbox("Macro 6 (Hotkey : F6)", 16, 304, 169, 25)
$file6 = GUICtrlCreateInput("", 16, 328, 513, 21)
GUICtrlCreateCheckbox("Macro 7 (Hotkey : F7)", 16, 360, 129, 25)
$file7 = GUICtrlCreateInput("", 16, 384, 513, 21)
$Button_1 = GUICtrlCreateButton("ok", 88, 408, 153, 25)
$Button_2 = GUICtrlCreateButton("Cancel", 320, 408, 145, 25)
GUISetState() ; will display an dialog box with 2 button
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
$var = MsgBox( 4, "Option Menu, Made by Stefan", "Oké Ur Macro has been saved")
if $var = 6 Then
msgbox(1, "Option Menu, Made by Stefan", "All Credits go to stefan ")
EndIf
if $var = 7 Then
msgbox(0, "Option Menu, Made by Stefan", "You Pushed no, the script won't be executed")
exit
EndIf
Case $msg = $Button_2
MsgBox(0, 'Canceled', "You Canceled this application, the script won't be executed") ; Will demonstrate Button 2 being pressed
Exit
EndSelect
WEnd
EndFunc ;==>Example
Func _send1()
send("{enter}")
sleep(100)
Send($file1)
sleep(100)
send("{enter}")
endfunc
Func _send2()
Send($file2)
endfunc
Func _send3()
send("{enter}")
sleep(100)
Send($file3)
sleep(100)
send("{enter}")
endfunc
Func _send4()
send("{enter}")
sleep(100)
Send($file4)
sleep(100)
send("{enter}")
endfunc
Func _send5()
send("{enter}")
sleep(100)
Send($file5)
sleep(100)
send("{enter}")
endfunc
Func _send6()
send("{enter}")
sleep(100)
Send($file6)
sleep(100)
send("{enter}")
endfunc
Func _send7()
send("{enter}")
Send($file7)
send("{enter}")
endfunc
Func _send8()
send("{enter}")
sleep(100)
Send($file8)
sleep(100)
send("{enter}")
endfunc
Func _send9()
send("{enter}")
sleep(100)
Send($file9)
sleep(100)
send("{enter}")
endfunc
Func _send10()
send("{enter}")
sleep(100)
Send($file10)
sleep(100)
send("{enter}")
endfunc
Func _send11()
send("{enter}")
sleep(100)
Send($file11)
sleep(100)
send("{enter}")
endfunc
func _exit()
exit
endfunc
|
|
|
|
11/27/2009, 17:39
|
#2
|
elite*gold: 0
Join Date: Oct 2007
Posts: 159
Received Thanks: 65
|
ganz ehrlich wer den dreck versteht kann auch gleich c schreiben .. warum ausgerechnet autoit?
|
|
|
11/27/2009, 17:44
|
#3
|
elite*gold: 0
Join Date: Jan 2008
Posts: 645
Received Thanks: 235
|
das ist nur nen macro send tool
dafür brauch man kein c und zwichen autoit und c is nochmal nen gewaltiger unterschied
|
|
|
11/27/2009, 17:55
|
#4
|
elite*gold: 0
Join Date: Jul 2009
Posts: 366
Received Thanks: 10
|
Quote:
Originally Posted by Timo264
das ist nur nen macro send tool
dafür brauch man kein c und zwichen autoit und c is nochmal nen gewaltiger unterschied
|
ich glaube du hast die Aussage nicht richtig verstanden,er meinte.
Wieso mit so einem bescheuerten autoit schreiben,dass ja in der
Komplexheit wohl ähnlich schwierig ist wie c oder c++,wenn man
nicht gleich c oder c++ nehmen kann,damit stehen einem viel mehr Möglichkeiten offen..
|
|
|
11/27/2009, 18:03
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 645
Received Thanks: 235
|
doch, doch das habe ich sehr wohl verstanden
nur c bzw. c++ is halt eben noch ein wenig schwerer als c
|
|
|
11/27/2009, 18:24
|
#6
|
elite*gold: 0
Join Date: Feb 2008
Posts: 209
Received Thanks: 18
|
Please keep it english 
Why Autoit?
well i do understand c++ aswell, since there ain't a big difference between them 
but i've been told that it's easier to create a GUI with autoit than c++
|
|
|
11/27/2009, 18:24
|
#7
|
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
|
"c bzw c++ is halt eben noch ein wenig schwerer als c" jo, ist klar. C ist schwerer als C..^^
This is still the WRONG section. And ******* use code-tags -.-
btw you suck at coding, better quit it.
edit: There are HUGE difference's between autoit and c/c++
|
|
|
11/27/2009, 18:31
|
#8
|
elite*gold: 0
Join Date: Oct 2007
Posts: 159
Received Thanks: 65
|
why keep english? its a german board !
naja hier zeigt sich, wer was von programmieren versteht .. man lernt keine programmiersprache sondern man lernt programmieren. die syntax zu erlernen dauert max einen tag .. wer programmieren kann, kann jede sprache muss sich nur an sie gewöhnen!
|
|
|
11/27/2009, 19:48
|
#9
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
if you look at that source :-D no structure ! stolen many things out of example .au3's? xD
just rewrite the source and make it cleaner next time. maybe it'll work
|
|
|
11/27/2009, 20:12
|
#10
|
elite*gold: 20
Join Date: Feb 2008
Posts: 993
Received Thanks: 173
|
iam the new c++ pro xD
hab info 2 - da lernen wa objektbezogenes proggen - templates classen konstruktor dekonstruktor und lbablabla totaler bullshit xD
|
|
|
11/27/2009, 20:19
|
#11
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
na dann herzlichen glückwunsch =D
|
|
|
11/27/2009, 20:21
|
#12
|
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
|
fail borsti, das macht c++ aus ;D
|
|
|
11/27/2009, 21:14
|
#13
|
elite*gold: 0
Join Date: Oct 2007
Posts: 159
Received Thanks: 65
|
classen rocken  man muss natürlich wissen wie man damit umgeht und sie machen auch net immer sinn.
aber wenn man sie richtig benutzt ersparen sie einem viel arbeit.
|
|
|
11/27/2009, 21:15
|
#14
|
elite*gold: 0
Join Date: Feb 2008
Posts: 209
Received Thanks: 18
|
Quote:
Originally Posted by katze123
if you look at that source :-D no structure ! stolen many things out of example .au3's? xD
just rewrite the source and make it cleaner next time. maybe it'll work
|
it does have structure 
For me it does anyway.
if anyone could give me an example, on how i make a gui working
...that would be nice -.-
|
|
|
11/27/2009, 21:27
|
#15
|
elite*gold: 0
Join Date: Oct 2007
Posts: 159
Received Thanks: 65
|
naja für dich vielleicht ..
aber WIR sollen ja für DICH nach fehlern suchen. Also passe dich der genormten struktur an oder frag nicht.
Ein beispiel für GUI unter AutoIT findest du bei google sicherlich.
 Hier findest du bestimmt alles, was du brauchst.
|
|
|
 |
|
Similar Threads
|
Autoit Script als nicht Autoit erkennbar machen
02/22/2013 - AutoIt - 22 Replies
Hallo
es haben wiele bestimmt schon gesehn das w0uter mal eine Anleitung gepostet hat wie man ein Autoit script so umbaut das es keins mehr ist.
Die anleitung ist aber leider weg :(
Dann habe ich mich selber rangesetz und was ausprobiert aber hat nichts gebracht.
Dann habe ich geguckt bis wohin sein script geht als ... (kA wie man das nent halt das im hex editor ganz links diese 0x zahlen) und davor habe ich ein ha genauso eins gemacht und verglichen.
Am anfang habe ich bemerkt es fengt...
|
I need AutoIt Script plz
05/26/2010 - Rappelz - 6 Replies
hi all
How are u ?
I need AutoIt Script plz
i need that Script So much
For the arabic Rappelz
and i need it for resolution (1024x768)
1- chip (soul)
2- basic attack (magic-1sec-)
|
AutoIt Script
11/23/2009 - Kal Online - 20 Replies
hey guys, this is the beginning of a bot,
anyone could correct the errors out of it?
|
[Autoit] Y-Script?
08/09/2009 - Metin2 Private Server - 2 Replies
Hey Leute,
ich weiß hier sind viele Autoit Scripter.
Wäre es nich möglich wieder einen Pick-Up Bot zu machen?
Man müsste doch einfach nur scripten, dass die Y Taste dauerhaft gedrückt werden sollte.
Dann würde man endlich mal in Ruhe 66er Farmen, ohne dass einer einem andauernd das Yang klauen will.
|
Autoit rim script
07/29/2009 - General Gaming Discussion - 0 Replies
Hallo zusammen,
wollte mal fragen ob wer einen Autoit script für RoM hat oder eine kleine Anleitung geben könnte wie man dafür einen erstellt.:)
MFG
|
All times are GMT +1. The time now is 17:17.
|
|