Jump to content


Send : Unexpected result


  • Please log in to reply
3 replies to this topic

#1 Matty

Matty
  • Guests

Posted 18 June 2012 - 08:32 PM

I use (in Notepad++) the "(Un)collapse Level" command (Hiding/Shoing part of text), and I would like to send it an automatic set.
#z::	
	SendInput {Alt Down}
	SendInput {5}          ; "Alt+5": Hide the 5th level
	Sleep 250
	SendInput +{4}         ; "Shif+Alt+4": Show the 4th level
	Sleep 250
	SendInput {3}          ; "Alt+3": Hide the 3th level
	SendInput {Alt Up}
return

But it send Shif+Alt+5, then Shif+Alt+4, then Shif+Alt+3
Thanks

#2 Guests

  • Guests

Posted 18 June 2012 - 10:30 PM

#z::

   KeyWait LWin

   KeyWait RWin

   SetKeyDelay, -1, 250

   Send {Alt Down}5+43{Alt Up}

Return


#3 matty

matty
  • Members
  • 1 posts

Posted 19 June 2012 - 01:35 PM

Thank you,
but it don't work more.

#4 Guests

  • Guests

Posted 19 June 2012 - 06:41 PM

Thank you,
but it don't work more.

It works. Your problem must be user error.

For further assistance, describe exactly how you copied the code into a script, saved the script, ran the script and activated the hotkey. If you modified the code, post your modified code. Also give any relevant information about what, if anything, you actually observed happening while executing the code.