Sign in to follow this  
Followers 0
Mojo

Need a little help here, please

6 posts in this topic

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/

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
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/

Share this post


Link to post
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/

Share this post


Link to post
Share on other sites

Read manual. BitAnd, BitXor.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
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
Sign in to follow this  
Followers 0