CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> script to fill in dialogue boxes?
binary
post May 16 2006, 12:07 PM
Post #1


Sarcastic
Group Icon

Group: ++Member
Posts: 224
Joined: 12-August 04
From: London
Member No.: 1,584

United Kingdom




hi there as part of my ICT assignment by program has a basic serial input similar to that of microsofts 4 character boxes e.g


XXXX-YYYY-CCCC-VVVV-NNNN

the app i have has been protected to verify 2 seperate serial numbers in the above format which are inputted into the dialogue box on installation..

my extension of this task is to create an automated way of quickly installing a copy of the app from CD onto 10 different computers NOt on a network..

so this is pretty simple and doesnt have to be complex ive decided to reduce the time GREATLY i would need to put a little script on a seperate floppy disc or dongle which when excuted along with the installer automatically fills in the serial number and proceeds. as if i was sitting there typing XXX........... then press NEXT to install:


RULES u cannot extend the 4 character input boxes and simple make it possible to copy and paste all the digits in one go.
if .ur familar with the windows xp installer if u copy the whole serial number from wordpad for example u CANNOt paste it all at one go.

secondly: no modifications to the app or installer are permitted u cannot make the installer autofill byitself. the serial must be on an external source.

u must aim to reduce the time it takes to install the app singificantly on computers not on a network but WITH THE SAME SERIAL . otherwise u could just share the app which defeats the objective.

thereare some auto-it scripts outthere but these only run if the pc has the macro program installed which would need a seperate installer and just wastes time... i think the best way wud be to have a .VBS script that can just be executed to :

recognise the dialogue box of the installer ..probably by window name..

then input the serial which can be stored within the script..


this would be cool as if it works a second script could be produced with the second serial number in it..allowing me to use any of the 2...however as long as ONE works then this is fine.

lol any ideas where to begin?... i find this task quite interesting but am stuck here.. im sure it cant be very hard just need a little quidance. laugh.gif

This post has been edited by binary: May 16 2006, 12:09 PM


--------------------
There are 10 kinds of people in this world - Those who understand binary, and those who don't!
Go to the top of the page
 
+Quote Post
usr.c
post May 16 2006, 02:09 PM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




How about this: You have your script or program running in the background and listening for, say, the F12 key. You then start the installer, get to the part where you have to type in the serial number, click on the first box if it's not already in focus and press F12. Then, all the script has to do is execute a series of key strokes (e.g. 1 2 3 4 \t 5 6 7 8 ...) You can have it execute a different sequence when a different function key is pressed. The script doesn't need to know anything about the installer or its components.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
binary
post May 16 2006, 06:04 PM
Post #3


Sarcastic
Group Icon

Group: ++Member
Posts: 224
Joined: 12-August 04
From: London
Member No.: 1,584

United Kingdom




QUOTE(usr.c @ May 16 2006, 03:09 PM) *
How about this: You have your script or program running in the background and listening for, say, the F12 key. You then start the installer, get to the part where you have to type in the serial number, click on the first box if it's not already in focus and press F12. Then, all the script has to do is execute a series of key strokes (e.g. 1 2 3 4 \t 5 6 7 8 ...) You can have it execute a different sequence when a different function key is pressed. The script doesn't need to know anything about the installer or its components.



sound goods... this script running in the background could it also be exected from a simple vbs script or would it need any complex programming/ additional software , please keep in mind simplicity is the essence of the task.


--------------------
There are 10 kinds of people in this world - Those who understand binary, and those who don't!
Go to the top of the page
 
+Quote Post
usr.c
post May 17 2006, 10:19 PM
Post #4


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




All you'd need to do is figure our how to generate key strokes in whatever language you choose to code it in.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 11:16 PM