tschitscho Posted April 16, 2006 Share Posted April 16, 2006 Hi there i need a script which pastes a text from the clipboard into a running program when i press a key (like F7). Maybe it works over the clipboard (when needed) The text looks like this: "text (Timestamp)" thats all how can i do this? Thank you Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 (edited) ummm ok... kinda get it hotkeyset("{f7}","get") hotkeyset("{esc}","quit") while 1 sleep(100) wend func get() $clipboard = Clipget() send($clipboard) EndFunc func quit() Exit EndFunc his is better i just like to use variables Edited April 16, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 16, 2006 Share Posted April 16, 2006 Hi, HotKeySet("{F7}", "put") While 1 Sleep(50) WEnd Func put() Send(ClipGet()) EndFunc So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
tschitscho Posted April 17, 2006 Author Share Posted April 17, 2006 Thaks for the fast repliesMy script looks like this now:#include <Date.au3>hotkeyset("{f7}","get")hotkeyset("{esc}","quit")while 1sleep(100)wendfunc get();$timestamp = _Now()$timestamp = @MDAY & "." & @MON & "." & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC$clipboard = "(texttext, " & $timestamp & ")"send($clipboard)EndFuncfunc quit() Exit EndFunc Link to comment Share on other sites More sharing options...
Valuater Posted April 17, 2006 Share Posted April 17, 2006 maybe HotKeySet("{f7}", "get") HotKeySet("{esc}", "quit") While 1 Sleep(100) WEnd Func get() $timestamp = @MDAY & "." & @MON & "." & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC $text = ClipGet() $clipboard = $text & ", ( " & $timestamp & " )" Send($clipboard) EndFunc ;==>get Func quit() Exit EndFunc ;==>quit 8) Link to comment Share on other sites More sharing options...
tschitscho Posted April 28, 2006 Author Share Posted April 28, 2006 is it possible to enter the + (plus) sign in the text? Link to comment Share on other sites More sharing options...
slightly_abnormal Posted April 28, 2006 Share Posted April 28, 2006 (edited) is it possible to enter the + (plus) sign in the text?send("{lCTRL}+=") the other way is confusing..send("+=") Edited April 28, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 28, 2006 Share Posted April 28, 2006 HI, or did you mean this. Send("{+}") So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
slightly_abnormal Posted April 28, 2006 Share Posted April 28, 2006 (edited) heh i didnt look far enough on the help file. Edited April 28, 2006 by slightly_abnormal 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