No idea why is this happening. Need Help TIA
Code: Select all
`::
setkeydelay,10
setformat float ,0.2
Send, ^c
send, {Tab 2}
rex := clipboard - 10
Send, %rex%
Code: Select all
`::
setkeydelay,10
setformat float ,0.2
Send, ^c
send, {Tab 2}
rex := clipboard - 10
Send, %rex%
Please Have a look:
Code: Select all
#IfWinActive Save As ahk_class #32770 ahk_exe notepad.exe
{
;User will input all his/her details in the Save as column until they press enter
Enter::
Send ^a
Sleep 100
Send ^c
Clipwait,,1 ;Here's the clipwait. I've made it so that it shouldn't be sent/copied as a blank clipboard.
;Send ^c
;Clipwait,,1 ;These 2 statements in semicolons are the temporary fixes. I've had to duplicate (Control C) 2 times to compensate for the missing number I had mentioned in my previous answer and now it works but this kills time a little and also logically looks unnecessary
texxt1:=Clipboard ;This new variable stores the clipboard which i need later on in my work.
Send ^l ; This command will focus on the file address left off the search bar
Sleep 100
Send ^a
Send ^c
Clipwait,,1
;Send ^c
;Sleep 300
;Clipwait,,1
texxt2:=Clipboard; Clipboard pushes file address into texxt2 as a string which I will use later on for personal purposes
Send {Enter}
;I open a .txt document now to test/check what the variables contain
Send %texxt1%;This output is not right. The clipboard stores junk from exactly "one" previous instance of using Control C. If I had not put Send ^c and clipwait 2 times, this would always output the clipboard one process
before.
Send %texxt2% This outputs whatever I intended to put in texxt1. Completely wrong...unless I put Send ^c 2 times...but I don't understand why
return
}
#ifWinActive
If you are not sure whether your clipboard has data, you can use your script to find out.Waits until the clipboard contains data.
Users browsing this forum: marypoppins_1, mikeyww, RussF and 134 guests