goldenix Posted May 5, 2010 Share Posted May 5, 2010 (edited) 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 May 5, 2010 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 More sharing options...
omikron48 Posted May 5, 2010 Share Posted May 5, 2010 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 More sharing options...
goldenix Posted May 5, 2010 Author Share Posted May 5, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now