It is currently Tue Mar 09, 2021 9:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [Solved] How to save ActiveIDEFile programmatically
PostPosted: Tue Feb 25, 2014 12:13 pm 
Offline
User
User
User avatar

Joined: Fri Feb 21, 2014 11:46 am
Posts: 17
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

_________________
I may not know much, but I try a lot


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye