Berend Jan Posted April 30, 2005 Share Posted April 30, 2005 (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: expandcollapse popupFunc _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 April 30, 2005 by Berend Jan Link to comment Share on other sites More sharing options...
Berend Jan Posted April 30, 2005 Author Share Posted April 30, 2005 anyone?:S Link to comment Share on other sites More sharing options...
Developers Jos Posted April 30, 2005 Developers Share Posted April 30, 2005 (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 April 30, 2005 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. Link to comment Share on other sites More sharing options...
Berend Jan Posted April 30, 2005 Author Share Posted April 30, 2005 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 Link to comment Share on other sites More sharing options...
rasta Posted January 30, 2006 Share Posted January 30, 2006 could you please tell me in some simple steps what to do now to get money on mobstar+ a script to use Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 30, 2006 Share Posted January 30, 2006 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! 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 Link to comment Share on other sites More sharing options...
rasta Posted January 30, 2006 Share Posted January 30, 2006 but where i must place that script? Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 31, 2006 Share Posted January 31, 2006 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. 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 Link to comment Share on other sites More sharing options...
rasta Posted January 31, 2006 Share Posted January 31, 2006 nvm thanx alot anyway Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now