Page 1 of 1

INI file shortcut designer

Posted: Sat Mar 13, 2010 1:09 pm
by Fangbeast
I love crap projects, they take all of my time and do bugger all. Oh, okay, I lied, some of my own crap is useful to me.

This one allows me to visually design shortcuts in a list and dump them to an INI file under the "Keyboard ShortCuts" heading. I got tired of hardwiring multiple routines all the time.

1 You can add, edit and delete shortcuts in the list.

2 You can drag and drop shortcuts in the list to rearrange them.

3. You can load all keyboard shortcuts from any INI file from the group "Keyboard Shortcuts", if it exists.

4. You can save the changed keyboard shortcuts back to the original ini file they were read from, including changed key text.

5. if you try to save a new or edited shortcut and the key has already been used, you will be notified.

*****WARNING***** Because there is no PB function to edit and save INI file text (IniFileText=IniFileValue) and I have provided that function, the entire group is DESTROYED before being rewritten. That's the only way I could think of doing this.

Full source code project.

http://members.westnet.com.au/bangfeast ... rtCuts.rar

http://members.westnet.com.au/bangfeast ... Cutter.png

;================================================
; Copyright: Peritek Visions, 2010.
;
; License: Freeware. Do what you want with it EXCEPT SELL IT which is expressly forbidden, acknowldge the source
; please. License for the expat XML parser is in the distribution directory. 'Expat XML parser license.txt'
;
; Code format: Purebasic, v4.41 X86 source code project.
;
; Dependancies: None.
;
; Graphics: All graphics came from the OpenClipart foundation.
;
; InfraTec for his Listicon drag and drop code from the forum
;
; Notes: I've tried to comment wherever I could but there are just so many hours in the day. There are a few things
; not 100% finished but that will come whenever I have time as there are other pressing personal issues
; facing me right now. The code is free so don't wait for me to finish!!!
;
; Addendum: Before you complain that this program has destroyed something or did something you didn't like, have the
; decency and intelligence to actually read through the code and NOT TEST IT on LIVE DATA but copies. It is
; NOT MY JOB to rescue you from your own laziness or obdurate stupidity.

Re: INI file shortcut designer

Posted: Sun Mar 14, 2010 12:31 am
by Vera
Dear Fangbeast,

thank you for sharing :)

sorry I had no time to test it yet, but I wanted to post to ask you the favor to shorten that extremly long ;=================== .... line that makes this thread even wider than 1024.

thanks ~ Vera

Re: INI file shortcut designer

Posted: Sun Mar 14, 2010 11:36 am
by Fangbeast
Vera wrote:Dear Fangbeast,

thank you for sharing :)

sorry I had no time to test it yet, but I wanted to post to ask you the favor to shorten that extremly long ;=================== .... line that makes this thread even wider than 1024.

thanks ~ Vera
Oh, okay, just for you.

P.s. I had a huge bug in this code as I made a wrong assumption about the behaviour of one of the comands.

Also, This code doesn't assume that you are saving the changed shortcuts back to the same file you read them from so asks you for an INI file when you save.

So, give me a moment to upload the fixed package tonight.


***Edit*** Fixed and uploaded. Link in first post.