AZJIO 157 Posted September 21, 2010 (edited) How to save HotKey to file setting.ini? [HotKey] HotKey1=HotKeyCode|HotKeyModificator ??? or IniWrite($Ini, "HotKey", "HotKey1", _MakeWord(67, BitOR($HOTKEYF_ALT, $HOTKEYF_CONTROL))) Then how to read? $HotKey1= IniRead ($Ini, 'HotKey', 'HotKey1', '1603') Need converter Edited September 21, 2010 by AZJIO My other projects or all Share this post Link to post Share on other sites
somdcomputerguy 103 Posted September 21, 2010 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]) Next While 1 Sleep(100) WEnd Func SomeFunc() MsgBox(0, '', @HotKeyPressed) EndFunc Func Quit() Exit EndFunc - 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
Mat 376 Posted September 21, 2010 (edited) I did the same thing here: http://www.autoitscript.com/forum/index.php?showtopic=107965 Edit: Without RegisterHotkey Edited September 21, 2010 by Mat AutoIt Project Listing Share this post Link to post Share on other sites