Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old September 1st, 2003   #1 (permalink)
..::NL_HC_NL::..
 
T.O.F.K.A.Z's Avatar
 
Join Date: Jul 2002
Location: THE PLACE EVERYONE FORGOT
Posts: 1,744
Manually Inputting sucks

Does anybody know of a program taht can replace a certain text , but can replace each of the occurences with a other text defined in a certain list ? (Meaning that It can replace each occurence with a the corresponding number in the list , occurence 1 = text on list place 1)

if so , then I can make very large macro , to take care of my prob.

Might be impossible but ....

As for programming ;

I have to manually input 10000+ Songs (ID,Title,Artist) in a special database using Hitbit which can't copy anything from the excel sheet on which they are all displayed. Problem is it takes ages to do so. I wondered if I couldn't make a programm that would do it like that. I also tried a making a macro for it but I still have to manually enter all the Id's and so. If only there were such a programm.

Any help would be greatly appreciated
__________________

Senior Member of the "Optimism-Non-Pessismism Club"
---------- Specs : PENTIUM 4 2,5 Ghz / GEFORCE FX 5700 Ultra ---------
---------- SOUND BLASTER Audigy2 Platinum/ 512MB DDR --------------
---------- If you don't agree with me then that's OK by -----------------
---------- me but I hope you respect my opinion as well ----------------
T.O.F.K.A.Z is offline   Reply With Quote
Old September 1st, 2003   #2 (permalink)
Emu author
 
zenogais's Avatar
 
Join Date: Aug 2003
Location: Victorville(Near Los Angeles or LA for those who are on the DL)
Posts: 839
Re: Manually Inputting sucks

Quote:
Originally Posted by T.O.F.K.A.Z
Does anybody know of a program taht can replace a certain text , but can replace each of the occurences with a other text defined in a certain list ? (Meaning that It can replace each occurence with a the corresponding number in the list , occurence 1 = text on list place 1)

if so , then I can make very large macro , to take care of my prob.

Might be impossible but ....

As for programming ;

I have to manually input 10000+ Songs (ID,Title,Artist) in a special database using Hitbit which can't copy anything from the excel sheet on which they are all displayed. Problem is it takes ages to do so. I wondered if I couldn't make a programm that would do it like that. I also tried a making a macro for it but I still have to manually enter all the Id's and so. If only there were such a programm.

Any help would be greatly appreciated
That really sucks. You should write your own program because I've never heard of one. Maybe if you give a little bit more info and maybe an example because I don't really understand the question yet. Wish I could be of more help.
__________________
-----------------
Emu Tinkerer and C++ Programmer
zenogais is offline   Reply With Quote
Old September 1st, 2003   #3 (permalink)
..::NL_HC_NL::..
 
T.O.F.K.A.Z's Avatar
 
Join Date: Jul 2002
Location: THE PLACE EVERYONE FORGOT
Posts: 1,744
Re: Manually Inputting sucks

Well all the info about our music is stored in an Excel File , but for some reason my superiors want me to put in a special database with the a program called HitBit. I still have about 10000 + songs to go. I have to input their ID , their Title and their Artist. I already made a Macro for it which works , but it's a macro that repeats itself on and on. But the piece where I enterd :

Input ID

Must be changed to the corresponding ID belonging to the song , If I let this macro run he gives the ID the name Input ID . I'm looking for a program what can replace every occurence differntly by using a list for example :

Input ID is found 200 times then it should select 200 different things I inserted to the list ,starting at the top. Unfortunately I can't seem to find any program what so ever which can do so.

I tried making such a programm myself but I ain't so good with my Delphi skills.Hope you know know what I meant.

So you see I open the macro code and then I want to replace the ID's .Title and Artist pieces each time the macro repeats itself.
__________________

Senior Member of the "Optimism-Non-Pessismism Club"
---------- Specs : PENTIUM 4 2,5 Ghz / GEFORCE FX 5700 Ultra ---------
---------- SOUND BLASTER Audigy2 Platinum/ 512MB DDR --------------
---------- If you don't agree with me then that's OK by -----------------
---------- me but I hope you respect my opinion as well ----------------
T.O.F.K.A.Z is offline   Reply With Quote
Old September 1st, 2003   #4 (permalink)
Registered User
 
scottlc's Avatar
 
Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,575
Re: Manually Inputting sucks

Well I seen a PerlScript (ActiveX style host with a Perl brain) which opened up Notepad and entered text. I think that it would be possible with that. Closing pointed brackets removed.

Code:
Job Id="WshShell"
script language=PerlScript
    $WshShell = $WScript->CreateObject("WScript.Shell");
    $WshShell->Run("notepad", 5);
    $WshShell->AppActivate("Untitled - Notepad");
    sleep(1); #Allow Notepad to load!
    $WshShell->SendKeys('This is a test! ;)');
/script
/job
__________________
OS: Arch Linux w/ Kernel 2.6.23.8 + GNOME 2.20.1 - CPU: Intel Pentium M 1.5GHz - Memory: 1280MB DDR PC2700 - Browser: Mozilla Firefox 2.0.0.10
scottlc is offline   Reply With Quote
Old September 1st, 2003   #5 (permalink)
Emu author
 
zenogais's Avatar
 
Join Date: Aug 2003
Location: Victorville(Near Los Angeles or LA for those who are on the DL)
Posts: 839
Re: Manually Inputting sucks

Well I believe that Excel has file encoding just like all MS Office programs, I'm sure that using scotts Perl script and little modification you could get the program to do what you want. Sounds like you did something weird with your Macro and thats why its flaking out on you, but I suppose you could get your macro to read this info from a file. Sounds like you have quite an involved process ahead of you. I'm not much a Perl programmer so I can't really help.
__________________
-----------------
Emu Tinkerer and C++ Programmer
zenogais is offline   Reply With Quote
Old September 2nd, 2003   #6 (permalink)
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
Re: Manually Inputting sucks

Using COM might be a way to do it. Unfortunately, I'm not really familiar with it but some research on http://msdn.microsoft.com might help you.
__________________
Bred for its skills in magic
Nezzar is offline   Reply With Quote
Old September 2nd, 2003   #7 (permalink)
Registered User
 
scottlc's Avatar
 
Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,575
Re: Manually Inputting sucks

From Perl you can use the Spreadsheet::ParseExcel module to load Excel data.
__________________
OS: Arch Linux w/ Kernel 2.6.23.8 + GNOME 2.20.1 - CPU: Intel Pentium M 1.5GHz - Memory: 1280MB DDR PC2700 - Browser: Mozilla Firefox 2.0.0.10
scottlc is offline   Reply With Quote
Old September 4th, 2003   #8 (permalink)
Fallen
 
Kraelis's Avatar
 
Join Date: Jun 2001
Location: Moonlight Spire
Posts: 1,393
Re: Manually Inputting sucks

Hm... fiddling with a 3rd party program isn't as easy as it seems. Notepad is one thing, and HitBit is entirely another.

The only way I can think of is by... shudder... disassembling the program, find the API handling the input, then make a program the interfaces with it. MAJOR HEADACHE.

In network gaming shops, they sometimes have a program that automatically inputs the password for you when you log on, so I'm pretty sure there's any easier way to do it. Sorry, couldn't be much more help.
__________________
--KrÆlis Cross


Mundus vult decipi, ergo decipiatur

===============
Athlon 64 x2 3800| Asrock ALiveNF6G-VSTA | Kingston DDR2 1 Gb RAM
Kraelis is offline   Reply With Quote
Old September 4th, 2003   #9 (permalink)
Registered User
 
scottlc's Avatar
 
Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,575
Re: Manually Inputting sucks

Actually it would work and does (I've tried).
__________________
OS: Arch Linux w/ Kernel 2.6.23.8 + GNOME 2.20.1 - CPU: Intel Pentium M 1.5GHz - Memory: 1280MB DDR PC2700 - Browser: Mozilla Firefox 2.0.0.10
scottlc is offline   Reply With Quote
Old September 4th, 2003   #10 (permalink)
..::NL_HC_NL::..
 
T.O.F.K.A.Z's Avatar
 
Join Date: Jul 2002
Location: THE PLACE EVERYONE FORGOT
Posts: 1,744
Re: Manually Inputting sucks

Ahh well thanks for all yor help but I have today created a Macro which actually works I found some kind off strange command to let it gor through a txt file and enter them so .... thanks again for your help but I managed to create something which worked myself.
__________________

Senior Member of the "Optimism-Non-Pessismism Club"
---------- Specs : PENTIUM 4 2,5 Ghz / GEFORCE FX 5700 Ultra ---------
---------- SOUND BLASTER Audigy2 Platinum/ 512MB DDR --------------
---------- If you don't agree with me then that's OK by -----------------
---------- me but I hope you respect my opinion as well ----------------
T.O.F.K.A.Z is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 13:37.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5