How to send virtual keys to other application using delphi [duplicate] - delphi

This question already has answers here:
SendKeys in Delphi 2010
(3 answers)
Closed 6 years ago.
I need to send several virtual keys (VK_RETURN) from my delphi application (myapp.exe) into another application such as (notepade).
The OS that I use are Windows 10 64 bit.
I read : How to send an "ENTER" key press to another application? , Delphi XE - Send Ctrl+Key to 3rd Party Application (did not work for me) and other previous asked question. But still I'm getting confused.
How to set the focus to the target application ?
How to send the virtual keys to the targeted application ?
Simple example : I want to send password into another program at runtime from my delphi application. How to do that ?
PS : I tried PostMessage() and SendMessage().

You could look at using SendKeys - I have in the past. But as David has said in comments to your post this is probably not the best way of going about it.
In any case, here is a link to a stack overflow question with some code examples that you might find useful.
SendKeys in Delphi 2010

Related

What's equivalent of C# NetworkInterface in Delphi? [duplicate]

This question already has answers here:
Get information about the installed network adapters
(6 answers)
Closed last month.
What's equivalent of NetworkInterface in Delphi, where i can build a program like
Network-Bandwidth-Meter
?
There some way to use this class on Delphi?
If you look at the source code for the NetworkInterface class, you will see that internally it gets its information from the GetAdaptersAddresses() function, which you can call directly in Delphi code.

How to make an SFTP connection with Delphi? [duplicate]

This question already has answers here:
FTP Over SSH (SFTP) In delphi 2010
(8 answers)
Closed 5 years ago.
I need to do a file transfer process inside my software, and the files are a little sensitive, so I would like to do via SFTP, so I have researched that there are some components (all the payments I've researched) that make use protocol.
I would like to know if you have a free component, or how to do it manually, if possible.
Sorry, translated via google translate.
Use the Indy sftp component.
The Indy components are included in delphi since a while.
Alternativley you could try these activex method:
https://www.activexperts.com/network-component/howto/sftp/delphi/

Is Objective-C necessary for iOS development? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What programming languages can one use to develop iPhone, iPod Touch and iPad (iOs) applications?
I have a load of fairly simple scientific programs that I converted from Basic to C. I would like to put them onto the Apple App Store, and was just wondering if it is necessary to convert them to Obj-C first, or will the C code be OK as a start?
They are simple 'get user input', 'do some logic checks', 'do the calcs', 'output result' type progs.
Thanks for any help.
Objective-C has a fully functioning C underneath, and you can write pure C code and have it working.
However, i doubt you would be able to release a command-line application to App Store. You would have to create a user interface in Xcode, and that would definitely introduce Objective-C to your program. With that said, as long as you connect your program variables (outlets) to controls on the UI, and link UI buttons back to the program's functions (actions/methods), the main processing body of your function could be a copy of your C code.

Anything yet on writing an App in Delphi XE2 to utilize new additions in Windows 8? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Resources for native Metro app development with Delphi
I've been searching for anything about how to utilize the new additions in Windows 8 in a Delphi XE2 application. Although I know there's the new WinRT API, there has to be some resource of how to actually use it in Windows 8. It should be simple things, like how to customize how the start menu tile shows, etc. I'm sure someone's already taken the time to figure these things out, and I'm trying to find it. The best I could find is This, but no source code.
Any leads on this? I just need some guidelines to using the WinRT API for Windows 8 in Delphi XE2.
Delphi XE2 pre-dates Windows 8 as you know. Windows 8 is not even finalised and the new WinRT is radically different from Win32. There is no support for WinRT in XE2.
Anyone who is using Delphi to create WinRT apps is doing an awful lot of low level hacking. This is not a viable long term approach. Any code you may be able to produce this way will surely be thrown away when proper Delphi tooling arrives. So, in my view, you will have to wait for official Delphi support, or use the MS tools.

Are there any "mind mapping" components for Delphi? (native VCL preferably) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a pre-written component (w/source) for a Delphi project that I'm working on, to generate mind-maps / concept-maps similar to these:
http://en.wikipedia.org/wiki/Image:MindMeister_screenshot_OS_X.jpg
http://en.wikipedia.org/wiki/Image:XMIND_2008_in_Windows_Vista.png
Any ideas?
As a former Delphi developer, I sympathize. It used to be that you could find a free component with source for just about anything. You probably know about the Delphi Super Page (my old go-to source for everything Delphi). I looked; no mind-mapping components, there. (Of course, the site has not been updated in about 2 years).
I do have a suggestion, though, but it's not optimal: StarUML was written in Delphi, and it contains custom components for creating UML diagrams. The source is available for download, and it seems to me that the UML primitives (boxes, lines, clouds and such) could be adapted to your purpose. The web site is http://staruml.sourceforge.net/en/.
I know it's not ideal, but at least you would not have to start from scratch.
Good luck!
You might want to have a look at TMS Software's Diagram Studio, not specifically a mind-mapping component but it does offer diagramming functionality in your delphi app. and a developer license does come with source code.
An other great source for Delphi component is torry.net. Searching there I found an interesting looking component: Drawing objects.
Steema Software has got a great component called TeeTree which seems to do everything. I'm not sure how much it costs (costs is the operative word)
We use it for making pie charts and reports but it seems to do everything, you can get compiled demo's off their site.
It's a VCL component.
I know Graphcis32 has been used to implement visio-like diagramming. On the 'applications'-page there is a link to MindVisualizer, prooving that it can be used for mindmaps too. Not an out-of-the-box solution though....
TMS Diagram Studio, as already mentioned, and DevExpress OrgChart or FlowChart may do the trick.
There is only one mind mapping component that I know of : MetaTree. It supports Delphi 5, 6, 7 and 2005 and comes with full source code.
Not exactly what you are looking for but it could be an option if you can't find a native VCL component.
Tree GX http://www.componentsource.com/products/treegx/index-gbp.html is a .NET mind map component with source code.
You could then use Hydra http://www.remobjects.com/product/?id={B6BD1030-F630-4DA8-9018-73C03265A0EF} from RemObects to host a WinForms control inside a Delphi application if going pure .Net is not an option.
Edit: the preview seems to showing the links ok, but when I submit the post they are all wrong so I've had to put the urls inline
Please try
http://www.delphiarea.com/products/simplegraph/
JVCL : Demo called
JvDesignerDemo

Resources