Berend Jan 0 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 Share this post Link to post Share on other sites
Jos 2,165 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. Share this post Link to post Share on other sites
Berend Jan 0 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 Share this post Link to post Share on other sites
rasta 0 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 Share this post Link to post Share on other sites
PsaltyDS 39 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 Share this post Link to post Share on other sites
rasta 0 Posted January 30, 2006 but where i must place that script? Share this post Link to post Share on other sites
PsaltyDS 39 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 Share this post Link to post Share on other sites
rasta 0 Posted January 31, 2006 nvm thanx alot anyway Share this post Link to post Share on other sites