lolcatz Posted December 20, 2013 Share Posted December 20, 2013 (edited) I was trying to make an untenanted program activator. I was trying to send a activation code but it blocks it. It does allow me manually to ctr paste the code in but cant sending (^v) wont work. So i deiced to make a script that every time i press ctr V it copies the next code to clip broad. For example i press ctr V one time it sends "A" Press control V manually again then it will send "B" and the next time "C" to keep going trough the list. My problem is making it to keep the same count every time i close the program. I cant rly do this because it will just reset $var to 1 every time the script is open. $var= = 1 If $var = 1 Then ClipPut ("I am copied to the clipboard") $var = $var+1 ElseIf $var = 2 Then ClipPut ("b") $var = $var+1 Else $var=3 Then ClipPut ("c") $var = $var+1 EndIf How would u go about solving this problem? Edited December 20, 2013 by lolcatz Link to comment Share on other sites More sharing options...
Solution lolcatz Posted December 20, 2013 Author Solution Share Posted December 20, 2013 never mind. the application blocks any scripts and hot keys. I think i figured out another way to do trick it. . Link to comment Share on other sites More sharing options...
michaelslamet Posted December 21, 2013 Share Posted December 21, 2013 Hi, Read about INI File in the help file Link to comment Share on other sites More sharing options...
markyrocks Posted December 21, 2013 Share Posted December 21, 2013 (edited) this seems to work Global $var = 1 HotKeySet("^v","hotkey") while 1 Global $a = "section a" Global $b = "section b" Global $c = "section c" WEnd func hotkey() If $var = 1 Then MsgBox("","","CTRL + v pressed once") clipput($a) $var = $var+1 ElseIf $var = 2 Then MsgBox("","","CTRL + v pressed twice") ClipPut ($b) $var = $var+1 elseif $var=3 Then MsgBox("","","CTRL + v pressed thrice") ClipPut ($c) Exit $var = $var+1 EndIf EndFunc o I find it hard to believe that any program can "block" autoit considering it can just manipulate mouse clicks and keystrokes so to block autoit you'd have to block any method of interacting with the program. also as to what was said above you can save any data to a variety of different file types $file = "path/file.txt" fileopen($file) filewrite($data & @CRLF) fileclose($file) Edited December 21, 2013 by markyrocks Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" Link to comment Share on other sites More sharing options...
lolcatz Posted December 21, 2013 Author Share Posted December 21, 2013 find it hard to believe that any program can "block" autoit considering it can just manipulate mouse clicks and keystrokes so to block autoit you'd have to block any method of interacting with the program. also as to what was said above you can save any data to a variety of different file types Yeah I the script i write works just fine on notepad command prompt and everything else. But idk it just none of the script works when that window is active. I has to do everything manually. Maybe its the way auto it sends the info. IDK. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 21, 2013 Moderators Share Posted December 21, 2013 martyrocks, I find it hard to believe that any program can "block" autoit considering it can just manipulate mouse clicks and keystrokes so to block autoit you'd have to block any method of interacting with the programNot at all rare - for example, many games have automation-resistent interfaces. lolcatz,We do not need to know if that is the case you are facing (read the Forum rules to see why) but it might well be the answer to your difficulties. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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