myspacee Posted February 23, 2009 Share Posted February 23, 2009 HEllo to all, want to help my user and put in their clipboard some values, for very boring office job. There is a way to understand if clipboard is released, so i can cicle/refresh value in their clipboard ? thank you for any help, m. Link to comment Share on other sites More sharing options...
jvanegmond Posted February 23, 2009 Share Posted February 23, 2009 You can detect when user presses Ctrl + V easily. Checking when the Edit > Paste buttons are pressed is harder. Ctrl + V detection: HotKeySet("^v", "_Paste") $i = 0 While 1 Sleep(100) WEnd Func _Paste() HotKeySet("^v") Send("^v") ClipPut(" " & $i) $i = $i + 1 HotKeySet("^v", "_paste") EndFunc With this you may press Ctrl + V repeatedly and this will be the output: 0 1 2 3 4 5 6 7 8 9 10 It spazzes when you hold Ctrl + V down for too long, so make sure people know how to use it. github.com/jvanegmond Link to comment Share on other sites More sharing options...
BrettF Posted February 23, 2009 Share Posted February 23, 2009 Have you had a look at the _ClipBoard_* functions? Some intresting stuff in there, but I'm not sure if it works properly... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
myspacee Posted February 23, 2009 Author Share Posted February 23, 2009 thank you, Nice and simple, adapt code to my script. m. Link to comment Share on other sites More sharing options...
myspacee Posted February 23, 2009 Author Share Posted February 23, 2009 please BrettF, can you explain your idea ? m. Link to comment Share on other sites More sharing options...
BrettF Posted February 23, 2009 Share Posted February 23, 2009 (edited) In some of the examples they have "hooked" CTRL+C. There may be a part that has "hooked" CTRL+V... I haven't looked closelt and it was just a suggestion of something to look into. Cheers, Brett Edited February 23, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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