Raluvian Posted April 5, 2006 Share Posted April 5, 2006 i need to know how to get a working if fuction deplicting like shift +ctrl+ *. so it opens this program and makes it the top window... any help? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 5, 2006 Moderators Share Posted April 5, 2006 i need to know how to get a working if fuction deplicting like shift +ctrl+ *. so it opens this program and makes it the top window... any help?Could you just use WinSetOnTop()? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
pacman1176 Posted April 6, 2006 Share Posted April 6, 2006 This will trigger a function function1() if shift+ctr+* is pressed HotKeySet("^+*", "TogglePause"); ^ = control, + = shift While 1 Sleep(100) WEnd Func function1() run("C:\My Game.exe") EndFunc Be sure to change your C:\My Game.exe to the path of the application you are running. If you run it, it should by default be the top most window. If you want it Always On Top then go with Smoke's idea also. Link to comment Share on other sites More sharing options...
Raluvian Posted April 15, 2006 Author Share Posted April 15, 2006 (edited) i get a red error in the debug box saying C:\Documents and Settings\Brad\Desktop\Script.au3 (14) : ==> Unknown function name.: HotKeySet("^+*", "TogglePause"); ^ = control, + = shift Edited April 15, 2006 by Raluvian Link to comment Share on other sites More sharing options...
MHz Posted April 15, 2006 Share Posted April 15, 2006 pacman1176 must have been tired when posting Try this update HotKeySet("^+*", "function1"); ^ = control, + = shift While 1 Sleep(100) WEnd Func function1() WinSetOnTop('title', 'text', 1) EndFunc Link to comment Share on other sites More sharing options...
Raluvian Posted April 15, 2006 Author Share Posted April 15, 2006 cool thanks. ill tell you what i am using this for. when ever i pklay full screen games it freezes. and i try to use the windows cntr alt delete. but it sucks major balls. and i use enditall. and couples with this macro it is sweet... thanks again. 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