I have a application that clicks on a flash game with the mouse, Locations of clicks are working fine its the actual clicking that is the issue, although this might be the flash that is to blame..
I have this code
procedure move(x,y:byte);
begin
SetCursorPos(getx(x)+21,gety(y)+21);
sleep(15);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0,...
Is there any way the Format Source (CTRL+D) command applies only to the selected text (or the current method the caret is in)?
I'm asking this because the formatter is quite buggy (ok, actually useless) when anonymous functions are used anywhere in the module to be formatted.
...
I have an XML schema that uses enumerations, but when I look at the generated XML object in Delphi, the enumeration restriction has been dropped. Is there any way to get Delphi to generate the enum and build it into the object?
XSD Snippet:
<xs:simpleType name="enumType" final="restriction">
<xs:restriction base="xs:NMTOKEN">
...
I'm converting some legacy code to Delphi 2010.
There are a fair number of old ShortStrings, like string[25]
Why does the assignment below:
type
S: String;
ShortS: String[25];
...
S := ShortS;
cause the compiler to generate this warning:
W1057 Implicit string cast from 'ShortString' to 'string'.
There's no data loss that is...
After a clean install of Delphi, what components and IDE add-ins do you make certain that you install? What's your Delphi "rig"? Here's what I install after a clean installation:
Delphi 2007 / Delphi 2010
JCL / JVCL - JEDI Code Library and JEDI Visual Code Library (600+ components)
JWA / JWSCL - JEDI API Library & Security Code Library...
My Delphi application connects to a SQL Server Database through BDE.
In the process, my application queries SP_Who stored procedure to get the DbName column Value. But now I want to connect my application through ODBC to the SQL Server database.
I'm using the SQL Server Native client driver for this, but when my application queries SP_...
I have problem with Indy IdHttp Post method.
Function CallRpc() compiled with Delphi 2007 works fine but same code compiled with Delphi 2010 raises exception.
What do I have to consider when I change Delphi 2007 Indy TIdHttp to Delphi 2010 Indy TIdHttp?
function CallRpc(const sURL, sXML: string): string;
var
SendStream : TStream;
...
I'm using Delphi with the JCLRegEx and want to capture all the result URL's from a google search. I looked at HackingSearch.com and they have an example RegEx that looks right, but I cannot get any results when I try it.
I'm using it similar to:
Var re:JVCLRegEx;
I:Integer;
Begin
re := TJclRegEx.Create;
With re do try
...
I converting a lecacy app from Delphi 7 to Delphi 2009.
I got this error: E2010 Incompatible types: 'Char' and 'AnsiChar'
How can I fix it ? I tried to declare Alphabet: Ansistring[AlphabetLength] but that failed.
const
AlphabetLength = 64;
Alphabet: string[AlphabetLength] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234...
I have written an MDI based application, in which the child forms are of different types. I have now come across a situation where I need one child form to send a message to another child form, telling it to update itself. The first child form is unaware of whether the second child form is being displayed at the moment.
I had thought of...
I have a set of enumeration values that have 138 values. Something like:
type
TSomething = (sOne, sTwo, sThree, ..., ..., sOnehundredAndThirtyeight);
TSomethings = set of TSomething;
....
TSomething = class(TPersistent)
private
fSomethings: TSomethings;
published
property Somethings: TSomethings read fSomethings writ...
Here is another question about convert old code to D2009 and Unicode. I'm certain that there is simple but i don't see the solution...
CharacterSet is a set of Char and s[i] should also be a Char.
But the compiler still think there is a conflict between AnsiChar and Char.
The code:
TSetOfChar = Set of Char;
procedure aFunc;
var
Char...
Hi there folks,
I'm using the hbTapi Delphi7 Components, and I need to set MonitorMedia.Active in a TAPI call so I can detect the type of the connection. Problem is that when I say:
wTpCall.MonitorMedia.Active := true;
I'm getting an error: "Operation not supported by underlying service provider"... Why's that? I have installed all t...
Hi,
I need to call hllapi function of pcshll32.dll using delphi. It's works with personal communications of ibm. How can i change the code bellow to delphi ? Thanks !!!
The EHLLAPI entry point (hllapi) is always called with the following four parameters:
EHLLAPI Function Number (input)
Data Buffer (input/output)
Buffer Length (input...
How to activate/use this feature in D2010 ?!?
I have checked Zoom to full screen in Tools > Option > Editor Option > Display clicked Ok button but nothing happened. Ok, i said to myself, let's see what the help has to say about this. I pressed F1 key, wait a little, help's coming up but as i have expected, it has no idea about this, iro...
Hi there, I would like to broaden my Delphi horizons by reading a book about creation of Delphi applications. So far I have read books about Delphi mostly from Marco Cantu (Delphi 6-2009) or The Tomes of Delphi Algorithms and Data Structures.
But none of them describe the process of application creation from the beginning to end. Somewh...
http://stackoverflow.com/questions/442026/function-overloading-by-return-type
has a very detailed answer on the rational on function overloading by return type, and from what I can see Delphi does not allow this, but are there any workarounds to overload a function based on different return type in Delphi?
...
Hi
I have done a search on Google for applications writen with Datasnap and didn't find much information.
What well know applications are written in Datasnap 2009 / 2010 ?
Is using Datasnap 2010 a viable choice compared to using other frameworks like RemObjects, Midware or kbmMW.
Cheers
AJ
...
I have a small list of keywords. What I'd really like to do is akin to:
case MyKeyword of
'CHIL': (code for CHIL);
'HUSB': (code for HUSB);
'WIFE': (code for WIFE);
'SEX': (code for SEX);
else (code for everything else);
end;
Unfortunately the CASE statement can't be used like that for strings.
I could use the straight IF ...
I have Popup menu control on form ( grr, I most likely gonna make it dynamic - hate static tools ). It has got Item with SubMenu. SubMenu has three Menu Items ( TMenuItem class ).
I need to check by taking Sender param in if..then statement whenever procedure has been called by the Item with SubMenu or by SubMenu Items.
I tried differe...