Krush Posted March 24, 2009 Share Posted March 24, 2009 I've been using ini files to write out my hotkeys so the user of the script could change them based on their setup, but it doesn't appear to be working, most notably I tried to simple have the ini file write out {NUMPAD7} and !{NUMPAD7} for 2 of them and all it seems to do is take over the 1 key (non num pad key). Link to comment Share on other sites More sharing options...
CodyBarrett Posted March 24, 2009 Share Posted March 24, 2009 show some code? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Krush Posted March 24, 2009 Author Share Posted March 24, 2009 Global $mhotkey_Func1 = IniWrite(@ScriptDir&"\_Macros.ini", "Macro Hotkey", "Function 1", "{NUMPAD7}") Global $mhotkey_Func2 = IniWrite(@ScriptDir&"\_Macros.ini", "Macro Hotkey", "Function 2", "!{NUMPAD7}") ; Hotkeys HotKeySet($mhotkey_Func1, "Func1") HotKeySet($mhotkey_Func2, "Func2") This for example causes problems. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 24, 2009 Developers Share Posted March 24, 2009 Iniwrite or Iniread ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
spudw2k Posted March 24, 2009 Share Posted March 24, 2009 Iniwrite or Iniread ?I was wondering the same thing. if you're writting the values at the get go, why use an ini? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Krush Posted March 24, 2009 Author Share Posted March 24, 2009 Oh that fixes it I bet Write returns 1 if it's successful thus all my hotkeys were mapped to 1. Glad it was something small. Link to comment Share on other sites More sharing options...
CodyBarrett Posted March 24, 2009 Share Posted March 24, 2009 hotkeyset(iniread(), 'Func') [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now