[Solved] How to save ActiveIDEFile programmatically

Working on new editor enhancements?
User avatar
EfDschoma
User
User
Posts: 17
Joined: Fri Feb 21, 2014 11:46 am

[Solved] How to save ActiveIDEFile programmatically

Post by EfDschoma »

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: 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 )  
But only if you run it in a program integrated into PureBasic Tools
I may not know much, but I try a lot