aeun01 Posted October 11, 2023 Share Posted October 11, 2023 Assuming there is a number 0. and copying it with ctrl c, is it possible to calculate this value and then use ctrl v to make it 1? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 11, 2023 Moderators Share Posted October 11, 2023 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 Andreik 1 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Musashi Posted October 11, 2023 Share Posted October 11, 2023 51 minutes ago, Melba23 said: @aeun01 : Could you be any vaguer? Probably not . @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. "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 More sharing options...
aeun01 Posted October 11, 2023 Author Share Posted October 11, 2023 (edited) 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 October 11, 2023 by aeun01 Link to comment Share on other sites More sharing options...
Musashi Posted October 11, 2023 Share Posted October 11, 2023 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? "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 More sharing options...
Dan_555 Posted October 11, 2023 Share Posted October 11, 2023 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 More sharing options...
Nine Posted October 11, 2023 Share Posted October 11, 2023 Is that a captcha situation ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Dan_555 Posted October 12, 2023 Share Posted October 12, 2023 I have done something similar, just that my script, at work, does not copy the selection but inserts a date and the extension, which the autoit calculates. It saves a lot of typing, sometime. Some of my script sourcecode Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now