Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

This is really simple and I don't know why its not working.


  • Please log in to reply
4 replies to this topic
epsilon
  • Members
  • 4 posts
  • Last active: Oct 29 2015 04:03 AM
  • Joined: 28 Oct 2015

I'm trying to setup a hotkey for the windows key for use on my steam controller because I find it basically useless without one, well getting into it I have poured over the documentation for hours and I can't see what I'm doing wrong

I'm trying to use Control + M for the Hotkey and the output to be the windows key

I have used the following commands although its probably not all of them.

 


^M:: SendEvent #

^M:: Send #

^M:: SendInput #

 

^M:: SendPlay #

 

^M:: SendPlay {LWin}

 

^M:: SendInput {LWin}

 

^M:: Send {LWin}

 

^M:: SendEvent {LWin}

I have tried testing that I am applying the changes by change the {LWin} or # with text and for those commands that send text like Send Event, Send and Send Input the plain text came out as extected I have basically given up for a few days and hope to have someone explain why I am such a baddy.

 

 



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

On windows 8.1, it seems you need to run your script as an administrator to get it to perfectly copy an LWin.

 

It does appear, however, that you can use this script, and during the sleep period, other keys can be pressed plainly and it'll act like you pressed Win+That Key.

 

m:: ; requires administrator access to get a sole LWin event
Tooltip down
SendEvent {LWin down}
Sleep 500
Tooltip up
SendEvent {LWin up}
return

 

The final code i used was this and the "n" key was working to bring up my Metro start screen, but only if my script was launched as an administrator. (Right click it in Windows Explorer or your desktop, select "Run as Administrator".)

 

n::Send {LWin}



epsilon
  • Members
  • 4 posts
  • Last active: Oct 29 2015 04:03 AM
  • Joined: 28 Oct 2015

On windows 8.1, it seems you need to run your script as an administrator to get it to perfectly copy an LWin.

 

It does appear, however, that you can use this script, and during the sleep period, other keys can be pressed plainly and it'll act like you pressed Win+That Key.

m:: ; requires administrator access to get a sole LWin event
Tooltip down
SendEvent {LWin down}
Sleep 500
Tooltip up
SendEvent {LWin up}
return

The final code i used was this and the "n" key was working to bring up my Metro start screen, but only if my script was launched as an administrator. (Right click it in Windows Explorer or your desktop, select "Run as Administrator".)

 

n::Send {LWin}

Well I'm using windows 10 got the Win key working and I can even get it to combine with things like Win + R, but what I was actually trying to do was do Win & + for zooming in on windows for the steam controller if I use 
 

^F12::
	KeyWait Control
	SendEvent, {LWin Down}{LWin Up}
Return

I can get it to combine with other things apart from + I haven't actually tried - but yeah its for use with the magnifier so I can use my controller from across the room to do fine controls, and dead small text, So basically want I want to do is this.

 

^F12::
	KeyWait Control
	Send, {LWin Down}
	Sleep 100
	SendEvent {+}
	Send, {LWin Up}
Return

But it just types out +, I also tried just.

 

^F12::
	Send {LWin Down}{+}
	Sleep 50
	Send, {LWin Up}
Return

And many others but I have to have a bath now before I go to work.



epsilon
  • Members
  • 4 posts
  • Last active: Oct 29 2015 04:03 AM
  • Joined: 28 Oct 2015

What ever its working with 

^F12::
	KeyWait Control
	SendEvent {LWin Down}{+}
	SendEvent {LWin Up}
Return

^Enter::
	KeyWait Control
	SendEvent {LWin Down}{-}
	SendEvent {LWin Up}
Return

I swear I had have arranged it like that before but really I don't care any more, it works and that's fine. This is exactly what I need to be able to setup my steam controller to be able to zoom in and out 



epsilon
  • Members
  • 4 posts
  • Last active: Oct 29 2015 04:03 AM
  • Joined: 28 Oct 2015

And its broken again, I really don't know what changing... I have the Saved command right here so I know the script has not changed.

Edit for the moment it seems to just be a problem with using {+} as it also means shift without the {} because I kept getting the shift key coming up when the command wasn't working looking at the onscreen keyboard to see what was going on, also it may be because + on the number line is Shift & = where as Plus on the number pad is just + this may have been confusing things maybe also... i don't know.

 

It seems there's nothing I can do about it, but work around it by using = instead of + its something that the dev's should look into though as its definitely not user error.