AutoHotkey Community

It is currently May 27th, 2012, 10:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: U3 AutoHotKey App
PostPosted: January 3rd, 2007, 12:18 am 
Offline

Joined: October 27th, 2006, 10:01 pm
Posts: 17
AutoHotKey for U3


Info:
I got a new USB Drive with u3 technology for Christmas/New Years... What more can you want on it, but AutoHotKey to load on every computer you pop your drive into? :)


Current Version: 1.2.2.0


Install Instructions:

Download it at:
http://www.autohotkey.net/~pressingonal ... Latest.u3p

On your u3 device menu, select "add new program", "Install from computer", then navigate to AutoHotKey.u3p and install. Add your hotkeys.ahk to %DRIVE%\programs\ and you should be all set!

Notes:
  • This version automatically closes this app and whatever apps are running from your USB Drive (%DRIVE%) when disconnecting.
  • You have to put your autohotkey script in %DRIVE%\Programs\hotkeys.ahk, which will mean a lot of you will have to make that directory.
  • You can now have an autoit3 script run at start and exit. Just place appstart as %DRIVE%\Programs\appstart.au3 and appstop as %DRIVE%\Programs\appstop.au3... You're responsible to make sure these scripts run cleanly, else the start/stop process can become broken.
    NOTE: appstart.au3 and appstop.au3 are not run from the drive, but copied to the local computer and deleted after ejection of the drive... This is a safety "feature" so you can pull out the drive, but still allow appstop.au3 to run. Because of this, your latest changes to appstart/appstop won't be run until you cycle on/off your AutoHotKey program.


History:
1.2.0.0
1.2.1.0
1.2.2.0 - Now runs autoit3 script appstart.au3 and appstop.au3 on start and exit if those 2 files exist.

Enjoy! Hope you find it as useful as me!


Last edited by PressingOnAlways on January 4th, 2007, 8:08 pm, edited 4 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2007, 2:14 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
Could you provide some info on how you made AHK U3 compatible? No offense but I would prefer to compile it myself rather than downloading an exe that I have no idea what it could contain. :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2007, 7:39 pm 
Offline

Joined: October 27th, 2006, 10:01 pm
Posts: 17
hey,

There really isn't much to it.. u3p files are actually zip files with a different extension. All I did was write 2 wrapper exe files, appstart and appstop... Appstart launches autohotkey.exe %USBDRIVE%\programs\hotkeys.ahk... then when you remove the usb device, appstop first sends a WM_CLOSE to all programs that you have started from %USBDRIVE%, then 2 seconds later, it sends a kill process command so you can be packed up and all ready to go...

I'll upload the source later to my 2 wrapper exe's... besides that, there is just a u3 manifest file that tells the u3 launcher what program to run when start the program - you can view this by just changing the extension and viewing the "manifest" directory....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2007, 8:36 pm 
Offline

Joined: October 27th, 2006, 10:01 pm
Posts: 17
OK! Source all released... the latest version of the program doesn't have any compiled apps... It just calls the scripts uncompiled and i included the autohotkey.exe and autoit3.exe... You should be able to figure it out if you examine the zip file! Have fun!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2007, 9:03 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
Sweet...Thanks....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2007, 10:12 pm 
Offline

Joined: October 27th, 2006, 10:01 pm
Posts: 17
Check it out!! the ULTIMATE u3 text editor....

SciteForAHKonU3.... I'll go make another page for this :)...

http://www.autohotkey.net/~pressingonal ... HKonU3.zip


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group