i added a clipboard view to this and it was working but now it seems to have stopped working. any guesses?
Code: Select all
;;-----------------------------------------------------------[#start]-----------------------------------------------------------------;;
;//--\\ start is the place where i dictate variables and "#"s so the script wont scream at me.
#singleinstance, force
gui, add, text, w150 h20 x0 y0 vShowString, new string =
gui, add, edit, y20 x0 r1 w100 h20 vstring gsubmit,
gui, add, text, y22 x105 w70 h20 , original string
gui, add, edit, y45 x0 r1 w100 h20 vreplacstring gsubmit,
gui, add, text, y47 x105 w45 h20 , replacie
gui, add, edit, y70 x0 r1 w100 h20 vreplacetext gsubmit,
gui, add, text, y72 x105 w45 h20 , replacer
gui, add, button, x0 y91 gReplacestring, click to replace
gui, add, button, x180 y0 w120 h20 gclipbaordcontents, get clipboard contents
gui, add, edit, readonly r10 w120 h400 x180 y20 vclipboardcontent, clipbaord content = `n "%clipboard%"
gui, show, w300 h220
return
;;-----------------------------------------------------------[#open_code]-------------------------------------------------------------;;
;//--\\ where the majority of the gui and code is handled
;//--\\ none needed
return
;;-----------------------------------------------------------[#hotkeys]---------------------------------------------------------------;;
;//--\\ where the hotkeys are handled and if needed code
;//--\\ none needed
return
;;-----------------------------------------------------------[#gosub_nothotkeys]-------------------------------------------;;
;//--\\ for labels
;//--\\ all the code is located here, this is because i dont want
ReplaceString:
stringreplace, string, string, %replacestring%, %replacetext%, 1
guicontrol,text , ShowString, new string = %string%
guicontrol, text, string, %string%
return
submit:
gui, submit, nohide
guicontrol,text , ShowString, new string = %string%
return
clipbaordcontents:
guicontrol, text, clipboardcontent, clipbaord content = `n "%clipboard%"
return
guiclose:
exitapp
return
return