Jump to content
Sign in to follow this  

I'm a retard and necro'd a topic for no good reason

Recommended Posts

How to save HotKey to file setting.ini?


HotKey1=HotKeyCode|HotKeyModificator   ???


IniWrite($Ini, "HotKey", "HotKey1", _MakeWord(67, BitOR($HOTKEYF_ALT, $HOTKEYF_CONTROL)))

Then how to read?

$HotKey1= IniRead ($Ini, 'HotKey', 'HotKey1', '1603')

Need converter 

Edited by AZJIO

Share this post

Link to post
Share on other sites

Mostly copy/pastes from Help file examples..

$sIni = @AppDataDir & "\HotKey-Test.ini"
$sData = "{F2}=SomeFunc" & @LF & "{F3}=SomeFunc" & @LF & "{F4}=Quit"

IniWriteSection($sIni, "HotKeys", $sData)

$vVar = IniReadSection($sIni, "HotKeys")

For $i = 1 To $vVar[0][0]
    HotKeySet($vVar[$i][0], $vVar[$i][1])

While 1

Func SomeFunc()
    MsgBox(0, '', @HotKeyPressed)

Func Quit()

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...