laulong79 Posted July 19, 2021 Share Posted July 19, 2021 Hi, I'm having issue once compile as below picture. I'm looking to attached the content of "D:\Tdp.exe" "%1" -v Help to advice. Func RegChange () $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success If $RegCreate = 0 then msgbox (0, "Failure", "Unable to set SECURITY registry value at HKCR\Applications\Tdp.exe\shell\edit\command") $RegExists = RegRead ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "") ;returns 1 MsgBox ($MB_SYSTEMMODAL, "TDP_Edit", $RegExists) Link to comment Share on other sites More sharing options...
Developers Jos Posted July 19, 2021 Developers Share Posted July 19, 2021 Moved to the appropriate forum. Moderation Team 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...
laulong79 Posted July 19, 2021 Author Share Posted July 19, 2021 HOW TO MOVE IT? Sorry I still new on this. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 19, 2021 Developers Share Posted July 19, 2021 3 hours ago, laulong79 said: HOW TO MOVE IT? Sorry I still new on this. It is already moved as the post states! 3 hours ago, Jos said: Moved to the appropriate forum. 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...
WilliamasKumeliukas Posted July 19, 2021 Share Posted July 19, 2021 6 hours ago, laulong79 said: Hi, I'm having issue once compile as below picture. I'm looking to attached the content of "D:\Tdp.exe" "%1" -v Help to advice. Func RegChange () $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success If $RegCreate = 0 then msgbox (0, "Failure", "Unable to set SECURITY registry value at HKCR\Applications\Tdp.exe\shell\edit\command") $RegExists = RegRead ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "") ;returns 1 MsgBox ($MB_SYSTEMMODAL, "TDP_Edit", $RegExists) Based on your screenshot, id try this $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ",'| "D:\Tdp.exe" "%1" -v"') Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Danp2 Posted July 19, 2021 Share Posted July 19, 2021 6 hours ago, laulong79 said: $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success Your quotation marks are off. I would suggest using single quotes for the last parameter, like this -- $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", '"D:\Tdp.exe" "%1" -v') ;success P.S. See here for the correct method of posting code to the forum WilliamasKumeliukas 1 Latest Webdriver UDF Release Webdriver Wiki FAQs 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