Jump to content

Can I copy the text and calculate it?


aeun01
 Share

Recommended Posts

  • Moderators

aeun01,

Could you be any vaguer?

From where are you copying the 0? Why do you need to change it to 1?

Explain in more detail what it is that you want to do and we can make sensible suggestions to help. 

M23 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

51 minutes ago, Melba23 said:

@aeun01 : Could you be any vaguer?

Probably not :lol:.

@aeun01 : My  crystal ball is a bit dusty, but ... 

With CTRL C you copy a marked area (here a 0) into the clipboard.

3 hours ago, aeun01 said:

... and then use ctrl v to make it 1?

With the AutoIt function ClipGet the content of the clipboard will be assigned to a string variable.
Now you can make your desired modifications. Afterwards store the result into the clipboard with ClipPut. Finally, use CTRL V to paste the new clipboard content into an application.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

Hello!

I would like to save the picture file I am working on in numerical order.

So, if the name of the last saved file was number 10,

I would like to make the file name number 11 the next time I save it,

So, after ctrl+c the existing file name, I want it to be +1 the next time by ctrl+v

but I don't think it's possible.

Thank you!

 

Edited by aeun01
Link to comment
Share on other sites

47 minutes ago, aeun01 said:

I would like to save the picture file I am working on in numerical order.

You most likely edit your graphics with a program designed for this purpose.
CTRL C and CTRL V are internal functionalities of Windows. How does AutoIt come into play here?

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

You basically want to increase a filename number.

What can be done is to have a script, which is started with your painting program.

You set a hotkey, in this case ctrl B. 
The hotkey checks if the saving window is active.
If it is, then it sends a ctrl c command.
If a number was selected (marked) by you, it will be copied into the clipboard.
The auto it script then uses clipget() to get the number, then checks if it is a number and adds 1 if it is.
If it was a number, it copies the addition into the clipboard and sends ctrl v.
This should automatically replace the selected number.

Some of my script sourcecode

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...