You are here

Portable App Development

Discuss portable app development and modification of existing apps.

Developers: Code Snippets

Submitted by wraithdu on December 3, 2009 - 11:54pm

Here's my sample AHK low level mouse hook. The comments should be pretty self-explanatory. This is the hook I'm hoping to implement in eXpresso.

#Persistent
#NoEnv
SetBatchLines -1
ListLines off

pMouseHook := RegisterCallback("MouseHookProc", "", 3) ; LowLevelMouseProc
hMouseHook := DllCall("SetWindowsHookEx", "int", 14, "uint", pMouseHook, "uint", DllCall("GetModuleHandle", "uint", 0), "uint", 0) ; set the WH_MOUSE_LL hook
DblClick := DllCall("GetDoubleClickTime") ; gets system dbl click time
DllCall("SetDoubleClickTime", "uint", 30) ; set a very low system dbl click time

unicode 16 LE format, settings files ?

Submitted by Mark Sikkema on December 2, 2009 - 3:16pm

I just came across some info about utf-16 Little-endian format, which is used by Winamp for it's settings files.

I found out that probably my launcher won't support any non latin text in the settings files, cause it would be 16 bit characters !

For now I had the launcher assume there would always be a null byte after each character !

Is there anybody who has more experience with utf-16 settings files ?

What will drive letters be like in other scripts as Latin ???

System32 and Fonts Directories

Submitted by dougakins on December 2, 2009 - 9:24am

I have an old program that I am trying to make portable for personal use. The program installs some files to the system32 directory, the fonts directory and puts an ini in the windows folder.

This is my first time creating a portable app, so forgive me if this is posted somewhere obvious, but how can you handle these issues - how can you redirect the launcher so that it looks for those sys32 files and fonts in the portable directory and not on the computer?

Google and their Chrome

ChaDonSom's picture
Submitted by ChaDonSom on November 29, 2009 - 4:50pm

Is there a certain reason why I cannot search with Google from Google Chrome? I have to use Ask to search things. Google doesn't work with any of my portable browsers but Firefox. With Chrome and Opera, the browser, after my clicking "Search," says it is "sending request" and sits there forever, or until I click on some link or type in a different web address. I would really like to use Chrome, but cannot without using it's search engine (I guess I'm just picky like that). Would it help if I was to tell you any specifics?

ATTN Wraithdu (EraserDrop hacking)

BuddhaChu's picture
Submitted by BuddhaChu on November 28, 2009 - 12:50pm

Hack: I hacked some code into the EraserDrop v2.1 source to include the ability to wipe the freespace of network devices. This only works if the UNC share using the device name (or even better the IP number and share name) are mapped to a drive letter in Windows. (ex: \\MyNAS\MyShare or \\192.169.1.101\MyShare mapped to z:)

Patch (diff) from the 2.1.0.0 source using WinMergePortable:

919a920
> 	; and get network storage devices mapped to a drive letter
921a923
> 	Local $drivesnet = DriveGetDrive("NETWORK")
927a930,934
> 		Next
> 	EndIf

Using Chris's Launcher

Submitted by LinkSlayer64 on November 24, 2009 - 4:51pm

Hi I've been wondering if using Chris's launcher is still not supported, I'd like to put out some launchers and well, it's the easiest way for me to do it since I'd rather focus on learning another programming language right now (working on a game heh, I'm doing C# but I KNOW I should be doing C++ for portability and abscence of any needed .NET or any other dependencies that you need to install...it's just easier to use XNA studio, and I don't have a lot of time to program... I'm CRAZY!)

Anyway as I was saying, yeah, if I use Chris's launcher will it be kept from going official?

Pages