-
December 9th, 2013, 12:52 PM
#1
[Visual Basic] Clicker Errors Cant Get this Fixed![Visual Basic]
Also i'm making a clicker but cant get the errors gone i tried alot i if i change stuff and then debug it wont run for some reason cant figure out what i did wrong :/
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub MyMethod()
Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
mouse_event(&H2, 0, 0, 0, 1)
mouse_event(&H4, 0, 0, 0, 1)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MyMethod()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Label1.Text += 1
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
System.Diagnostics.Process.Start("http://orteil.dashnet.org/cookieclicker/beta/")
End Sub
End Class
errors = mouse_event (mouse_event(&H2, 0, 0, 0, 1))
-
December 9th, 2013, 12:54 PM
#2
Re: [Visual Basic] Clicker Errors Cant Get this Fixed![Visual Basic]
Visual Basic in a c++ forum????
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
December 9th, 2013, 12:56 PM
#3
Re: [Visual Basic] Clicker Errors Cant Get this Fixed![Visual Basic]
sorry :/ new to this forum and didnt real look where i posted it :/
-
December 9th, 2013, 01:48 PM
#4
Re: [Visual Basic] Clicker Errors Cant Get this Fixed![Visual Basic]
ok now the errors are gone still when debugging i get another thing that pops up
Code:
PInvokeStackImbalance was detected
Message: A call to PInvoke function Cookie Clicker Beta WindowsApplication1.Form1 :: mouse_event the stack imbalance charged. This is probably because the PInvoke signature with accompaniment does not match the target signature unaccompanied. Check that the calling convention and parameters of the PInvoke signature match the target signature unaccompanied.
-
December 9th, 2013, 02:00 PM
#5
Re: [Visual Basic] Clicker Errors Cant Get this Fixed![Visual Basic]
[moderator - please would you move this thread]
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|