View Full Version : Disable smart
sm0k3
05-08-2011, 02:40 PM
how can i get the location of the disable smart button so i can click in a script
i wish to disble smart after an action to allow a user to continue
HarryJames
05-08-2011, 02:49 PM
I don't think you'll be able too, as it's relative to the smart window (only the inside).
You could just add a pause to the script until the required action has been completed, I think there's also a code that allows you to literally pause the script.
I'll see if I can find it.
sm0k3
05-08-2011, 02:52 PM
What about searching the whole screen for Enable or Disable Smart then click
What about searching the whole screen for Enable or Disable Smart then clickI doubt it would still work though, because SMART is the client, and that little red dot can't escape.
Why not just dorepeat
Wait(100)
until(IsFKeyDown(x);Or to look more pro...if MessageBox('Press OK to continue.', 'Continue', 1) = mrOK then
//Continue with script
HarryJames
05-08-2011, 02:58 PM
Have you ever played without smart, where you have to set the window?
And then that Window becomes the screen, where (0,0) is the top left of the program/client, and not the top left of the screen.
Brandon
05-08-2011, 04:11 PM
There is a command for it.. Im looking through all my scripts because i remember asking and doing the same thing..
Its kinda like SmartSetDebug.. except its SmartEnable(false) or Enable(false) or something like that.. I cant remember what include :S
But I do remember seeing a command for this hmm.. Time to look through all the includes I guess..
Edit!! I have found it: I remember trying to compile smart and looking at all the code and hating some of it and some I really liked but enough of that lets get to the point.. it is actually included in a .dll file called libsmart.dll that is read by the client and initiated on runtime.. the following includes (NOT SURE WHICH ONE) gives you the option to interact with that .dll file thus allowing you to play around with smart..
Put these at the top of your script:
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}
{$i SRL\SRL\Misc\Stats.Simba}The next thing to do is to use the command:
SmartEnabled:booleanits a boolean.. if true then it enables smart.. if false it will disable smart. What you do with it is up to u. but I suggest you also check out other commands or other ways of doing what you want.. though this is exactly what you asked for. Enjoy.
sm0k3
05-09-2011, 01:47 AM
cant get it to work
Smart:enabled; invalid identifier
Smartenabled(true); invalid number of arguments
SmartEnabled:=false; nothing
Brandon
05-09-2011, 02:47 AM
hmm in the fuction search box to the left, right under your list of functions in your script, type Smart
if nothing shows up then for some reason your dll isnt loaded.. so try loading smart and then exit smart and type "Smart" into the function box and see if the function SmartEnable comes up.. if it doesnt then I have no clue why your libsmart.dll isnt loading. But if it loads, and the function shows up, it will work.
EDIT:
if it doesnt show up try:
{$DEFINE SRL_SMART}
{$DEFINE SMART}
{$ifdef Simba}
{.loadlib libsmart}
{$endif}
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.