map keypress Thread last updated on 2006-03-28 22:33:27

Posted by member 315520 on 2006-03-25 19:13:06

I want to make Litestep emulate a keypress when pushing a button on the taskbar. I mean you can tell Litestep to start an executable if you press a certain button. Now I dont want Litestep to execute an .exe-file but to emulate the keyboard combination "CTRL+Alt S". Is this possible?

Posted by member 206411 on 2006-03-26 15:31:15 link

you can with 3rd party programs.. like Autoit3 (make an .exe, the script would actually be just one line.

Send("{CTRL}{ALT}{s}")

and hook up the button to the .exe you made

Edit: Though you can probably do it with just litestep, I couldn't think of how.

Posted by member 299300 on 2006-03-26 20:36:06 link

was is ctrl+alt+s? save as? *scratches head*

Posted by member 5575 on 2006-03-26 21:15:53 link

The bptypein module does stuff like that, IIRC. Although I think it sometimes had a problem with "ALT".

Posted by member 315520 on 2006-03-27 11:33:08 link

@the golem
CTRL+ALT+S is the combination for stop on my audioplayer wxMusik. I want to adjust the winamp buttons to work with wxMusik and due to wxMusik has global hotkeys for play, pause etc. I thought it might be the easiest way to do this.

@Boreas and Ryuho
thx for your help I will try this

Posted by member 315520 on 2006-03-27 16:56:21 link

yeah Autoit3 works fine! Is there an option to let it run completely silent? Cause it pops up a window in the taskbar for an instant. Have not found out yet how to hide this.

Posted by member 212670 on 2006-03-27 18:50:43 link

If you're using xTaskbar, you could just use the *xTaskbarRemove setting.

Posted by member 315520 on 2006-03-28 06:22:12 link

No I just want this application to run silent. It's a problem that has to be solved in Autoit3 not in Litestep

Posted by member 299300 on 2006-03-28 17:26:04 link

it pops up a cmd.exe screen for a fraction of a second, right? there is a popen.dll that helps hide those windows. I've no idea how do use it though, but it can be found on ls-universe.info or on blizzle. Don't quote me on it though

Posted by member 206411 on 2006-03-28 22:33:27 link

Umm.. I'm not really sure what you guys are talking about 'windows poping up from taskbar' but this function might help you in hiding the window... experiment with it...

WinSetState("blah", "", @SW_HIDE)
WinSetState("blah", "", @SW_RESTORE)