Jump to content

Recommended Posts

Posted

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?

  • Moderators
Posted

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.

Posted

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.

  • 2 weeks later...
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
Posted

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...