Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 16:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB.Net Problem mit Loop

Discussion on VB.Net Problem mit Loop within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
DXStriker's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 194
Received Thanks: 86
Unhappy VB.Net Problem mit Loop

Heyho E*PvP,
Ich habe vor kurzem angefangen mit VB.net zu arbeiten. Nun habe ich mir für Spaßzwecke einen League of Legends zoomhack programmiert.
Leider gibt es 2 Probleme :

- Das Programm reagiert nicht mehr, wenn ich auf den ON button geklickt habe und das Programm somit in der Loop läuft (sprich ich kann in der Form1 nichts mehr klicken etc.)

- Wie kann ich mit dem OFF button die Loop beenden und dann auf den Normalwert zurückkehren?
Das Programm ist im Anhang und zu 100% clear von Viren.

Code:
Public Class Form1


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Do
            WriteInteger("League of Legends", &HB5852A, 17725)
            Threading.Thread.Sleep(300)
        Loop
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        WriteInteger("League of Legends", &HB5852A, 17675)
    End Sub
End Class
Ich würde mich freuen, wenn mir jemand bei diesem Problem helfen könnte. :/

greetz DXStriker
Attached Files
File Type: rar Lol zoomhack.rar (90.8 KB, 3 views)
DXStriker is offline  
Old 05/18/2012, 02:48   #2
 
qickly's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 351
Received Thanks: 57
Das ist doch klar, da die Funktion nie beendet wird und damit auch die Form nicht mehr abrufbar ist. Mach das am besten mit einem Timer und ohne Loop....

Timer1.Start()
Timer1.Stop()
qickly is offline  
Old 05/18/2012, 10:34   #3
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
applicaton.doevents ist das zauberwort

und kA ob Threading.Thread.Sleep(300) überhaupt so an der stelle funktioniert
tolio is offline  
Old 05/18/2012, 10:55   #4
 
MissUnderstoodOne's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 322
Received Thanks: 505
Die baust einen Thread ein...

Hierzu musst du erst noch eine Funktion erstellen
Und zum Abbrechen baust du eine globale Variable ein...

PHP Code:
private zoom as boolean false
private sub ZoomHack_an()
        while 
zoom
                WriteInteger
("League of Legends", &HB5852A17725)
                
Threading.Thread.Sleep(300)
        
end while
end sub
Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
        zoom 
true
        dim t 
as new Threading.Thread(AddressOf ZoomHack_an)
        
t.start
    End Sub

Private Sub Button2_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button2.Click
        zoom 
false
        WriteInteger
("League of Legends", &HB5852A17675)
    
End Sub 
so kannst du das in die Form einfügen, denk ich(Hab das alles Freihand geschrieben...)
MissUnderstoodOne is offline  
Thanks
1 User
Old 05/18/2012, 11:58   #5
 
DXStriker's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 194
Received Thanks: 86
Cool Danke <3 Problem gelößt!

Quote:
Originally Posted by MissUnderstoodOne View Post
Die baust einen Thread ein...

Hierzu musst du erst noch eine Funktion erstellen
Und zum Abbrechen baust du eine globale Variable ein...

PHP Code:
private zoom as boolean false
private sub ZoomHack_an()
        while 
zoom
                WriteInteger
("League of Legends", &HB5852A17725)
                
Threading.Thread.Sleep(300)
        
end while
end sub
Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
        zoom 
true
        dim t 
as new Threading.Thread(AddressOf ZoomHack_an)
        
t.start
    End Sub

Private Sub Button2_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button2.Click
        zoom 
false
        WriteInteger
("League of Legends", &HB5852A17675)
    
End Sub 
so kannst du das in die Form einfügen, denk ich(Hab das alles Freihand geschrieben...)
Hey danke für die schnelle Antwort. Dacht ich mir schon, dass ich mit dem Loop falsch liege . Aber sowas hab ich gesucht!

mfg DXStriker


#closerequest
DXStriker is offline  
Old 05/18/2012, 13:57   #6
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Quote:
Originally Posted by tolio View Post
applicaton.doevents ist das zauberwort
Nein lieber nicht :/
Ein extra Thread dafür ist schon richtig so
Kraizy​ is offline  
Old 05/18/2012, 14:23   #7
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
Quote:
Originally Posted by xKraizy View Post
Nein lieber nicht :/
Ein extra Thread dafür ist schon richtig so
sicher ist nen extra thread schöner, aber doevents hat auch so manche vorteile
tolio is offline  
Reply

Tags
league of legends, lol, problem, vb.net, zoomhack


Similar Threads Similar Threads
SRO-DB Bot Loop Problem
06/02/2010 - SRO Private Server - 5 Replies
Hallo ich habe Loop eingestellt in HP (Medium) 200 MP (Medium) 400 UniveralPills 100 habe loop auch Reordet (vom Pot Trader) Saved und Loaded in DW passirt nix und in HT Rennt er gegen Mauer öffnet kein storage ... rennt gerade aus zur Mauer Version 0.8 (ZSZC)
db bot loop problem
06/02/2010 - SRO Private Server - 3 Replies
for some reason my bot wont loop when it spawns on hotan on zszc server, is this a common problem? or just mine, and yah i downloaded the addon and everything, but just wont loop.
Problem with Loop [Bot] SRO-DB
05/25/2010 - SRO Private Server - 2 Replies
Whene i Start in Hotan the bot buff.. thene he go to an Obstacle (Build of stuff) and stuck , i Use scroll and no thing happend ... sometimes the loop work but he don't res .... i Use the Last version of the bot and i have Windows XP NeeD HELP PLEASE :'( PS : >>> Sry for my bad english i'am french
problem with loop
05/24/2010 - SRO Private Server - 3 Replies
hej guys if i do loop and im away or somting he go to storage and just stand there.. and stucks and if i click on my screen again from sro it works good than he opens storage put items and go buy pots and so.. but how i fix it or somting.. so if im away or somting he dies and go back dont stuck at storage again..



All times are GMT +1. The time now is 16:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.