I am writing a little IDE helper for my needs to integrate it in Tools. Works fine with "%File" param.
But I have to save the active IDE source file programmatically befor working on "%File"-file.
Is there an easy way ???
Yes and even simple:
Code:
Procedure SendCmdKey( cmdKey, Key1 )
keybd_event_( cmdKey, 0, 0, 0 ) ; press cmdKey
keybd_event_( Key1, 0, 0, 0 ) ; press Key
keybd_event_( Key1, 0, #KEYEVENTF_KEYUP, 0) ; release Key
keybd_event_( cmdKey, 0, #KEYEVENTF_KEYUP, 0) ; release cmdKey
EndProcedure
SendCmdKey( #VK_CONTROL, #VK_S )
But only if you run it in a program integrated into PureBasic Tools