alminago Posted September 20, 2017 Share Posted September 20, 2017 Hello i wanna know how if posible to add hotkeys on my script and "F1" and run the scriopt once. but i want script to be there not disappear like you can see on picutres, so when i press f1 again to rune the script hope someone will help me i really need hope my english is not to bad,THANKS AUTOIT. Link to comment Share on other sites More sharing options...
alminago Posted September 20, 2017 Author Share Posted September 20, 2017 Just now, alminago said: Hello i wanna know how if posible to add hotkeys on my script and "F1" and run the scriopt once. but i want script to be there not disappear like you can see on picutres, so when i press f1 again to rune the script hope someone will help me i really need hope my english is not to bad,THANKS AUTOIT. sorry my script is $Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D) If IsArray($Variable) = True Then MouseClick("Right", $Variable [0], $Variable [1], 1) Else $Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D) If IsArray($Variable) = True Then MouseClick("Right", $Variable [0], $Variable [1], 1) Else $Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D) If IsArray($Variable) = True Then MouseClick("Right", $Variable [0], $Variable [1], 1) Else Send (escape) Link to comment Share on other sites More sharing options...
KickStarter15 Posted September 21, 2017 Share Posted September 21, 2017 @alminago, You can check with the help file for HotKeySet() and Send() functions. Also, Send(escape) won't work, it should be Send("{ESC}"). Anyways, what are you up to for PixelSearch()? KS15 Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
spudw2k Posted September 21, 2017 Share Posted September 21, 2017 I second KiskStarter15's inquiry...what are you automating that you are using PixelSearch? 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 BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool 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...
Developers Jos Posted September 21, 2017 Developers Share Posted September 21, 2017 (edited) @alminago, Please read the forumrules about sending PM's soliciting for help: Quote 5. Do not PM other users asking for support - that is why the forum exists, so post there instead. EDIT: and while reading also read point 6. carefully as that seem another one that applies to you! Jos Edited September 21, 2017 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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