|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
..::NL_HC_NL::..
![]() ![]() ![]() ![]() ![]() 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 ---------------- |
|
|
|
|
|
#2 (permalink) | |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
__________________
----------------- Emu Tinkerer and C++ Programmer |
|
|
|
|
|
|
#3 (permalink) |
|
..::NL_HC_NL::..
![]() ![]() ![]() ![]() ![]() 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 ---------------- |
|
|
|
|
|
#4 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#5 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#6 (permalink) |
|
NSBQ nut
![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#7 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#8 (permalink) |
|
Fallen
![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#9 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#10 (permalink) |
|
..::NL_HC_NL::..
![]() ![]() ![]() ![]() ![]() 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 ---------------- |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|