Bert Posted December 19, 2005 Posted December 19, 2005 I'm designing a script that will read a INI file to see what key will be used for a hotkeyset. $keySET = iniread("unplus.ini", "qkeys", "key", "{F6}") ;msgbox (0, "ok", $keySET) ;test to see what is sent $keyA = HotKeySet($keySET, "_F6_Func") my ini entry looks like this: [Qkeys] key = ""{F7}"" The msgbox reports this "{F7}" I tried setting the ini like this also [Qkeys] key = "{F7}" The wierd part is the hotsetkey when I run it is {" any thoughts? The Vollatran project My blog: http://www.vollysinterestingshit.com/
Moderators SmOke_N Posted December 19, 2005 Moderators Posted December 19, 2005 I'm designing a script that will read a INI file to see what key will be used for a hotkeyset. $keySET = iniread("unplus.ini", "qkeys", "key", "{F6}") ;msgbox (0, "ok", $keySET);test to see what is sent $keyA = HotKeySet($keySET, "_F6_Func") my ini entry looks like this: [Qkeys] key = ""{F7}"" The msgbox reports this "{F7}" I tried setting the ini like this also [Qkeys] key = "{F7}" The wierd part is the hotsetkey when I run it is {" any thoughts? Just out of curiousity, because I don't feel like making an ini lol. Does this work?: $keySET = iniread("unplus.ini", "qkeys", "key", "{" & "F6" & "}") ;msgbox (0, "ok", $keySET);test to see what is sent $keyA = HotKeySet($keySET, "_F6_Func") Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Moderators SmOke_N Posted December 19, 2005 Moderators Posted December 19, 2005 Nevermind, I decided to test it myself, and yes it does work... $keySET = iniread("unplus.ini", "qkeys", "key", "{" & "F6" & "}") ;msgbox (0, "ok", $keySET);test to see what is sent $keyA = HotKeySet($keySET, "_F6_Func") While 1 Sleep(1000) WEnd Func _F6_Func() MsgBox(0, "", "") EndFunc Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Bert Posted December 19, 2005 Author Posted December 19, 2005 Yours does work, however, what do I put in the INI file to make it work? I tried making {F7} be the key in the INI, while {F6} would be the default if the key was missing in the INI. I still can't get it to work The Vollatran project My blog: http://www.vollysinterestingshit.com/
Bert Posted December 19, 2005 Author Posted December 19, 2005 duh...I tried {F7}...works fine.... :"> The Vollatran project My blog: http://www.vollysinterestingshit.com/
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