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: Select all
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 )