You are here

mac on stick in the PAM

25 posts / 0 new
Last post
sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
mac on stick in the PAM

is there a way to load the .exe file into the PAM so i can use mac on stick from the menu? if you can, can i do it with other progs?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Huh???

What exactly is your question? See here for info on how to add apps to the menu.
“Science is the belief in the ignorance of the experts” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

John Bentley
John Bentley's picture
Offline
Last seen: 15 years 3 months ago
Developer
Joined: 2006-01-24 13:26
Mac-On-A-Stick uses a batch

Mac-On-A-Stick uses a batch file to start. You will need to get an executable that runs the batch file.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Keviin_
Offline
Last seen: 16 years 8 months ago
Joined: 2007-05-19 08:05
You could always use AutoIT.

You could always use AutoIT. It's not very hard and comes with a help file with all the commmands and stuff.

---
| Cruzer Micro[Slim] 1.0 GB | 2nd Generation Orange iPod Shuffle | 5th Generation iPod Video 30GB

_________________________
"A $5000 Computer... and it can't do a task as simple as killing Flanders!" -Homer

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
so...

if i use autoIT then it will help me add the batch file to the menu?

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
AutoIT would create an EXE

AutoIT would create an EXE that you could add to the menu, you wouldn't need the batch file then.

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
sweet!

is it hard to find?

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

Keviin_
Offline
Last seen: 16 years 8 months ago
Joined: 2007-05-19 08:05
no, lolz, you can find it

no, lolz, you can find it here http://www.autoitscript.com/autoit3/downloads.php
---
| Cruzer Micro[Slim] 1.0 GB | 2nd Generation Orange iPod Shuffle | 5th Generation iPod Video 30GB

_________________________
"A $5000 Computer... and it can't do a task as simple as killing Flanders!" -Homer

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
i found it but...

it doesent say that it can make a .exe for a batch file. thogh i do like the option to make GUI's.

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
If you just read the help

If you just read the help file, it should be relatively easy to, instead of using the batch, put the commands from the batch into the AU3 script. It DOES NOT convert the batch to EXE, you rewrite the batch as an AU3 script, then use the AU3 compiler to create the EXE to be visible in PAM. Another very similar scripting language is AutoHotKey, also free, AKH is open-source and very powerful for automation. IMHO, it's worth learning at least one of them, if not both.

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
first...

AU3?

and i wont have to write code right?

(sorry if this is annoying!)

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
AU3 script = AutoIT Version

AU3 script = AutoIT Version 3

and yes, it is coding, but it's really easy. it's essentially copy/paste from the help file, or fill-in-the-blank, not much more difficult than writing a batch file.

Oh, and there was a typo in my above post. i said AutoHotKey, then used AKH as the shorthand name...it should be AHK

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
of course....

i cant write code worth my life. i havent even nailed Basicv2 yet. (--) its sad but i am very new to the world of codes and $h!t!!! (mopes)

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
if you can write a batch

if you can write a batch file, know how to read, or can use copy/paste, im sure you could handle AutoIT or AutoHotKey. It took me all of 5 minutes to write my first AutoHotKey program. It remapped my work laptop's keyboard to use the extra function key for any keyboard shortcut that should use the Windows key, because the laptop doesnt have a Win key.

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
...

I CANT WRITE CODES. i dont know any code languige at all. but if you know any places where i can learn, and please for the love of god(s) please do not tell me to look at codes and figure it out! that is what everyone sugests.

srry if this sound forward or anything.

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
For AutoIT and AutoHotKey,

Edit: you won't have to rewrite anything at all, keep the batch file, and for an AutoHotKey exe file, all you need is a single line that says

Run, "path to batch file"

quotes are not needed

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
basicly...

its a shortcut to activate the batchfile from an .exe that pam will recocnise in the menu. right?

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
Yup

Yeah, pretty much. I was a bit zoned out in my first few posts and started trying to convince you that you had to rewrite the batch as AHK or AU3 script. But after I woke up, I realized that all you really need is a single-line AHK script that will run the batch

The developer formerly known as ZGitRDun8705

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
...

sweet.

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

Dev
Offline
Last seen: 14 years 6 months ago
Joined: 2006-10-16 21:46
Uses a Batch file to start?

I know this posting has been cold for almost a month now, but that about the Batch file thing made me re-check my Mac-on-Stick installation as well as the main site. Mac-on-Stick uses Mini vMac, and as far as I was aware, all you need is the Mini vMac ".EXE" file, a ROM file (named "vMac.ROM"), and your main disk image (named "Disk1.DSK). I haven't noticed any problems with my installation and the PAM at all, but still that Batch file comment got me curious.

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
i found that

and figured that since the .exe has to be in the folder and not in any subfolders(for all versions of the PAM) then just copy all of the files out of the "bin" folder into the main folder and place it where pam picks it up(for 1.0 that would be in Whatever:\portable apps\Mac-On-Stick. for the prerelease just drag it onto the flash or your drive.

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

The MAZZTer
The MAZZTer's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-11-17 15:31
You can't start just the EXE

You can't start just the EXE because it takes the name of a hard disk image to use as a command line argument. So you either need to have a batch file, or a shortcut, or you can drop a disk image onto the EXE. Either way, PAM can't launch it this way directly. A launcher made with NSIS or AutoIt would be the way to go ATM. Maybe PAM will be more configurable in the future, hopefully. Smile

Signature automatically removed for being too awesome.

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
well..

i just desided to use the .exe and load the disk immage every time, s'not really a hassle or anything.

(Note: if you take all of the files that are in the sub-folder and place them in the folder, PAM can launch mac-on-stick without any problem. i tried it and i havent had any problems yet.)

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

santuccie
Offline
Last seen: 17 years 2 months ago
Joined: 2007-08-14 06:54
Creating the batch file

Open the directory in which your Mac on Stick files are contained. Create a new folder in this directory, with "bin" as the name. Move all your Mac on Stick files into this folder.

Next, open Notepad. Copy-paste the following two lines of text, verbatim:

@echo off
".\bin\Mini vMac.exe" .\bin\hfs52.dsk

Exit Notepad, saving the new text file in the same directory as your new bin folder (not inside the bin folder). Use "Start Mini vMac.bat.txt" for the filename.

Next, go into the bin folder and copy the exact filename of your disk image. Open the new text file, and replace "hfs52.dsk" with the new filename. Close the text file and save changes.

Now, right-click the text file, and select "Rename." delete ".txt" from the end of the filename. Windows may throw up a warning, telling you that the file may become unstable if you change its extension. Click "Yes" to confirm your answer.

Use your new batch file to launch Mac on Stick. Enjoy!

P.S.: If you're having difficulty with this procedure, here's a pre-assembled package for you: http://www.mediafire.com/?803munemdnr

[Moderator RM: Added pre tags around the code.]

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 8 months ago
Joined: 2007-02-28 11:37
,...

shweet!

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

Log in or register to post comments