how do u create a short cut exactly?? using total commander.. but when i click, i get this... cannot run.. may be unsigned error
Shortcuts are text files with .lnk extentions which consists of a length paramether and the shortcut to it's exe with a # delimiter.
28#"\Program files\Program.exe"
The 28 in the above example is the length of all text after the # symbol.
In fact, the easiest way to create a shortcut is using windows file explorer and select the exe file. Go to Menu->Edit->Copy and then browse to the place for the shortcut link, creating the shortcut with Menu->Edit->Paste Shortcut.
what if i need command line commands in?
leobox1 said:
what if i need command line commands in?
Click to expand...
Click to collapse
Just add them in the end and increase the character number value with the appropriate number, including space count.
38#"\Program files\Program.exe" -cl1 -cl2
thanks man
Related
Guys, don't get excited, this is just a teeny tiny app for a special request:
http://forum.xda-developers.com/viewtopic.php?t=50460&start=0&postdays=0&postorder=asc&highlight=
I'm basically not releasing anything for a while whilst I work on my new website, which is taking ages
However, this app is just used to launch an app in the same folder, with the filename
VJTarget.exe
or a shortcut called VJTarget.lnk.
This is very specific in use. You don't need it, I'm sure.
But if you have an app that can launch an .exe, but won't launch a shortcut with a command line, then this might be for you (I know some button redefiners and Today launchers might get use out of this)
So, basically, if you want to run VJDialer with a command line in TomTom:
1. Create a shortcut to VJDialer and set it up as you normally would.
2. Check the shortcut to ensure it works.
3. Copy it to your target folder.
4. Copy VJBrisk.exe to the same target folder.
5. Rename the shortcut you made in Step 1 to VJTarget.lnk.
6. Running VJBrisk will now launch VJTarget with its command line etc.
So, setup TomTom to run VJBrisk, and VJBrisk will then launch a file called VJTarget.exe or VJTarget.lnk in the same folder.
Like I said, very specific, but a good experiment for me with some nice string classes
On my (old) website.
V
Thanx!
I will rewrite my question here, because it's + appropriated:
i will try NOW your app.... only a question:
VJbrisk.exe launch only one vjtarget.lnk or just rename it (exe) with the same name of the link to have more than 1 phone link?
(es Vjbrisk1.exe call Vjbrisk1.lnk, Vjbrisk2.exe call VJbrisk2.lnk etc ?
sorry 4 my english
:::EDIT:::::
i HAVE AN IDEA!
If a Vjbrisk.exe read from a text file vjtarget.txt :
links = 2
link1: vjdial.exe 123456789;
link2: vjdial.exe 987654321;
then by renaming as Vjbrisk1.exe or vjbrisk2.exe the program execute the link into the txt?
the counter is for vjbrisc[X].exe, from x=1 to x=[links].....
or the exe filename can be compared with a string written into the txt:
"VBrisk1.exe" = vjdial.exe 123456789
"VBrisk2.exe" = vjdial.exe 123456789
I don't know is it's possible.... however good work for all others apps that you've made !
VJBrisk will launch VJTarget.exe or VJTarget.lnk.
I could make it so that renaming VJBrisk Eg VJBrisk2.exe will launch VJTarget2.exe.
But for your TomTom setup, I suggest you just use a different folder and a different copy of VJBrisk for each app you need to run.
The text file option is possible, but may be more complicated then just renaming the .exe as I describe above.
V
ok thnx 1000
accidental presses solved
thanks again to kokotas and vijay555.
kokotas for his ROM that allows me to replace \windows\biotouch.exe without difficulty
vijay555 for his VJBrisk that allows a "new biotouch.exe" to launch a shortcut to s2u2.exe
this means slide2unlock2 will remain locked, even if there are accidental presses/brushes(due to hardware design) while my elf is in my pocket.
Hi, Vijay.
Is there any chance that you could modify this app so that it would pass the command-line parameter it was launched with on to the shortcut?
Here's what i'm trying to acchieve:
I'm using a QR Code reader called quickmark that can read a URL from the barcode, and open it in a web browser. It can ce switched to use Opera instead of IE, but it attempts to launch the executable called OperaLaunch.exe from /Windows, while my Opera9 beta exec is on the storage card, and it's called Opera9.exe
I tried to create a shortcut to it, rename it to VJTarget.lnk, and place it in /Windows along with VJBrisk renamed to "OperaLaunch.exe". When i tried to access a web page from quickmark, opera was launched, but it opened its home page, as if it didn't receive the command line parameter. Manualy running the link with URL as command line parameter worked fine, so it seems that VJBrisk doesn't pass the parameter...
[new version!] Command line support
mr_deimos - that's a really good idea. I don't know why I had never supported it before.
Can you please try this new version.
It's been years since I've made a cab, so for now, just a new .exe.
Let me know if it works ok for you.
VJBrisk 0.2 with command line support
V
Whoa, i didn't notice this version before. Thanks for making the update and sorry for the late reply.
However unfortunately it still doesn't seem to pass the command line parameters. Right now i don't have the opera9 anymore, but i tested it with netfront:
I have the vjbrisk.exe renamed to OperaLaunch.exe and vjtarget.lnk (pointing to my NetFront executable on storage card) in my /windows dir.
If i run:
Code:
\windows\vjtarget.lnk http://www.xda-developers.com
Netfront opens up, and loads the xda-dev website.
But ruunning:
Code:
\windows\operalaunch.lnk http://www.xda-developers.com
NetFronf fires up, but loads its homepage instead of this website Of course the same happens with QuickMark - it just launches NF, without loading the proper page.
vijay555 said:
mr_deimos - that's a really good idea. I don't know why I had never supported it before.
Can you please try this new version.
It's been years since I've made a cab, so for now, just a new .exe.
Let me know if it works ok for you.
VJBrisk 0.2 with command line support
V
Click to expand...
Click to collapse
it works fine, but can you make an option so that it is possible to use it multiple times in one directory =?
ex:
manila2d use on homescreen hardcoded:
-> clock.exe for timer+
-> calendar.exe for outlook calendar.
# # # #
now i want to use:
-> clock.exe for spb time
-> calendar.exe for thumbcal
so i overwrite calendar.exe + clock.exe with your tool(copy vjbrick.exe to calendar.exe + clock.exe) + make the link to vjtarget....
so how can handle your tool this for different targets ?
my idea would be that there is
1.) vjbrick.exe looks to its own exe-name and searching for a file with extension: ".vjb" . there the call is inside to the correct exefile + paramter
so for example:
1.) copy vjbrick.exe to calendar.exe + copy to windows(overwrite the orig file)
2.) generate a file calendar.vjb + inside there is: "programm files\thumbcal\thumbal.exe -day" + copy the file to \windows
manila2d->
THEREFORE: a lot of guys which are searching therefore a solution !!!!!!!!!!!
cu camel
Deprecated
Guys, VJBrisk has been updated and relaunched here
http://forum.xda-developers.com/showthread.php?p=3252253#post3252253
V
Hi All
I'm sure someone will be able to tell me what I am doing wrong
I have loaded Mortscript on to my E650 and have copied a script from this site and saved it as wireless.mscr
When I run the file from Windows explorer - it opens the file in Word on my E650 and does nothing.
What am I doing wrong?
Thanks
Uninstall Mortscript and then reinstall it. I guess it's a matter of file association in the registry.
mortscript
Thanks....have tried that and it still does not work.
Any other ideas?
You must run once the mortscript's executable to create the associations with the mscr files.
dancer_69 said:
You must run once the mortscript's executable to create the associations with the mscr files.
Click to expand...
Click to collapse
yep, ran the yellow file that was located in the \program files\mortscript folder. It gave me a message to say the file associations has been made yet the docs still open in Word !!
AAAARRRGGGGGGHHHHHHH !!!!!!!!!
Try deleting the key at HKCR\.mscr...then opening mortscript.exe Then try to open your script. It deletes the file assc.
saenzjoseph said:
Try deleting the key at HKCR\.mscr...then opening mortscript.exe Then try to open your script. It deletes the file assc.
Click to expand...
Click to collapse
Thanks...where would I find the HKCR\.mscr Does that involve editing the registry as have never done it before
Yes this is a registry key. You will need a registry editor Total commander has a free one. Then just navigate to HKey_Classes_Root(hkcr) and locate the folder .mscr open it and delete the key in there..
In order to locate and edit the registry in total commander tap the / in the top right corner of the screen right next to the .. Then double tap on the \\ then double tap on Registry then HKCR then .mscr and delete the key labeled default ,or you could just double tap on it and then in the box provided type MortScript
key
Thanks,
have done as suggested, removed the keys, have removed and reloaded Mortscript. Rebooted phone....and they still open with Word Mobile !!!
Jeez - can it be so hard !!!
When you open that key what does it say.... when you open word go to menu and options and in display....click on word files, i dont think that will work but its worth a try
saenzjoseph said:
When you open that key what does it say.... when you open word go to menu and options and in display....click on word files, i dont think that will work but its worth a try
Click to expand...
Click to collapse
Hi, Thanks for your help so far
My word seems to be an editor only - as dont have any options to select.
mort
hi
Am getting somewhere now...turns out the file was named wireless.mscr.txt so have edited it to reflect the proper extension. Will try again now
Thanks again
well that makes a lot more sense...since the actual ext that you are opening is a txt. just drop the .txt
It's probably far more simple: You script has the wrong extension. It must be .mscr, not .psw, .doc or .txt. The default Explorer hides the extension, so your file's pobably named "somescript.mscr.psw" (or *.doc) but is shown only as "somescript.mscr". Use an explorer replacement like Total Commander or Resco, or the desktop's Explorer ("My mobile device") with "Hide extension for known documents" disabled in the options, and you'll see the wrong extension.
Edit: Oops, didn't realize there's a second page...
Okay, I searched for "change icons" and got two pages of threads on how to change program icons. Some provided great information; however, none addressed my need.
I'm interested in changing only FOLDER icons, and ONLY those in QuickMenu (see attached images). The folder icons are all the same except for two, the Games folder and the Office Mobile folder. They both have a small file inside the directory that's called "icon."
I would like to change any and all directories to whatever icon I choose, or design. Is this possible? If so, how?
Thanks,
Peter
Try PExplorer - it works magic!!!
http://www.heaventools.com/
Confused???
eenbox said:
Try PExplorer - it works magic!!!
http://www.heaventools.com/
Click to expand...
Click to collapse
Thanks for the quick reply. I had a look at that program, and the web site, and I'm completely confused. It looks like a program for my PC, and not my phone. Furthermore, I don't see anything mentioned on how to change an icon.
HELP!
ADDENDUM: Furthermore, as I said in my original post, I DO NOT want to change program icons, such as exe files or dll files. From what I can tell, PExplorer is desiged to modify the inner workings of exe and dll files, etc.
I want to change the icons for a directory (folder image). These are not programs or dlls.
Thanks,
Peter
Figured it out ...
I figured it out. It took a bit of thought, and some weird manipulation using Notepad, but now I can change any QuickMenu icon to almost whatever I want, as long as there's either an EXE or DLL file that contains the icon.
Cheers!
----------------------------------
Since I don't plan to return to this thread, and since there may be someone who wants to know what I did, here's my solution:
REMEMBER: This solution ONLY works if you want to change folder icons WITHIN the QuickMenu subset of folders. It does NOT work on program icons, or for any other icons for that matter (ONLY QUICKMENU FOLDERS).
01) Find an EXE or DLL file with the icon you want. If this file contains more than one icon, then you'll need to know the icon number within the program. This can be quite difficult to determine. However, for the purpose of this discussion, I'm assuming you want to use the MAIN icon, which is usually designated as icon "0" (zero) within the EXE or DLL file. We'll go with "0" for this discussion.
02) Your phone should already have at least one (probably two) folder icon files. The two in question are usually used for the Start Menu Games directory and for the Start Menu Office Mobile directory. Using Total Commander or any similar program (File Explorer will NOT work), make your way to either the Games or Office Mobile directory within the Windows\Start Menu. Whether it's the Games folder or the Office Mobile folder, you should find a shortcut file called icon. This is the file that determines how the folder will appear within the QuickMenu structure.
03) Copy this file to your PC. Anywhere will do as long as you remember where you put it. Make a second copy of it just in case you "ruin" your attempt to change the icon using these instructions. At least you can go back to what you had before.
04) Right click on this file and select Properties. In the General tab, uncheck the Read-only box. Click on Apply.
05) Open NotePad on your PC.
06) Within NotePad, click on File and then on Open. The Open dialogue box appears. At the bottom of this dialogue box are three horizontal white boxes. The second box has the title "Files of type." The default entry is "Text documents (*.txt). Click on the down arrow and change this to "All files." Now find the icon file you copied to your PC in (3) above and open it within NotePad.
07) You will see a line of instructions at the top of the file. These instructions tell your phone where to find the icon image. What we need to do, therefore, is change the instructions to another icon image.
08) Now let's assume that you have a Start Menu folder within QuickMenu called PDF files, and you would like that folder to have the Adobe Reader icon. To do this, change the line of instructions from what it currently reads to the following:
1#AdobeReaderLE.exe,-0
09) Make sure there's a carriage return after the final "0"
10) Re-save the file. The file name must not be changed. It must always remain as "icon."
11) Now copy this new file to the actual PDF directory within your phone's Start Menu. Soft reset your phone and the PDF folder will now have the Adobe icon.
DONE!
Here are some tips:
The above example assumes that the AdobeReaderLE.exe file is in your main Windows directory. If the EXE file you want to use is anywhere else, you need to direct the instructions appropriately. Here's an example for an EXE file contained on your Storage Card, and within the Program Files directory. Let's say you installed BsB Tweaks to the Storage Card, and you want to use the main BsB icon for one of your Start Menu folders. Here's how the instructions would look:
1#\Storage Card\Program Files\BsB\Tweaks\BsB Tweaks.exe,-0
Remember to always save the file with the name "icon." Always put the revised icon file inside the directory whose appearance you want to change.
Happy Changing!
Peter
P.S. Since I can't seem to add images to a post after the fact, I will submit another post shortly with images to show you what I did with my phone.
Before and After Images
As promised, attached (below) are images to show you what I did with my phone.
Peter
thanks alot man, i have been looking for days, to find a way to do this!!!!
Add an Internet Shortcut to the Menu and give it a Custom Icon!
This Webpage Shortcut will open in the Default Browser, so if you have set UCWEB or Opera as your Default Browser, they will be opened in that Browser!
Create a Internet Page Shortcut:
1. Open the Windows NotePad
2. Fill in the Website Adres like: http://xda-developers.com
3. Count how many Characters the Url has (in this case it's 26 Characters),
then insert "xx#" infront of it. xx stands for the Number of Characters +2
(only the link, with http at the beginning and .com/ at the end so not the ""),
So in this case it will be:
28#"http://xda-developers.com/"
4. Save the File as:
File Type: All Files
code: ASCII
Filename: Xda.lnk or whatever.lnk (not .ink but .lnk (in capital: LNK))
5. Add an Icon to the Shortcut
- Add: ?\Folder Path\Folder Path2\Icon.ico
So in this case it will be:
28#"http://xda-developers.com"?\Folder Path\Folder Path2\Icon.ico
Click to expand...
Click to collapse
6. Place the .lnk file into \Windows\Start Menu\
Click to expand...
Click to collapse
Add an Icon to a Mortscript File
This will add a Path into a Shortcut to the location of the Icon!
1. Place the Mortscript file on your PC Desktop
2. Open NotePad and click on Open
3. Locate the Mortscript File and open it
4. You'll see a link like this:
48#"\Windows\Thekn Apps, System Font Changer.mscr"
5. Add an Icon Path to it like this:
48#"\Windows\Thekn Apps, System Font Changer.mscr"?\Windows\Icon.ico
6. Save it (as the Default .mscr File (Unicode))
7. Place the Icon on your Device at the System Path you've just added to the Shortcut
Click to expand...
Click to collapse
Added: Add Icon to Mortscript
Added: Add Icon to Mortscript
I changed the Registry Keys for the Softkey 1 and 2 on a Windows Mobile to start a .exe with parameters.
I changed the following key:
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\112
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\113
the Open value contains the path to the exe file plus an argument.
If i open the exe without using the softkeys it works but if i try to use the softkeys i get the following error: "The file 'xyz.exe argument' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. If the problem presists, try reinstalling or restoring the file"
If i start the exe via the File Explorer and without arguments i can start it without problems.
AFAIK you cant use args with Today\Keys\112 and 113.
You may create a link file with the args to launch your app instead. For example:
255#"\Windows\outlook.exe" -vm
put this in an ascii file and name it with an extension of .lnk
For example: "\Windows\viewmonth.lnk"
then use the lnk file name in the Open registry key
regards
josef
i use this and works for me perfectly. unzip the attached file and copy the softkeyapplet.cpl in /windows. go to settings/system/softkey and assign programs to the 2 softkeys and voila! no need for any registry changes.