Sign in to follow this  
Followers 0
tamir

2 questions

10 posts in this topic

i have 2 questions:

1) how can i change to language in notepad to english? (so when i write it'll write in english)

2) i have a program that displays some data, how can i get the displayed text, or take a ss of it?

thanks

Share this post


Link to post
Share on other sites

1. You might have to change the OS language, because I dont believe there are options like that in notepad.

Also you might want to try using SCiTe. I dont know that it has multi-lingual support, but I know it writes in English (yet again this could be the OS language).

2. You can use AutoIt Window Spy to see if there is any 'visible text' to the OS. If there is you can use WindowGetText() function. (Look it up in the helpfile).

Otherwise you can take a screen shot by pressing 'Print Scrn' to do this with AutoIt you would send the command...

Send("{PRINTSCREEN}")

I hope this helps a bit,

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

but i need only the screenshot of the program. there is no way to do that right?

Share this post


Link to post
Share on other sites

it doesn't get the text of it, maybe because it's not writing program.

anyway im using the printscreen, and i have another question:

is there a way to check if there is msgbox (like when u quit it asks u if u want to save ur project in msgbox) in mspaint?

Share this post


Link to post
Share on other sites

it doesn't get the text of it, maybe because it's not writing program.

anyway im using the printscreen, and i have another question:

is there a way to check if there is msgbox (like when u quit it asks u if u want to save ur project in msgbox) in mspaint?

<{POST_SNAPBACK}>

Don't really understand what you are after here..

PrintScreen = Picture = bunch of pixels

So you are not looking for retrieving the text from the Window ?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@JdeB

I think he doesnt care which way he gets the information whether it be a screen shot or a GetText deal he just wants the info. The screenshot is working the WinGetText() doesnt. I mentioned that above to him.

@Tamir

I think you can use AdLibEnable() and AdLibDisable() for that, or you could just use an If statement to check if a window pops up, and if it does what decision to make depending on what the window title is.

Some functions you might want to look into...

If...End If
WinExists()
WinActive()

Just look at all the Window functions provided in the help file. They should help considerably.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

thanks, i'll try.

Share this post


Link to post
Share on other sites

You can use Alt Gr+ Printscreen to get a screenshot from the active window. (I thought everyone knew this) :idiot:


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Yeah the PRintscren+alt+copy? I thought everyone that programed knew this...... and btw search the forums for screenshot there was a post not to long ago about it.

Edit, ummmm: http://www.autoitscript.com/forum/index.ph...655entry23655

might help....

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0