Jump to content
Sign in to follow this  
Bridawg

simple script giving ntdll.dll crash

Recommended Posts

Bridawg

Hi,

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()
    Send("{CTRLDOWN}c{CTRLUP}")
    $firstVal=_ClipBoard_GetData()
    Msgbox(0, $firstVal, "")
    Return
EndFunc

While 1
    Sleep(10)
WEnd

The Windows Error Signature is:

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

ModVer: 5.1.2600.3520 Offset: 00002caf

any ideas?

Thanks,

Brian

Share this post


Link to post
Share on other sites
Zedna

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
Bridawg

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.