PaLmeTToX Posted June 10, 2015 Posted June 10, 2015 HelloI am trying to store the last 5 clipboard contents to a array. When i run my code, autoit is jumping in front of the system control +c and it is not copying anything to the clipboard. I am stumped, any ideas? Global $x=0 Global $arr[5] HotKeySet("^c","_stepper") #cs******************************************************************************************************* ////////////////////////////////////////////////////////////////////////////////////////////////////////// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ce******************************************************************************************************* func _stepper() MsgBox(0, "Just message", "stepper is called") $arr[$x]=ClipGet() $x=$x+1 if $x=5 then $x=0 MsgBox(0, "Just message",$x) EndFunc #cs******************************************************************************************************* ////////////////////////////////////////////////////////////////////////////////////////////////////////// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ce******************************************************************************************************* While 1 Sleep(500) WEnd
SadBunny Posted June 10, 2015 Posted June 10, 2015 Add this as the beginning of _stepper():HotKeySet("^c") Send("^c") HotKeySet("^c", "_stepper") PaLmeTToX 1 Roses are FF0000, violets are 0000FF... All my base are belong to you.
czardas Posted June 10, 2015 Posted June 10, 2015 I would be inclined to use a different hotkey sequence - one that isn't so commonly used. operator64 ArrayWorkshop
SadBunny Posted June 10, 2015 Posted June 10, 2015 I would agree, but the idea here is (if I'm not misreading anything) to replace/enhance the behavior of ctrl+c... Roses are FF0000, violets are 0000FF... All my base are belong to you.
czardas Posted June 10, 2015 Posted June 10, 2015 I would call it overriding default behaviour - but I get your point. operator64 ArrayWorkshop
PaLmeTToX Posted June 10, 2015 Author Posted June 10, 2015 Add this as the beginning of _stepper():HotKeySet("^c") Send("^c") HotKeySet("^c", "_stepper") Thank you . That works great. #include <array.au3> Global $x=0 Global $arr[5] HotKeySet("^c","_stepper") #cs******************************************************************************************************* ////////////////////////////////////////////////////////////////////////////////////////////////////////// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ce******************************************************************************************************* func _stepper() HotKeySet("^c") Send("^c") HotKeySet("^c", "_stepper") $arr[$x]=ClipGet() $x=$x+1 if $x=5 then $x=0 ;_ArrayDisplay($arr) EndFunc #cs******************************************************************************************************* ////////////////////////////////////////////////////////////////////////////////////////////////////////// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ce******************************************************************************************************* While 1 Sleep(300) WEnd
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