Jump to content

Need a little help here, please


Recommended Posts

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

  • Moderators

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

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.

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

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.

Hi

wow, 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

Anyone?

Is

KeyChar=CInt(HotkeyVal) And 255

equal to

$KeyChar = Int($HotkeyVal) + 255
in 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...