Sign in to follow this  
Followers 0
Raluvian

Macro For Program

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



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()?

[center]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.[/center]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Raluvian

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

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  
Followers 0