Jump to content
Sign in to follow this  

simple script giving ntdll.dll crash

Recommended Posts



I'm just starting out and I've got a simple script which crashes every time i activate the hotkey

#Include <Clipboard.au3>
HotKeySet("a", "addLine")

Func addLine()
    Msgbox(0, $firstVal, "")

While 1

The Windows Error Signature is:

AppName: autoit3.exe AppVer: ModName: ntdll.dll

ModVer: 5.1.2600.3520 Offset: 00002caf

any ideas?



Share this post

Link to post
Share on other sites

Try: Send("^c")

and also try to add some sleep between Ctrl+C and getting data from clipboard

EDIT: Also consider that Send() send it to active window so maybe it would be better/safer to use ControlSend() instead

Edited by Zedna

Share this post

Link to post
Share on other sites

Guys thankyou very much for your help - I'll look into those commands as improvements - I'm still learning after defecting from a "similar product"

I didn't reply sooner because I didn't get email notifications.

Turns out I failed at the first rule of tech support - after rebooting it's behaving as I would expect.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.