help ceating a console menu with arrow keys. - C, C++, C# and Other Windows Phone Development

help ceating a console menu with arrow keys
I have tried using both c & c++
need help makeing batch selectable menu. for cmd
like...
select option 1
select option 2
select option 3
and want to be able to select them with my arrow keys
I was looking in to the choice command but still don't see how to make my menu selectable with the arrow keys.
http://users.cybercity.dk/~bse26236/...p/CHOICE_E.HTM
my current set up uses numbers instead.
batch code
--------------
#ECHO off
cls
:menu1
cls
echo " Welcome to My Menu "
echo " Please select your command! "
echo listcommands is 1
echo internet explorer is 2
echo
set /P _commandselection=1-2:
if "%_commandselection%"=="1" goto listcommands
if "%_commandselection%"=="2" goto internet explorer
:listcommands
start "listcommands " listcommands
pause
goto menu1
:internet explorer
start "internet explorer" internet explorer
pause
goto menu1
-------------------------------------
can anyone help?
this video shows what im trying to make.
http://www.youtube.com/watch?v=vQh3FHS2puA
he's using some thing called ckey.exe I have been serching for it but I cant find it.
im trying to bulid a RTE Program for halo if you know what that means.
and I just need this for the menu layout of the program.
I already have everything else.
but I don't come acrosst to many people who program In the ancient lang of dos and batch and c
everyone now days is using c++ or c# or vb.
hope someone can help?
[size=1]Edited by jackrabbit72380 on Nov 1, 2013 at 07:24 PM[/size=1]

Related

[Guide]Data Recovery -Internal [Note 2 or Any Android]

Hello here is a guide to Recover Deleted files from internal memory From Any android Phone
You Need
1.Rooted Android phone ( In my case i used Note 2 N7105 )
2.Install busybox ( Note : Install in /system/bin NOT at system/xbin )
3.Drivers Installed on your computer
4.Download The Recovery Tool.rar [ https://www.box.com/s/zw0sfprtlx4dqysd018o ]
5. Download Recuva [ http://www.piriform.com/recuva/download ]. This is the Software going to recover your file , or you can use your favourite Data recovery software . But i suggest Recuva
Steps :
1. Take your rooted phone . Go to Setting->Devoloper Option -> Tick on Stay awake and USB debugging
2.Connect your Phone to the Computer , Let the driver Install .
3.Extract Recovery Tool.rar to c:/ ( You will Find two folder AB and Cygwin )
4.Click Start -> Run ,
Type " CMD " Press Enter
5.Dos Window will open up Now Type " cd c:\ab\ " Press Enter
6. Type " adb devices " Press Enter
** Make sure it returning out Some numbers (IMEI) under list of devices
7.Type " adb Shell mount " Press Enter
Now this is something important , After the command adb shell mount it will give a long List you need to fine "dev/block/mmcblkop"xx" /data(or user data "
Note : The xx can be any number
In N7105 its " mmcblk0p16 " is data Partition .
The last two number (xx) will change from mobile to mobile . Just note the partition name . In my case its " mmcblk0p16 "
8.Close the CMD window . Go to My Computer->C:/->Cygwin->Open Cygwin Terminal
9.Type " export PATH="/cygdrive/c/ab":$PATH " Press Enter
10.Type " adb forward tcp:5555 tcp:5555 " Press Enter
11.Type " adb shell " Press Enter
12.Type " su " Press Enter
13.Grant Superuser Right on your Phone
14.Type " /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p16 " Press Enter
15.Minimize the window , Open another cygwin Terminal i.e. My Computer->C:/->Cygwin->Open Cygwin Terminal
16.Type " export PATH="/cygdrive/c/ab":$PATH " Press Enter
17.Type " adb forward tcp:5555 tcp:5555 " Press Enter
18.Type " cd /aa " Press Enter
19.Type " nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p16.raw " Press Enter
20. Now let it Run this will take long time for me it took me One hour to complete
21.After it Compltes Click start->Run Type " cmd " Press Enter
22. Type " cd c:\cygwin\aa\ " Press Enter
23.Type " VhdTool.exe /convert mmcblk0p16.raw " Press Enter
24.Now Close Everything .. Right Click My Comuter->Manage
25.Now Select Storage-->Disk Management.
26.In the menu select Action-->Attach VHD.
27.For Location enter " c:\cygwin\aa\mmcblk0p16.raw " and select the OK button.
28.Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select Initialize Disk.
29.Select the GPT (GUID Partition Table) radio button and select the OK button.
30.Right-click on the Unallocated space and select New Simple Volume...
31.In the Wizard select Next>, leave the default for the volume size, select Next>, select a drive letter (e.g. K), select Next>, MAKE SURE to select
the 'Do not format this volume' radio button, select Next>, select Finish.
32.A box will pop up asking you to format the drive. You DO NOT want to format the drive at this time.
33.Right-click on the RAW space and select Format... MAKE SURE to change the File system to FAT32. Set the Allocation unit size dropdown to 'Default.' MAKE SURE that the Perform a quick format checkbox is CHECKED. You do not want to overwrite the entire new drive with all zeroes (0's) and destroy your data. Quick Format means that it will only attempt to destroy the index for the drive by establishing a new index. Without this box checked the Windows operating system will write zeroes (0's) across the entire volume, potentially destroying your data. Select the OK button.
34.A box will pop up saying that Formatting this volume will erase all data on it. That would be doubly true if you actually didn't check the 'Perform a quick format' checkbox. Double check that you actually did check the box and select the OK button.
35.Open the Piriform Recuva application. In the wizard select the 'Next >' button. Select the 'Other' radio button and select Next >. Select the 'In a specific location' radio button and enter: k:\ (assuming K is the drive letter you chose...) Select the Next > button. Select the Enable Deep Scan checkbox.
36.The application may take about an hour to do the 'Deep Scan.'
37.Once the application has returned its results you can choose which files to recover using the checkboxes. Select the 'Recover...' button and choose the location to which you wish to output your files.
No need to Thank me , This is not my work , i just gathered information and some Copy/Paste . Have a nice day
Note : Im not Responsible if you brick your phone . I did this and it worked for me . So im Sharing with you guys .
THANKS A LOT WARTICKLER , Its his work
Galaxy Nexus Users can look at his thread for - > http://forum.xda-developers.com/show....php?t=1994705
Any Question please ask here Dont PM me i never really use xda Often or you can ask me on facebook.com/capt.nizam . I will try my best to answer All
If you have used external SD Card as the location for saving raw image, this guide would have been less scary
Good guide though
Thanks but since Jelly Bean I have resigned myself to the fact that there is no practical way to recover data from the internal storage (the lack of a recycle bin is one of the very few Android's big flaws) so I keep my data on the 64GB external one. I reserve the internal storage only for whatsapp and viber photo and video, Navigon maps (the whole European set), apps and the few other things which are always kept there (like SMS messages, e-mails, Dropbox offline files etc etc) . Doing so I have less than 3GB free on the internal memory so I would be keeping my data on the external SD card anyway...
Im stuck on this step, I am looking over the long list cant find anything about dev/block/mmcblkop"xx" any help? Am i ment to use a command from the long list of commands to get it?
http://forum.xda-developers.com/show....php?t=2216143
Does the procedure posted by Capt.Nizam work for the tablet with forgotten password? Since it has a password on, the device will not mount on a PC or Mac. And because of Samsung encryption recovery through regular means might not be an option. How can I by pass the password and get into the flash chip to recover the data.
I posted the following on a forum with no response; does anyone have a better solution?
For the past few days I have surfed the web looking for a solution to recover my data from the Samsung Tablet 10.1 Note. I forgot the password I had and cannot loose the data by doing a hard reset/factory reset. There has to be a way to get back into the flash chip and recover data; even if it means physically opening up the tablet and removing the motherboard.
Since the password encrypts the data, the tablet shows up on a pc or mac when connected with a USB cable but shows no data.
Please, is there anyone who knows a way around?
Thank you in advance.
Shuja
Hi, 0tt0m#n, you can try Android Data Recovery. It is a powerful and useful recovery software originally developed to retrieve lost data from Android SD card. All lost data or deleted files, including photos, songs, videos and other data files can be restored as you want.
Can you mirror these files somewhere? You're box account is out of bandwidth..
I know this is an older thread but this method worked perfectly for me once before on a friends device. I need to do it again. Can you or someone else re-host the files?
Thanks in advance
I can't find the Cygwin Terminal in the Cygwin folder. There is only a Cygwin-Terminal.ico file. Somebody can help me?

Help getting Android as default boot

Hi, I finally made the leap and installed CM9 on my Touchpad. Problem is it always defaults to the WebOS installation.
Anyway to fix this? I do not have PreWare or anything installed on WebOS.
Thanks.
maybe you can help me in my problem in these forum
http://forum.xda-developers.com/show....php?t=1850155
From another site:
This step-by-step is how I did it. **Warning... I'm not responsible for what you do. This is just a guide on what I did... blah blah**
1. Download File Expert and Astro File Manager from the Market -
2. Open File expert.
3. Press Menu > File Explorer Settings > Check Root Explorer and Search all files
4. Back out to File Expert home screen.
5. Select My Files > Phone Internal Storage > Boot
6. Press Menu > More > Mount > Mount as Read Write
7. Scroll down and find the file named "moboot.default."
8. Long Press and Select Permission
9. Check All --> Read, Write and Exec. then apply
10. Long Press "moboot.default" again.
11. Select more > Open With > Text Editor (Astro Text Editor)
12. Erase the text (Mine was Cyanogenmod) and change to whichever moboot selection you want (AOKP, Clockworkmod, Webos).
13. Press Menu > Save
14. Exit and you should be good
Install preware with Webos Quickinstall here is a link https://www.box.com/shared/45151ecc89fd2b4fce2f . After you have run quickinstall and installed preware you can install an app called Cyboot.
This article here explains what you need to do http://liliputing.com/2011/10/how-to...-or-webos.html .
It really is not difficult and should only take a couple of minutes.
star's solution, in my opinion, is the easiest one. With Cyboot, you not only get to choose the order of booting, but you can also set the time to first boot. I have mine set at 15 seconds, which gives me enough time to choose a different booting order, if I so wish.
chicle_11 and star are right cyboot is easily the best/simplest route.
Are you doing this in Android or WebOS?

[GUIDE] Using CIFS on Fire Nexus ROM and CM-12.1

General
- This is a guide which describes what is required to have working CIFS shares.
- All information and steps are mandatory
Prerequisites for Installation
- Download SuperSU-2.65 Stable
- Download Patched version of CIFSManager v1.5a
Setting up Prerequisites
1. Disable Privacy Guard (Root Access) in Developer Settings
2. Install SuperSU 2.65 Stable Version
3. Reboot
4. Install the patched version of CIFSManager 1.5a
Setting Up CIFSManager
1. Open CIFSManager and click on the 3 vertical dots in the bottom right hand corner
2. Click Settings
3. Click on Mount point prefix
4. In the dialog box enter the following:
5. Press <OK> on the dialog box
6. Tick the checkbox against the option "Load cifs module"
7. Tick the checkbox against the option "Load via insmod"
8. Click on the "Path to cifs.ko[:<modpath>]* option.
9. In the dialog box change the text to be the following:
10. Press <OK> on the dialog box
11. Press the back button to return to the main screen
12. That's the hard bit done.
13. Reboot
Mounting a shared folder
1. In a file manager on your tablet with root access
2. Browse to /data/media/0 and create a folder called "shares"
3. Browse to the newly created shares folder
4. Now create a folder for your new share, I'll use "music" as an example
5. Now go back to CIFSManager and click on the 3 vertical dots in the bottom right hand corner
6. Select the "Add New Share..." option
7. In the Share Path enter <ip address>/<share name>, for example
8. Now click on the "Username" field
9. The "Mount Point" field above should have auto-populated with
10. Enter the "Username" and "Password"
11. In the "Options" field enter the following text:
12. Click the "Save" button, you will then have returned to the main screen
13. Finally click on the share to activate it.
Thanks
- #Chainfire for SuperSU
- #f3d0r for CIFSManager
- #DualJoe for patching CIFSManager
- #bseos and #glimmling - Fix for empty app-mounted directories
Wicked!!! Your the Man! Cant wait to try it!!
Somebody want to fill us newbs in on what this does and the benefits?
With cifs you can mount any shares exposed to your network by the Windows fileserver you have at home, for example.
http://lmgtfy.com/?q=cifs
I just tried this on my Fire 7 with a fresh install of CM but I cannot play any of my music files. I can use the file manager to copy the file to my internal storage but when I try to play them directly from the dir the music app says "IO Error" and VLC simply says "<filename> cannot be played!". Any suggestions?
I have the same issue, I looking into it but don't have a diagnosis yet
Awesome. Thanks for looking into it!
using a firetablet 7 inch, nexus rom, fresh install after first section seems to run ok I get stumped at create /data/media/0/shares.
Using file explorer I can't find /data/media/0 ??
Is there an app like foldermount that does this more automagically ?? or maybe a script file that someone could write....RootJunky. ??
PLZ
Thanks, that does it - it would be nice to have an updated apk that search-inserts these modules on its own though... it's not like typing on the android screen keyboard is l lot of fun :-\ and I only stumbled upon the solution after some searching around.

[GUIDE][WIN][HowTo] Create a Logcat via Eclipse using Windows and Wifi

I decided to create this thread to show you how easy it is to submit a shorter logcat to the devs and save their time by searching huge logcats full of unimportant information
Im Using Eclipse because auf the better usability and readability of the logcats because there are coloured and you can better setup the filters ... in my point of view
Download Android/Eclipse
Quote:
Download Android SDK and Eclipse here I'm using the 32Bit edition (maybe something depending on Android will not work if you are using 64Bit, but try it and maybe it works )
Extract Eclipse to your desired directory (I'm using "D:\dev\eclipse", but do as you wanna do)
Extract sdk ("D:\dev\sdk") and "SDK Manager.exe" ("D:\dev")
Create a Desktop or Startmenu Shortcut of eclipse.exe if you wanna to
Setup Eclipse
Quote:
Run eclipse.exe
You need to Select a workspace: (I'm using "D:\dev\workspace", but it doesnt matters), Tick "Use this as the default and do not ask again" to save time on the next starts
Add platform-tools to your "path"
Quote:
Press [Windows]+[R], type SETX PATH "%PATH;D:\dev\sdk\platform-tools"(depending on your directory), press [Enter]
Your should be able now to reach adb by simply type "adb" into Run or Cmd Window
Close the Android IDE Welcome Window
Enable LogCat
Quote:
In the topbar select "Window", move to "Show View and select "Other"
Open "Android", select "LogCat" and then "OK"
LogCat view is created at the bottom window, you can maximise it by doubleclick on LogCat
Setup Phone
Quote:
Enable Developer Options
In Developer Options enable "Android debugging" and "ADB over network" and Remember the IP shown there
Connect
Quote:
Press [Windows]+[R]
Type "adb connect 192.168.178.59:5555" and [Enter] This must be the IP of your phone remember a few steps before
If the log not automatically appears you need to add the "Device View" to Eclipse, the same way you added "LogCat" "Window">"Show View">"Other" ... "Android">"Devices" this View helps you to select your device for ADB
If Eclipse is still open: Something should happen in the LogCat view (Colourfull )
You can now see the messages provided by the phone in realtime, using mouseover will tell you the features of the logcat view to save/clear/filter the log
enlarge
enlarge
hope I could help
Dont forget to disable network ADB on phone after this
Filter
here i wanna help you to set up some filters to avoid annoying messages like dalvikvm
use the filter line
with java regular expressions
JAVA EXPRESSIONS
tried to make this as easy as possible. correct me please if something is wrong
enlarge
The easiest way is to show an example
the expression means: show all lines except of:tag starts with "Choreographer"
or tag starts with "Trace"
or tag starts with "Sensor"
or tag starts with "dalvikvm
message starts with "set_t"
reserved
Excellent! Thanks a lot.
Sent from my GT-I9070
thanks, if there's anything you wanna see more please tell me

Phone not developer unlocked after trying several times

I have used the method posted in this forum (not using chevron) and my phone doesn't get developer unlocked. If this is because I'm running version 8107
It shouldn't be. I also have a 8107, and it's interop unlocked. MFG method worked flawlessly. What's the error message you get when you try to deploy XAPs? What are you using for app deployment? Have you installed the latest Windows Phone SDK (as far as I know, it's necessary to be installed - someone correct me if I'm wrong)?
cant conect phone not booted or not developer unlock
and using application deployment
but its not getting unlock I tried verifying and it isnt getting unlock
Ok, just for clarification, the site has a couple of different ways to unlock your phone and you haven't specified which one you are using.
That being said, I have the lastest update and ever time I've flashed my phone, this works.
And no, you don't need anything other thant MFG installed on your phone to developer unlock it.
I have to unlock it becasue that is the only way I can get wifi sharing to appear.
From: http://forum.xda-developers.com/showthread.php?t=974874
How to Un-Lock your Phone without Chevron 7
You can unlock the phone by using the MFG registry editor.
1.Open the MFG app and use the password to open it. If you don't know it's (appmfg#*#)
2.Go to Engineer Menu -> Other Settings -> Edit Registry
3.Set your ROOT PATH to "HKEY_LOCAL_MACHINE"
4.Set your input path to "\Comm\Security\LVMod"
5.Set your input key to "DeveloperUnlockState" and set to DWORD
6.Hit Query. Output result should return a "0" or a random long number. If it does continue.
7.Set your input data box to "1" and hit SET. Output result should be 1
How To Keep Your Phone Unlocked
You can keep your phone unlocked and prevent Zune from re-locking it.1.Open the MFG app and use the password to open it. If you don't know it's (appmfg#*#)
2.Go to Engineer Menu -> Other Settings -> Edit Registry
3.Set your ROOT PATH to "HKEY_LOCAL_MACHINE"
4.Set your input path to "\Software\Microsoft\DeviceReg"
5.Set your input key to "PortalUrlProd" and set to DWORD
6.Hit Query. Output result should return data. If it does continue.
7.Keep your input data box empty and hit SET. Output result should be 0
8.Keep this screen open and continue to Part 2
***
when you do the above, do the outputs match what's writen?
You can unlock the phone by using the MFG registry editor.
1.Open the MFG app and use the password to open it. If you don't know it's (appmfg#*#)
2.Go to Engineer Menu -> Other Settings -> Edit Registry
3.Set your ROOT PATH to "HKEY_LOCAL_MACHINE"
4.Set your input path to "\Comm\Security\LVMod"
5.Set your input key to "DeveloperUnlockState" and set to DWORD
6.Hit Query. Output result should return a "0" or a random long number. If it does continue. (randon long number for me )
7.Set your input data box to "1" and hit SET. Output result should be 1 (1 for me )
How To Keep Your Phone Unlocked
You can keep your phone unlocked and prevent Zune from re-locking it.1.Open the MFG app and use the password to open it. If you don't know it's (appmfg#*#)
2.Go to Engineer Menu -> Other Settings -> Edit Registry
3.Set your ROOT PATH to "HKEY_LOCAL_MACHINE"
4.Set your input path to "\Software\Microsoft\DeviceReg"
5.Set your input key to "PortalUrlProd" and set to DWORD
6.Hit Query. Output result should return data. If it does continue. (here it ouputs 0 for me )
7.Keep your input data box empty and hit SET. Output result should be 0 (of course it returns 0 again)
8.Keep this screen open and continue to Part 2
then what is wrong?
Also, how are you or what is telling you it isn't unlocked?
cant side load apps because is says that isn't developer unlocked
This is wrong. First query should return a number different from zero. If you switch to STRING, it should display the actual link to MS. So, I guess that you misspelled the registry key/path.
Don't forget to clear the PortalUrlInt key - without it it won't work.
I have done this several times checking everything is alright and I always get the same result

Categories

Resources