Search found 15 matches

by Komerad
Fri Aug 28, 2009 11:41 pm
Forum: C++ Development
Topic: Shortest way to handle lots of controls?
Replies: 2
Views: 354

Oh.. very interesting way of using an array. My teacher told me to use an array, I looked at it the wrong way.
Perhaps I need to change the control names so the number comes last. I will look into this tomorrow.

Thx for the help!
by Komerad
Fri Aug 28, 2009 3:47 pm
Forum: C++ Development
Topic: Shortest way to handle lots of controls?
Replies: 2
Views: 354

Shortest way to handle lots of controls?

Currently I'm working on a project with a lot of text controls. The program works in sequenses. For every sequense it will need all of the textcontrols assigned to that sequense. When one sequense is done it moves on to another. Now I have written a dozens of if's (with status check wich is updated ...
by Komerad
Tue May 19, 2009 10:49 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Not sure about the \n as all methods tested seemed to have problems with showing upper cases, numbers and quiet some other 'symbols', wich makes splitting up the string and proces every character in it trough a far loop needed in order to have the output == input. One of the methods to send keys to ...
by Komerad
Tue May 19, 2009 3:44 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

I did that, besides of it being a good lesson as apprentice promgrammer thats the main reason why i just want to write one myself. One of all methods i posted managed to send keys to guilwars.. yet the method used lastly (code above) seemed a much better sollution for handling the input correctly. A...
by Komerad
Tue May 19, 2009 12:13 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Thx a lot for the help it now does what it should do, here's the code : for(int letternr = 0 ; letternr<SENDTXT.Len() ; letternr++){ short keycode=VkKeyScan(SENDTXT[letternr]) &0xff; //////////////////////////////////////////////// // Check for Upper cases ///////////////////////////////////////////...
by Komerad
Tue May 19, 2009 9:30 am
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Thx, this comes very close, it even recognises '=' wich i did not even find the vkey code for. It does not recon the numbers but there are only 10 numbers so if needed i'll just write a routine for those. It neither does recon the difference between capital or minor, i've did some tests also with vk...
by Komerad
Mon May 18, 2009 4:45 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Another test : wxString SENDTXT = TextCtrl1->GetValue(); const char *ch1 = TextCtrl1->GetValue(); int Lengte = strlen(SENDTXT); /////////////////////////////////////////////// // Stuur string inhoud /////////////////////////////////////////////// for(int letternr = 0 ; letternr <= Lengte ; letternr+...
by Komerad
Mon May 18, 2009 12:36 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Well the sending a declared char, the amount = the length did work fine.. wxString SENDTXT = TextCtrl1->GetValue(); const char *ch1 = TextCtrl1->GetValue(); int Lengte = strlen(SENDTXT); /////////////////////////////////////////////// // Stuur string inhoud //////////////////////////////////////////...
by Komerad
Sun May 17, 2009 12:50 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Thx for the direction, that seems to be the only way to do this job, first tests look fine just need to write a routine to translate characters from string to vkey codes.

Thx.

To ADMIN : I accepted last reply instead of the one just above. Can you pls correct is. Sorry.
by Komerad
Fri May 15, 2009 6:56 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Yes sir I do, I don't have the code right here (ain't home atm) Sending to the top level does not work. I tought it is not realy a wx question altho i would not be surprised there would have been some wxclass around for this, its just so that I use wxwidgets for all almost all the stuff I do. As for...
by Komerad
Fri May 15, 2009 5:58 pm
Forum: C++ Development
Topic: Send pre defined 'keystrokes' + string (txt) to window
Replies: 16
Views: 2909

Send pre defined 'keystrokes' + string (txt) to window

Purpose : I want to make a recruiting tool for mmorpgs wich sends the recruiting info to ingame chat with configurable intervals. Tool should receive a string trough textctrl from the user. When the button is pressed it passes on the content from the string to another windows wich is not controled....
by Komerad
Sun Mar 15, 2009 2:04 pm
Forum: C++ Development
Topic: Print dialog crash on cancel
Replies: 2
Views: 678

Thanks for the help it solved the crash.
It does apear that there are 2 dialogs up on eachother tho.
by Komerad
Sun Mar 15, 2009 1:10 pm
Forum: C++ Development
Topic: Print dialog crash on cancel
Replies: 2
Views: 678

Print dialog crash on cancel

The code below is what I've put together and modified from several sources. I'm not deep into printing thus the cause of and the fix for the problem does not come easy for me. This is the problem : When the printdialog is open and one clicks on cancel the application crashes. Printing works just fin...
by Komerad
Wed Mar 04, 2009 9:49 pm
Forum: wxDev-C++
Topic: Question about printing....
Replies: 3
Views: 871

What do you recommend for printing forms? Spreaded cells with borders containing text? The kind of forms one makes with excel.. For now i tried to export the excel form to html and implement it that way but thats just a no go. Neither did the form designed with publisher work out. For both I got tex...
by Komerad
Wed Mar 04, 2009 4:50 am
Forum: wxDev-C++
Topic: Question about printing....
Replies: 3
Views: 871

Want to know this too..

Some easy straight forward printing 'tutorial' would be helpful.