Sign in to follow this  
Followers 0
Corti

I Don't Need Alot... Just That One Stupid Thing -.-

6 posts in this topic

#1 ·  Posted (edited)

Hello everyone,

Im very new to this engine, and all i want you to do is, tell me how to replace the "goto" command from 2.x in 3.x ??

I'll post my source here if you could add it :( ??

--- starts here ---

;

; ---------------------------------------

; Angriff-Script

; www.Mafia1930.de - Firefox Version

; ---------------------------------------

;

; y <---------------------------------------------------- The point where i would like to jump to

$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")

WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")

Send("{F5}")

winWaitActive("Bestätigen")

Send("{ENTER}")

Send("^{TAB}")

Sleep(& $delay)

; x <-------------------------------------------- The Point where i want the script to jump to y

;

--- ends here ---

P.S. Don't wonder about the language, im German :)

Thank you very much, guys.

Edited by Corti

Share this post


Link to post
Share on other sites



maybe

;'--- starts here ---
;
; ---------------------------------------
; Angriff-Script
; www.Mafia1930.de - Firefox Version
; ---------------------------------------
;
; y <---------------------------------------------------- The point where i would like to jump to

While 1
    sleep(100); change sleep time accordingly
     my_function()
WEnd


Func my_function()
$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")
WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")
Send("{F5}")
winWaitActive("Bestätigen")
Send("{ENTER}")
Send("^{TAB}")
Sleep($delay)
EndFunc
; x <-------------------------------------------- The Point where i want the script to jump to y
;
;'--- ends here ---

you could also use HotKeySet()

to enter/exit/pause the script

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thank you :):(:D

Share this post


Link to post
Share on other sites

Function !! :)

HotKeySet("{ESC}","_exit")

$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")



while 1
 sleep($delay)
 _Angriff()
wend

Func _Angriff()
 WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")
 Send("{F5}")
 winWaitActive("Bestätigen")
 Send("{ENTER}")
 Send("^{TAB}")
EndFunc

Func _exit()
 exit   
EndFunc

Share this post


Link to post
Share on other sites

woot, you guys are pro :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0