Mojo Posted May 31, 2008 Share Posted May 31, 2008 Hi guys, I need some help with converting some VB to AutoIt. actually these two lines of VB code... KeyChar=CInt(HotkeyVal) And 255 KeyKey= KeyChar Xor CInt(HotkeyVal) ... I don't really understand what it does and how I'll have to write that in autoit code. Any help is highly appreciated. Thanks in advance cheers You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/ Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 31, 2008 Moderators Share Posted May 31, 2008 Hi guys, I need some help with converting some VB to AutoIt. actually these two lines of VB code... KeyChar=CInt(HotkeyVal) And 255 KeyKey= KeyChar Xor CInt(HotkeyVal) ... I don't really understand what it does and how I'll have to write that in autoit code. Any help is highly appreciated. Thanks in advance cheersUm... if you don't know what it does, why would you want to write it? Look up _IsPressed, you can only register 64 hotkeys, and that is trying to log all 255. If you are looking for a keylogger, just quit posting now. 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. Link to comment Share on other sites More sharing options...
Mojo Posted May 31, 2008 Author Share Posted May 31, 2008 Um... if you don't know what it does, why would you want to write it?Look up _IsPressed, you can only register 64 hotkeys, and that is trying to log all 255.If you are looking for a keylogger, just quit posting now.Hiwow, that's a quick reply Got up with the wrong foot today, mate?I'm trying to convert a hotkey finder script from VB to autoIt. Nothing illegal or "evil".I know what the script does, but not exactly whats happening on those two lines.I wanna learn more about COM objects and stuff, and I still had this VB script and couldn't find something like that in the forums yet,so I thought I would just try it. You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/ Link to comment Share on other sites More sharing options...
Mojo Posted May 31, 2008 Author Share Posted May 31, 2008 Anyone? IsKeyChar=CInt(HotkeyVal) And 255 equal to $KeyChar = Int($HotkeyVal) + 255in AutoIt? unfortunately, no idea how to translate this to autoit... KeyKey= KeyChar Xor CInt(HotkeyVal) You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/ Link to comment Share on other sites More sharing options...
Siao Posted May 31, 2008 Share Posted May 31, 2008 Read manual. BitAnd, BitXor. "be smart, drink your wine" Link to comment Share on other sites More sharing options...
Mojo Posted May 31, 2008 Author Share Posted May 31, 2008 Read manual. BitAnd, BitXor.AWESOME! That did the trick!Thank you very much You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/ 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