Jump to content
Sign in to follow this  
goldenix

[Solved] CTRL+ALT+5

Recommended Posts

goldenix

The application has its own hotkeys, but if I try to use other hotkeys like F1,F2 I have no problems at all.

I tried following & it ether does not work at all or sometimes it works if I keep spamming the F6 Button or hold it down for several seconds.

Is autoit bugged?

HotKeySet("{F6}", "_swap_interface")


Func _swap_interface()

    Send('^!5') ;CTRL+ALT+5

    Send('{LCTRL}{LALT}5') ;CTRL+ALT+5

    Send('{LCTRL}')
    Send('{LALT}')
    Send('5')

    ControlSend("[CLASS:D3D Window]", "", "", '{LCTRL}{LALT}5')

    ConsoleWrite(1 & ' ')

EndFunc


While 1
    Sleep(100)
WEnd
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites
omikron48

Try adjusting the keydown delay to allow the program more time to sense the key press.

Opt("SendKeyDownDelay", 50)

It has been my experience that there are times where the send key press is too fast for a program to correctly respond to it, such as when I tried making a turbo button hotkey.

Share this post


Link to post
Share on other sites
goldenix

Oo I see, delay 100 fine.

Thanx.


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

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.