Jump to content

Recommended Posts

Posted (edited)

Hi guys,

I have this script which should calculate the right amount and then insert it. If the amount is higher than 200000000 it should put in 200000000. The problem is, if the amount is higher than 200 mill it puts in -200000. But I have no idea why. It does copy the amount right and when the amount is lower than 200 mill it does calculate the correct amount. Does any of you understand why it puts in -200000 when the amount is higher than 200 mill?

This is the script:

Func _Bank()
        Mouseclickdrag ("left", $LocScrollDown1, $LocScrollDown2, $LocScrollDown3, $LocScrollDown4)
    Mouseclickdrag ("left", $LocDragGeld1, $LocDragGeld2, $LocDragGeld3, $LocDragGeld4)
    Send ("^c")
    Run ("Notepad.exe")
    sleep (5000)
    Send ("^v")
    Send ("{LEFT}{LEFT}{LEFT}{BS}{LEFT}{LEFT}{LEFT}{BS}{LEFT}{LEFT}{LEFT}{BS}{LEFT}{BS}{BS}{BS}{BS}{BS}{BS}


{BS}{BS}{BS}{BS}{BS}")
    Send ("^a")
    Send ("^c")
    $Money = ClipGet()
        If $Money >= 200000000 Then
            ProcessClose("notepad.exe")
            WinActivate ("Mobstar mafia game - Microsoft Internet Explorer", "")
            Mouseclick ("left", $LocBank1, $LocBank2, 1)
       ;_WaitForWebPage()
            Sleep (5000)
            Mouseclick ("left", $LocStort1, $LocStort2, 1)
            Send ($Bankmoney)
            Mouseclick ("left", $Stortbedrag1, $Stortbedrag2, 1)
       ;_WaitForWebPage()
            Sleep (5000)
        Else
            $LowMoney = $Money - 200000
            ProcessClose("notepad.exe")
            WinActivate ("Mobstar mafia game - Microsoft Internet Explorer", "")
            Mouseclick ("left", $LocBank1, $LocBank2, 1)
       ;_WaitForWebPage()
            Sleep (5000)
            Mouseclick ("left", $LocStort1, $LocStort2, 1)
            Send ($LowMoney)
            Mouseclick ("left", $Stortbedrag1, $Stortbedrag2, 1)
       ;_WaitForWebPage()
            Sleep (5000)
        EndIf
EndFunc

Hope you guys can help me.

Berend Jan

Edited by Berend Jan
  • Developers
Posted (edited)

anyone?:S

<{POST_SNAPBACK}>

Are you sure it contains a numeric value in stead of a string.

could try changing $Money = ClipGet() to $Money = Number(ClipGet())

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Are you sure it contains a numeric value in stead of a string.

could try changing $Money = ClipGet() to $Money = Number(ClipGet())

<{POST_SNAPBACK}>

it worked thx:D
  • 8 months later...
Posted

could you please tell me in some simple steps what to do now to get money on mobstar+ a script to use

Well, if you're a mobstar+, you should know this already but try:

#include <mobstar_constants.au3>

$BusinessPlan = $ProtectionRacket & $Drugs & $Vice

If Not $LocalBusiness = $PayingProtection Then
     MsgBox(16, "Threat", "Pay up or bad things might happen!")
     If Not $LocalBusiness = $NowPayingProtection Then
          Call(_BreakLegs)
     EndIf
Else
     MsgBox(32, "Thank you", "Nice doin' business with you")
EndIf

Good luck with those RICO statutes!

:lmao:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

but where i must place that script?

I'm sorry, that was meant to be a joke. Didn't translate well, I guess. :">

I had to google it to find out that Mobstar is an online game. I've never played it and couldn't help you with it. :lmao:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...