Jump to content

[Solved] CTRL+ALT+5


Recommended Posts

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]
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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]
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...