Geoffl Posted December 5, 2017 Share Posted December 5, 2017 Hi, I am totally new to this and am wondering if someone can point me in the right direction. I need to reprogram the F8 , F9 and F10 keys. We use these keys in a Dos program to change functions. With Ansi.sys "prompt $e[0;68;"999";13p " loads the F10 key with '999'. How can I do this with Autolt? Regards Geoffl Link to comment Share on other sites More sharing options...
SlackerAl Posted December 5, 2017 Share Posted December 5, 2017 (edited) HotKeySet Send Edited December 5, 2017 by SlackerAl Problem solving step 1: Write a simple, self-contained, running, replicator of your problem. Link to comment Share on other sites More sharing options...
Geoffl Posted December 5, 2017 Author Share Posted December 5, 2017 HotKeySet send what? Link to comment Share on other sites More sharing options...
SlackerAl Posted December 5, 2017 Share Posted December 5, 2017 Click on them for help file and examples, those two will let you Send keystrokes when a HotKeySet is pressed.... Geoffl 1 Problem solving step 1: Write a simple, self-contained, running, replicator of your problem. Link to comment Share on other sites More sharing options...
Geoffl Posted December 5, 2017 Author Share Posted December 5, 2017 Thank you Link to comment Share on other sites More sharing options...
Geoffl Posted December 6, 2017 Author Share Posted December 6, 2017 Sorry, I don't understand this at all. Could someone tell me what code I need to send 999 to key F10? Regards Geoffl Link to comment Share on other sites More sharing options...
Geoffl Posted December 6, 2017 Author Share Posted December 6, 2017 Here is what I have. Can anyone tell me what is wrong? Link to comment Share on other sites More sharing options...
spudw2k Posted December 6, 2017 Share Posted December 6, 2017 Take a closer look at the example in the help file. For HotKeySet, the second parameter is the name of a function to be called when the first parameter--key(s)--are pressed. You need to build the function and put the send function inside of it. Example #1 in the help file illustrates the usage this well. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Geoffl Posted December 6, 2017 Author Share Posted December 6, 2017 Hi, Thank you for your reply. I have spent 30 years programming in an archaic dos language but I have no concept of what autolt is all about. To me it is like trying to write a program in Yiddish. All I want to do is load '999' into key F10. Can't anyone help me? Link to comment Share on other sites More sharing options...
SlackerAl Posted December 6, 2017 Share Posted December 6, 2017 HotKeySet("{F10}", "SendKeys") While 1 Sleep(100) WEnd Func SendKeys() Send("999") EndFunc Geoffl 1 Problem solving step 1: Write a simple, self-contained, running, replicator of your problem. Link to comment Share on other sites More sharing options...
Geoffl Posted December 6, 2017 Author Share Posted December 6, 2017 Thank you so much for your help Regards Geoffl Link to comment Share on other sites More sharing options...
spudw2k Posted December 11, 2017 Share Posted December 11, 2017 Let me ask you this, now that someone did the work for you, can you see how @SlackerAl code looks like the examples in the help file? May I suggest next time someone point to the help file--particularly when there are good examples--you might want to try playing with the examples and see what breaks them and tweak them to make your desired result work. Having an understanding on what the code is doing and affording some creativity and exploration is much more rewarding. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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