Using micromacro with smartphone app via PC?

Ask questions about cheating in any games you would like. Does not need to pertain to MicroMacro.
Message
Author
Atlas123
Posts: 37
Joined: Wed Jul 13, 2011 8:31 pm

Re: Using micromacro with smartphone app via PC?

#41 Post by Atlas123 » Tue Oct 09, 2012 3:10 pm

I thought of a cheeky way around this... I can replicate the individual drag actions I need with a macro recorder, I just need to know how to give instructions in the script to open the file.

Is that using loadpaths? how?

Thanks

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#42 Post by lisa » Tue Oct 09, 2012 7:44 pm

Atlas123 wrote:Is that using loadpaths?
nope, loadpaths is specifically to get data from a waypoint file.

This macro thing, what type of file is it and how can it be used?

I would normally just say to use include() but I don't know if that would do the click for a "macro" thing.

example

Code: Select all

include("addresses.lua")
That would include the code that is in the file addresses.lua which is in the same folder as the script being run, if the file you want is in another folder it gets a bit more tricky.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Atlas123
Posts: 37
Joined: Wed Jul 13, 2011 8:31 pm

Re: Using micromacro with smartphone app via PC?

#43 Post by Atlas123 » Wed Oct 10, 2012 4:10 pm

It is Workspace Macro Pro, extension .wksp I just need to initiate the file (file will run the short macro and with enough yrest it works)

At present I have the file below the App window and the micromacro double clicks on the file lol, a bit dodgy so would be nice to just call the file from MM

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#44 Post by lisa » Wed Oct 10, 2012 6:53 pm

ok in that case you would need MM to execute the file, pretty sure there is a function for it in MM, can't recall it's name off hand, might be run or execute.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Atlas123
Posts: 37
Joined: Wed Jul 13, 2011 8:31 pm

Re: Using micromacro with smartphone app via PC?

#45 Post by Atlas123 » Thu Oct 11, 2012 2:13 am

I looked in the wiki but if it is not loadpath the other most similar ones are for filesystem functions but none seem to be for running a file.

I looked in the forums but most of it is to load loadpath related

Admin, any hints?

Thank you

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#46 Post by lisa » Thu Oct 11, 2012 2:53 am

you will probably be looking at using

Code: Select all

os.execute()
Never used it myself.
The lua reference has this for it
http://www.lua.org/manual/5.1/manual.ht ... os.execute

So something like this would be my guess.

Code: Select all

os.execute("somename.wksp")
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Atlas123
Posts: 37
Joined: Wed Jul 13, 2011 8:31 pm

Re: Using micromacro with smartphone app via PC?

#47 Post by Atlas123 » Thu Oct 11, 2012 3:27 pm

The file is in the same folder as the script

I tried with:

Code: Select all

 function fileA()
os.execute("macrotroops.wksp")
end

--First try

fileA()
But it says: " 'macrotroops.wksp' is not recognized as an internal or external command, operable program or batch file"

I also tried without the quotations marks inside the brackets but no luck

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#48 Post by lisa » Thu Oct 11, 2012 6:02 pm

I suspected it might not like the extension, back up plan is to make a short cut for the .wksp file and then tell MM to execute the shortcut =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Administrator
Site Admin
Posts: 4849
Joined: Sat Jan 05, 2008 4:21 pm

Re: Using micromacro with smartphone app via PC?

#49 Post by Administrator » Thu Oct 11, 2012 8:24 pm

He would need to execute the program with the filename as an argument. The file is not a command, so it doesn't know what to do with it.

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#50 Post by lisa » Thu Oct 11, 2012 9:47 pm

Administrator wrote:He would need to execute the program with the filename as an argument. The file is not a command, so it doesn't know what to do with it.
ummm

Code: Select all

os.execute("START macrotroops.wksp")
?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Administrator
Site Admin
Posts: 4849
Joined: Sat Jan 05, 2008 4:21 pm

Re: Using micromacro with smartphone app via PC?

#51 Post by Administrator » Thu Oct 11, 2012 10:54 pm

More like

Code: Select all

system("C:\\whatever\\whatever.exe " .. getExecutionPath() .. "\\macrotrools.wksp");

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Using micromacro with smartphone app via PC?

#52 Post by lisa » Thu Oct 11, 2012 10:57 pm

ahh ok so it is a bit like a file.txt and opening it with notepad, you need to execute the notepad.exe and tell it to open up the file.txt.

Yeah I got no idea what opens a .wksp file, *steps back into the shadows*
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest